Home | History | Annotate | Download | only in octane

Lines Matching refs:decode

4222       var decode = dict.get('Decode');
4223 if (!decode)
4224 decode = range;
4226 decode = toMultiArray(decode);
4231 CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
4247 var decode = IR[4];
4314 rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
12184 * Checks if a decode map matches the default decode map for a color space.
12185 * This handles the general decode maps where there are two values per
12187 * This does not handle Lab, Indexed, or Pattern decode maps since they are
12189 * @param {Array} decode Decode map (usually from an image).
12192 ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
12193 if (!decode)
12196 if (n * 2 !== decode.length) {
12197 warning('The decode map is not the correct length');
12200 for (var i = 0, ii = decode.length; i < ii; i += 2) {
12201 if (decode[i] != 0 || decode[i + 1] != 1)
13361 var decode = dict.get('Decode', 'D');
13362 var inverseDecode = !!decode && decode[0] > 0;
22968 * Decode the image in the main thread if it supported. Resovles the promise
22988 * Decode and clamp a value. The formula is different from the spec because we
22989 * don't decode to float range [0,1], we decode it in the [0,max] range.
23040 this.decode = dict.get('Decode', 'D');
23042 if (this.decode && this.colorSpace &&
23043 !this.colorSpace.isDefaultDecode(this.decode)) {
23049 for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
23050 var dmin = this.decode[i];
23051 var dmax = this.decode[i + 1];
23144 var decodeMap = this.decode;
23168 // Optimization for reading 8 bpc images that have a decode.
28003 * a library to decode these images and the stream behaves like all the other
28088 // normal cmyk and then we won't need to decode in JS
28113 * For JPEG 2000's we use a library to decode these images and
29995 function decodeMcu(component, decode, mcu, row, col) {
30000 decode(component, component.blocks[blockRow][blockCol]);
30002 function decodeBlock(component, decode, mcu) {
30005 decode(component, component.blocks[blockRow][blockCol]);