1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-23 08:38:06 +02:00

Merge pull request #8611 from apoorv-mishra/colorspace-tests

Add unit-tests for colorspace.js
This commit is contained in:
Tim van der Meij 2017-07-29 00:14:03 +02:00 committed by GitHub
commit 783d42ec2b
4 changed files with 549 additions and 5 deletions

View file

@ -1111,11 +1111,7 @@ var CalRGBCS = (function CalRGBCSClosure() {
}
CalRGBCS.prototype = {
getRgb: function CalRGBCS_getRgb(src, srcOffset) {
var rgb = new Uint8Array(3);
this.getRgbItem(src, srcOffset, rgb, 0);
return rgb;
},
getRgb: ColorSpace.prototype.getRgb,
getRgbItem: function CalRGBCS_getRgbItem(src, srcOffset,
dest, destOffset) {
convertToRgb(this, src, srcOffset, dest, destOffset, 1);