Lines Matching refs:DCTSIZE
548 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8.");
609 sizeInfo->fYWidthBytes = dinfo->comp_info[0].width_in_blocks * DCTSIZE;
610 sizeInfo->fUWidthBytes = dinfo->comp_info[1].width_in_blocks * DCTSIZE;
611 sizeInfo->fVWidthBytes = dinfo->comp_info[2].width_in_blocks * DCTSIZE;
665 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE];
666 yuv[0] = &rowptrs[0]; // Y rows (DCTSIZE or 2 * DCTSIZE)
667 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE)
668 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE)
671 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor;
675 for (int i = 0; i < DCTSIZE; i++) {
676 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[1], i * sizeInfo.fUWidthBytes);
677 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[2], i * sizeInfo.fVWidthBytes);
682 size_t blockIncrementU = DCTSIZE * sizeInfo.fUWidthBytes;
683 size_t blockIncrementV = DCTSIZE * sizeInfo.fVWidthBytes;
702 for (int i = 0; i < DCTSIZE; i++) {
703 rowptrs[i + 2 * DCTSIZE] += blockIncrementU;
704 rowptrs[i + 3 * DCTSIZE] += blockIncrementV;
720 int remainingUVRows = dinfo->comp_info[1].downsampled_height - DCTSIZE * numIters;
721 for (int i = remainingUVRows; i < DCTSIZE; i++) {
722 rowptrs[i + 2 * DCTSIZE] = dummyRow.get();
723 rowptrs[i + 3 * DCTSIZE] = dummyRow.get();