Lines Matching refs:planeSize
349 int planeSize = tjPlaneSizeYUV(i, width, srcStrides[i], height, subsamp); in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII() local
352 if (planeSize < 0 || pw < 0) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
357 if (srcStrides[i] < 0 && srcOffsets[i] - planeSize + pw < 0) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
361 if ((*env)->GetArrayLength(env, jSrcPlanes[i]) < srcOffsets[i] + planeSize) in Java_org_libjpegturbo_turbojpeg_TJCompressor_compressFromYUV___3_3B_3II_3III_3BII()
426 int planeSize = tjPlaneSizeYUV(i, width, dstStrides[i], height, subsamp); in TJCompressor_encodeYUV() local
429 if (planeSize < 0 || pw < 0) in TJCompressor_encodeYUV()
434 if (dstStrides[i] < 0 && dstOffsets[i] - planeSize + pw < 0) in TJCompressor_encodeYUV()
438 if ((*env)->GetArrayLength(env, jDstPlanes[i]) < dstOffsets[i] + planeSize) in TJCompressor_encodeYUV()
792 int planeSize = tjPlaneSizeYUV(i, scaledWidth, dstStrides[i], scaledHeight, in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III() local
796 if (planeSize < 0 || pw < 0) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
801 if (dstStrides[i] < 0 && dstOffsets[i] - planeSize + pw < 0) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
805 if ((*env)->GetArrayLength(env, jDstPlanes[i]) < dstOffsets[i] + planeSize) in Java_org_libjpegturbo_turbojpeg_TJDecompressor_decompressToYUV___3BI_3_3B_3II_3III()
904 int planeSize = tjPlaneSizeYUV(i, width, srcStrides[i], height, subsamp); in TJDecompressor_decodeYUV() local
907 if (planeSize < 0 || pw < 0) in TJDecompressor_decodeYUV()
912 if (srcStrides[i] < 0 && srcOffsets[i] - planeSize + pw < 0) in TJDecompressor_decodeYUV()
916 if ((*env)->GetArrayLength(env, jSrcPlanes[i]) < srcOffsets[i] + planeSize) in TJDecompressor_decodeYUV()