pdf.js/src
Jonas Jenwald d6cd5355f0 Use Uint8ClampedArray, when returning data, and remove manual clamping in src/core/jpg.js (issue 4901)
This patch removes the `clamp0to255` helper function, as well as manual clamping code in `src/core/jpg.js`.
The adjusted constants in `_convertCmykToRgb` were taken from CMYK to RGB conversion code found in `src/core/colorspace.js`.

*Please note:* There will be some very slight movement in a number of existing test-cases, since `Uint8ClampedArray` appears to use `Math.round` (or equivalent) and the old code used (basically) `Math.floor`.
2017-08-14 16:19:57 +02:00
..
core Use Uint8ClampedArray, when returning data, and remove manual clamping in src/core/jpg.js (issue 4901) 2017-08-14 16:19:57 +02:00
display Merge pull request #8745 from yurydelendik/cancel-stream 2017-08-04 13:00:31 +02:00
images Vectorize the logo. 2012-10-29 14:08:52 -04:00
shared Polyfill Uint8ClampedArray using core-js 2017-08-14 16:19:55 +02:00
doc_helper.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
license_header.js Replace copyright headers; changes UMD to CommonJS. 2017-02-08 16:35:58 -06:00
pdf.js Adds Streams API support for networking task of PDF.js project. 2017-07-28 02:32:30 +05:30
pdf.worker.entry.js Switch to using ESLint, instead of JSHint, for linting 2016-12-16 21:06:36 +01:00
pdf.worker.js Adds Streams API support for networking task of PDF.js project. 2017-07-28 02:32:30 +05:30
worker_loader.js Adds Streams API support for networking task of PDF.js project. 2017-07-28 02:32:30 +05:30