Zach Bjornson
7d9286638f
Support node <0.12 using kExternalPixelArray.
10 years ago
Zach Bjornson
43c94e43bf
Pixels with a=0 should have 0 for RGB; pixels with a=255 should have rgb for RGB.
10 years ago
Zach Bjornson
677587bd15
Remove stray logging.
10 years ago
Zach Bjornson
11f0709ec6
Fix tests "putImageData() 8" and "putImageData() 9".
Negative arguments were causing source image data to be painted wrapped-around the other side of the canvas.
10 years ago
Zach Bjornson
c3123efe55
Update test infrasturcture.
10 years ago
Zach Bjornson
76580a8199
Optimize Context2d::PutImageData. Benchmarked 53% faster.
Benchmark:
var canvas = new Canvas(300, 600);
var ctx = canvas.getContext("2d");
// any manipulation of canvas/ctx here.
var data = ctx.getImageData(0,0,300,600);
// time 1000x:
ctx.putImageData(data, 0, 0);
10 years ago
Zach Bjornson
b4a05d7892
Replace CanvasPixelArray with Uint8ClampedArray to meet spec.
Added some argument testing/manipulation to match WebKit/Moz behaviors.
Additionally benchmarked:
* branching on `if (a == 0 || a == 255)`, as it is
* not branching (always doing the alpha calculation)
* Mozilla's implementation found here: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/CanvasRenderingContext2D.cpp#5083
Mozilla's is insignificantly faster (p=0.17) :) so left it as-is.
10 years ago
Linus Unnebäck
27bfef4a41
Merge pull request #611 from LinusU/travis-iojs
travis: specify iojs versions
10 years ago
Linus Unnebäck
f051025903
travis: limit number of iojs versions
10 years ago
Linus Unnebäck
54f731b727
travis: specify iojs versions
10 years ago
Linus Unnebäck
46a26de488
Version 1.2.7
10 years ago
Linus Unnebäck
2dded9eee8
Merge pull request #592 from miguelmota/package-reserved-word
rename package variable to packageJson
10 years ago
Linus Unnebäck
c54bac47b4
Release 1.2.6
10 years ago
Linus Unnebäck
60b1fbceb6
Merge pull request #589 from Agamnentzar/master
Fixed include error in Visual Studio
10 years ago
Nathan Rajlich
7ffc7f3168
History: fix Markdown link
10 years ago
Nathan Rajlich
e84f70fd75
Release 1.2.5
10 years ago
Miguel Mota
b085da2267
package => packageJson
10 years ago
Radosław Eichler
8aa52be645
Fixed include error in Visual Studio
10 years ago
Juriy Zaytsev
21383b990e
Merge pull request #586 from garthk/bump124
Bump version to 1.2.4
10 years ago
Garth Kidd
e1a1df28d8
Release 1.2.4
10 years ago
Garth Kidd
09064a2408
Follow repository move to Automatic.
10 years ago
Nathan Rajlich
80fda524ec
Merge pull request #583 from LinusU/fix-travis-ci-builds
fix Travis CI builds
10 years ago
Nathan Rajlich
d790ecf7bb
Merge pull request #574 from LinusU/include-paths
Fix include paths for cairo
10 years ago
Linus Unnebäck
7c5899094e
fix Travis CI builds
10 years ago
Linus Unnebäck
86d6ec59b7
src: fix include paths for cairo
10 years ago
Nathan Rajlich
3d9f2ac16f
Revert "Remove unused variables"
This reverts commit 004758c725
.
10 years ago
Nathan Rajlich
73d202af40
Revert "Remove unused variables"
This reverts commit 2381e916a9
.
10 years ago
Кузнецов Дмитрий
004758c725
Remove unused variables
FT_Face _ftFace; never used an causes extra warnings during "npm install"
10 years ago
Кузнецов Дмитрий
2381e916a9
Remove unused variables
int _width, _height; never used an caused extra warnings during "npm install"
10 years ago
Nathan Rajlich
edbf5bc454
travis: attempt to fix 0.8, test node v0.12
10 years ago
Nathan Rajlich
a7c9c0ddb5
Release 1.2.3
10 years ago
Nathan Rajlich
2a62336c57
History: normalize whitespace
10 years ago
Nathan Rajlich
0ed97acdd1
Merge pull request #552 from dodekeract/master
Fixed Typo
10 years ago
Nathan Rajlich
195dfe2279
Merge pull request #553 from agebrock/master
Update nan to work with io.js 2.0.0.
10 years ago
Nathan Rajlich
04c7964cc2
Merge pull request #557 from pgilad/patch-1
Add license attribute
10 years ago
Nathan Rajlich
b757a78f49
Merge pull request #558 from javiercejudo/patch-1
Update TJ Holowaychuk's username in the readme
10 years ago
Javier Cejudo
78ddc7eafc
Update TJ Holowaychuk's username in the readme
10 years ago
Gilad Peleg
ed715ef21d
Add license attribute
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
10 years ago
Juriy Zaytsev
cc494c6413
Merge pull request #550 from kibao/fix/segmentation-fault-empty-buffer
Fix segmentation fault in Image::loadFromBuffer when buffer is empty
10 years ago
Christoph Hagenbrock
1934299b2b
update nan to work with io.js 2.0.0
10 years ago
Florian Wendelborn
bfc6561fa3
Fix Typo
10 years ago
kibao
6edec3b6e4
Fix segmentation fault in Image::loadFromBuffer when buffer is empty
10 years ago
Juriy Zaytsev
70162e6bc2
Merge pull request #549 from aparshin/speedup-getimage
Optimize getImageData()
10 years ago
Alexander Parshin
dc8db1695d
Add comment about optimization
10 years ago
Alexander Parshin
6de09834cf
Optimize getImageData()
Mostly for fully transparent pixels
10 years ago
Nathan Rajlich
8158a5183e
package: update "nan" to v1.7.0
10 years ago
Nathan Rajlich
cc62433b0f
package: append `.git` to "repository" URL
10 years ago
Domenic Denicola
9575a8f3df
Version 1.2.2
10 years ago
Juriy Zaytsev
c81229609a
Merge pull request #539 from smremde/master
fixed bug in StreamPNGSync
10 years ago
Stephen Remde
a2f9386d90
fixed bug in StreamPNGSync
10 years ago