Lines Matching refs:jpegSubsamp

522 DLLEXPORT unsigned long tjBufSize(int width, int height, int jpegSubsamp)  in tjBufSize()  argument
527 if (width < 1 || height < 1 || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT) in tjBufSize()
533 mcuw = tjMCUWidth[jpegSubsamp]; in tjBufSize()
534 mcuh = tjMCUHeight[jpegSubsamp]; in tjBufSize()
535 chromasf = jpegSubsamp == TJSAMP_GRAY ? 0 : 4 * 64 / (mcuw * mcuh); in tjBufSize()
669 int jpegSubsamp, int jpegQual, int flags) in tjCompress2() argument
681 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2()
705 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2()
708 setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags); in tjCompress2()
736 int jpegSubsamp, int jpegQual, int flags) in tjCompress() argument
742 size = tjBufSizeYUV(width, height, jpegSubsamp); in tjCompress()
745 jpegSubsamp, flags); in tjCompress()
749 jpegSubsamp, jpegQual, flags | TJFLAG_NOREALLOC); in tjCompress()
1197 int *height, int *jpegSubsamp, in tjDecompressHeader3() argument
1207 jpegSubsamp == NULL || jpegColorspace == NULL) in tjDecompressHeader3()
1220 *jpegSubsamp = getSubsamp(dinfo); in tjDecompressHeader3()
1232 if (*jpegSubsamp < 0) in tjDecompressHeader3()
1246 int *height, int *jpegSubsamp) in tjDecompressHeader2() argument
1251 jpegSubsamp, &jpegColorspace); in tjDecompressHeader2()
1258 int jpegSubsamp; in tjDecompressHeader() local
1261 &jpegSubsamp); in tjDecompressHeader()
1622 int jpegwidth, jpegheight, jpegSubsamp, scaledw, scaledh; in tjDecompressToYUVPlanes() local
1668 jpegSubsamp = getSubsamp(dinfo); in tjDecompressToYUVPlanes()
1669 if (jpegSubsamp < 0) in tjDecompressToYUVPlanes()
1672 if (jpegSubsamp != TJSAMP_GRAY && (!dstPlanes[1] || !dstPlanes[2])) in tjDecompressToYUVPlanes()
1703 pw[i] = tjPlaneWidth(i, dinfo->output_width, jpegSubsamp); in tjDecompressToYUVPlanes()
1704 ph[i] = tjPlaneHeight(i, dinfo->output_height, jpegSubsamp); in tjDecompressToYUVPlanes()
1748 if (jpegSubsamp == TJ_420) { in tjDecompressToYUVPlanes()
1760 compptr->MCU_sample_width = tjMCUWidth[jpegSubsamp] * in tjDecompressToYUVPlanes()
1800 int pw0, ph0, strides[3], retval = -1, jpegSubsamp = -1; in tjDecompressToYUV2() local
1817 jpegSubsamp = getSubsamp(dinfo); in tjDecompressToYUV2()
1818 if (jpegSubsamp < 0) in tjDecompressToYUV2()
1834 pw0 = tjPlaneWidth(0, width, jpegSubsamp); in tjDecompressToYUV2()
1835 ph0 = tjPlaneHeight(0, height, jpegSubsamp); in tjDecompressToYUV2()
1838 if (jpegSubsamp == TJSAMP_GRAY) { in tjDecompressToYUV2()
1842 int pw1 = tjPlaneWidth(1, width, jpegSubsamp); in tjDecompressToYUV2()
1843 int ph1 = tjPlaneHeight(1, height, jpegSubsamp); in tjDecompressToYUV2()
1895 int retval = 0, alloc = 1, i, jpegSubsamp, saveMarkers = 0; in tjTransform() local
1959 jpegSubsamp = getSubsamp(dinfo); in tjTransform()
1960 if (jpegSubsamp < 0) in tjTransform()
1991 alloc = 0; dstSizes[i] = tjBufSize(w, h, jpegSubsamp); in tjTransform()