Lines Matching refs:DCTSIZE
781 static_assert(8 == DCTSIZE, "DCTSIZE (defined in jpeg library) should always be 8."); in is_yuv_supported()
840 sizeInfo->fWidthBytes[i] = comp_info[i].width_in_blocks * DCTSIZE; in onQueryYUV8()
897 JSAMPROW rowptrs[2 * DCTSIZE + DCTSIZE + DCTSIZE]; in onGetYUV8Planes()
899 yuv[1] = &rowptrs[2 * DCTSIZE]; // U rows (DCTSIZE) in onGetYUV8Planes()
900 yuv[2] = &rowptrs[3 * DCTSIZE]; // V rows (DCTSIZE) in onGetYUV8Planes()
903 int numYRowsPerBlock = DCTSIZE * dinfo->comp_info[0].v_samp_factor; in onGetYUV8Planes()
908 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes()
909 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kU], in onGetYUV8Planes()
911 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(planes[SkYUVSizeInfo::kV], in onGetYUV8Planes()
917 size_t blockIncrementU = DCTSIZE * sizeInfo.fWidthBytes[SkYUVSizeInfo::kU]; in onGetYUV8Planes()
918 size_t blockIncrementV = DCTSIZE * sizeInfo.fWidthBytes[SkYUVSizeInfo::kV]; in onGetYUV8Planes()
937 for (int i = 0; i < DCTSIZE; i++) { in onGetYUV8Planes()
938 rowptrs[i + 2 * DCTSIZE] += blockIncrementU; in onGetYUV8Planes()
939 rowptrs[i + 3 * DCTSIZE] += blockIncrementV; in onGetYUV8Planes()
955 int remainingUVRows = dinfo->comp_info[1].downsampled_height - DCTSIZE * numIters; in onGetYUV8Planes()
956 for (int i = remainingUVRows; i < DCTSIZE; i++) { in onGetYUV8Planes()
957 rowptrs[i + 2 * DCTSIZE] = dummyRow.get(); in onGetYUV8Planes()
958 rowptrs[i + 3 * DCTSIZE] = dummyRow.get(); in onGetYUV8Planes()