Lines Matching refs:sizeInfo
597 bool SkJpegCodec::onQueryYUV8(YUVSizeInfo* sizeInfo, SkYUVColorSpace* colorSpace) const {
603 sizeInfo->fYSize.set(dinfo->comp_info[0].downsampled_width,
605 sizeInfo->fUSize.set(dinfo->comp_info[1].downsampled_width,
607 sizeInfo->fVSize.set(dinfo->comp_info[2].downsampled_width,
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;
620 SkCodec::Result SkJpegCodec::onGetYUV8Planes(const YUVSizeInfo& sizeInfo, void* pixels[3]) {
625 if (!supportsYUV || sizeInfo.fYSize != defaultInfo.fYSize ||
626 sizeInfo.fUSize != defaultInfo.fUSize ||
627 sizeInfo.fVSize != defaultInfo.fVSize ||
628 sizeInfo.fYWidthBytes < defaultInfo.fYWidthBytes ||
629 sizeInfo.fUWidthBytes < defaultInfo.fUWidthBytes ||
630 sizeInfo.fVWidthBytes < defaultInfo.fVWidthBytes) {
654 SkASSERT(sizeInfo.fUSize == sizeInfo.fVSize);
655 SkASSERT((uint32_t) sizeInfo.fYSize.width() == dinfo->output_width &&
656 (uint32_t) sizeInfo.fYSize.height() == dinfo->output_height);
673 rowptrs[i] = SkTAddOffset<JSAMPLE>(pixels[0], i * sizeInfo.fYWidthBytes);
676 rowptrs[i + 2 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[1], i * sizeInfo.fUWidthBytes);
677 rowptrs[i + 3 * DCTSIZE] = SkTAddOffset<JSAMPLE>(pixels[2], i * sizeInfo.fVWidthBytes);
681 size_t blockIncrementY = numYRowsPerBlock * sizeInfo.fYWidthBytes;
682 size_t blockIncrementU = DCTSIZE * sizeInfo.fUWidthBytes;
683 size_t blockIncrementV = DCTSIZE * sizeInfo.fVWidthBytes;
716 SkAutoTMalloc<JSAMPLE> dummyRow(sizeInfo.fYWidthBytes);