Lines Matching refs:component

22039   function getBlockBufferOffset(component, row, col) {
22040 return 64 * ((component.blocksPerLine + 1) * row + col);
22123 function decodeBaseline(component, offset) {
22124 var t = decodeHuffman(component.huffmanTableDC);
22126 component.blockData[offset] = component.pred += diff;
22130 var rs = decodeHuffman(component.huffmanTableAC);
22145 component.blockData[offset + z] = receiveAndExtend(s);
22150 function decodeDCFirst(component, offset) {
22151 var t = decodeHuffman(component.huffmanTableDC);
22153 component.blockData[offset] = component.pred += diff;
22156 function decodeDCSuccessive(component, offset) {
22157 component.blockData[offset] |= readBit() << successive;
22162 function decodeACFirst(component, offset) {
22172 var rs = decodeHuffman(component.huffmanTableAC);
22188 component.blockData[offset + z] = receiveAndExtend(s) * (1 << successive);
22196 function decodeACSuccessive(component, offset) {
22205 var sign = component.blockData[offsetZ] < 0 ? -1 : 1;
22209 rs = decodeHuffman(component.huffmanTableAC);
22234 if (component.blockData[offsetZ]) {
22235 component.blockData[offsetZ] += sign * (readBit() << successive);
22247 if (component.blockData[offsetZ]) {
22248 component.blockData[offsetZ] += sign * (readBit() << successive);
22250 component.blockData[offsetZ] = successiveACNextValue << successive;
22257 if (component.blockData[offsetZ]) {
22258 component.blockData[offsetZ] += sign * (readBit() << successive);
22276 function decodeMcu(component, decode, mcu, row, col) {
22279 var blockRow = mcuRow * component.v + row;
22280 var blockCol = mcuCol * component.h + col;
22281 var offset = getBlockBufferOffset(component, blockRow, blockCol);
22282 decode(component, offset);
22285 function decodeBlock(component, decode, mcu) {
22286 var blockRow = mcu / component.blocksPerLine | 0;
22287 var blockCol = mcu % component.blocksPerLine;
22288 var offset = getBlockBufferOffset(component, blockRow, blockCol);
22289 decode(component, offset);
22293 var component, i, j, k, n;
22328 component = components[0];
22331 decodeBlock(component, decodeFn, mcu);
22337 component = components[i];
22338 h = component.h;
22339 v = component.v;
22343 decodeMcu(component, decodeFn, mcu, j, k);
22383 function quantizeAndInverse(component, blockBufferOffset, p) {
22384 var qt = component.quantizationTable,
22385 blockData = component.blockData;
22540 function buildComponentData(frame, component) {
22541 var blocksPerLine = component.blocksPerLine;
22542 var blocksPerColumn = component.blocksPerColumn;
22547 var offset = getBlockBufferOffset(component, blockRow, blockCol);
22548 quantizeAndInverse(component, offset, computationBuffer);
22552 return component.blockData;
22628 component = frame.components[i];
22629 … var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) * component.h / frame.maxH);
22630 … var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) * component.v / frame.maxV);
22631 var blocksPerLineForMcu = mcusPerLine * component.h;
22632 var blocksPerColumnForMcu = mcusPerColumn * component.v;
22634 component.blockData = new Int16Array(blocksBufferSize);
22635 component.blocksPerLine = blocksPerLine;
22636 component.blocksPerColumn = blocksPerColumn;
22825 component;
22829 component = frame.components[componentIndex];
22831 component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
22832 component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
22833 components.push(component);
22897 component = frame.components[i];
22898 var quantizationTable = quantizationTables[component.quantizationId];
22901 component.quantizationTable = quantizationTable;
22905 output: buildComponentData(frame, component),
22906 scaleX: component.h / frame.maxH,
22907 scaleY: component.v / frame.maxV,
22908 blocksPerLine: component.blocksPerLine,
22909 blocksPerColumn: component.blocksPerColumn
22920 var component, componentScaleX, componentScaleY, blocksPerScanline;
22932 component = this.components[i];
22933 componentScaleX = component.scaleX * scaleX;
22934 componentScaleY = component.scaleY * scaleY;
22936 output = component.output;
22937 blocksPerScanline = component.blocksPerLine + 1 << 3;
23388 var component = {
23395 calculateComponentDimensions(component, siz);
23396 components.push(component);
23665 function calculateComponentDimensions(component, siz) {
23666 component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
23667 component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
23668 component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
23669 component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
23670 component.width = component.x1 - component.x0;
23671 component.height = component.y1 - component.y0;
23699 var component = components[i];
23704 tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
23705 tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
23706 tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
23707 tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
23715 function getBlocksDimensions(context, component, r) {
23716 var codOrCoc = component.codingStyleParameters;
23875 var component = tile.components[i];
23877 if (r > component.codingStyleParameters.decompositionLevelsCount) {
23881 var resolution = component.resolutions[r];
23924 var component = tile.components[i];
23926 if (r > component.codingStyleParameters.decompositionLevelsCount) {
23930 var resolution = component.resolutions[r];
23962 var component = tile.components[c];
23963 …maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount, component.codingStyleParameter…
23991 var component = tile.components[c];
23993 if (r > component.codingStyleParameters.decompositionLevelsCount) {
23997 var resolution = component.resolutions[r];
24041 var component = tile.components[c];
24042 var decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount;
24045 var resolution = component.resolutions[r];
24090 var component = tile.components[c];
24092 var decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount;
24097 var resolution = component.resolutions[r];
24148 var component = tile.components[c];
24149 var decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount;
24158 var resolution = component.resolutions[r];
24201 var component = tile.components[c];
24202 var decompositionLevelsCount = component.codingStyleParameters.decompositionLevelsCount;
24207 var blocksDimensions = getBlocksDimensions(context, component, r);
24210 resolution.trx0 = Math.ceil(component.tcx0 / scale);
24211 resolution.try0 = Math.ceil(component.tcy0 / scale);
24212 resolution.trx1 = Math.ceil(component.tcx1 / scale);
24213 resolution.try1 = Math.ceil(component.tcy1 / scale);
24222 subband.tbx0 = Math.ceil(component.tcx0 / scale);
24223 subband.tby0 = Math.ceil(component.tcy0 / scale);
24224 subband.tbx1 = Math.ceil(component.tcx1 / scale);
24225 subband.tby1 = Math.ceil(component.tcy1 / scale);
24235 subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
24236 subband.tby0 = Math.ceil(component.tcy0 / bscale);
24237 subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
24238 subband.tby1 = Math.ceil(component.tcy1 / bscale);
24245 subband.tbx0 = Math.ceil(component.tcx0 / bscale);
24246 subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
24247 subband.tbx1 = Math.ceil(component.tcx1 / bscale);
24248 subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
24255 subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
24256 subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
24257 subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
24258 subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
24267 component.resolutions = resolutions;
24268 component.subbands = subbands;
24625 var component = tile.components[c];
24626 var codingStyleParameters = component.codingStyleParameters;
24627 var quantizationParameters = component.quantizationParameters;
24640 var resolution = component.resolutions[i];
24671 var result = transform.calculate(subbandCoefficients, component.tcx0, component.tcy0);
24673 left: component.tcx0,
24674 top: component.tcy0,
24776 var component = tile.components[c];
24778 component.quantizationParameters = qcdOrQcc;
24780 component.codingStyleParameters = codOrCoc;