Lines Matching refs:jpegSubsamp
490 DLLEXPORT unsigned long tjBufSize(int width, int height, int jpegSubsamp) in tjBufSize() argument
495 if (width < 1 || height < 1 || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT) in tjBufSize()
501 mcuw = tjMCUWidth[jpegSubsamp]; in tjBufSize()
502 mcuh = tjMCUHeight[jpegSubsamp]; in tjBufSize()
503 chromasf = jpegSubsamp == TJSAMP_GRAY ? 0 : 4 * 64 / (mcuw * mcuh); in tjBufSize()
628 int jpegSubsamp, int jpegQual, int flags) in tjCompress2() argument
640 jpegSize == NULL || jpegSubsamp < 0 || jpegSubsamp >= NUMSUBOPT || in tjCompress2()
664 alloc = 0; *jpegSize = tjBufSize(width, height, jpegSubsamp); in tjCompress2()
667 if (setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags) == -1) in tjCompress2()
693 int jpegSubsamp, int jpegQual, int flags) in tjCompress() argument
699 size = tjBufSizeYUV(width, height, jpegSubsamp); in tjCompress()
702 jpegSubsamp, flags); in tjCompress()
706 jpegSubsamp, jpegQual, flags | TJFLAG_NOREALLOC); in tjCompress()
1152 int *height, int *jpegSubsamp, in tjDecompressHeader3() argument
1162 jpegSubsamp == NULL || jpegColorspace == NULL) in tjDecompressHeader3()
1175 *jpegSubsamp = getSubsamp(dinfo); in tjDecompressHeader3()
1187 if (*jpegSubsamp < 0) in tjDecompressHeader3()
1201 int *height, int *jpegSubsamp) in tjDecompressHeader2() argument
1206 jpegSubsamp, &jpegColorspace); in tjDecompressHeader2()
1213 int jpegSubsamp; in tjDecompressHeader() local
1216 &jpegSubsamp); in tjDecompressHeader()
1565 int jpegwidth, jpegheight, jpegSubsamp, scaledw, scaledh; in tjDecompressToYUVPlanes() local
1602 jpegSubsamp = getSubsamp(dinfo); in tjDecompressToYUVPlanes()
1603 if (jpegSubsamp < 0) in tjDecompressToYUVPlanes()
1606 if (jpegSubsamp != TJSAMP_GRAY && (!dstPlanes[1] || !dstPlanes[2])) in tjDecompressToYUVPlanes()
1684 if (jpegSubsamp == TJ_420) { in tjDecompressToYUVPlanes()
1696 compptr->MCU_sample_width = tjMCUWidth[jpegSubsamp] * in tjDecompressToYUVPlanes()
1736 int pw0, ph0, strides[3], retval = -1, jpegSubsamp = -1; in tjDecompressToYUV2() local
1753 jpegSubsamp = getSubsamp(dinfo); in tjDecompressToYUV2()
1754 if (jpegSubsamp < 0) in tjDecompressToYUV2()
1770 pw0 = tjPlaneWidth(0, width, jpegSubsamp); in tjDecompressToYUV2()
1771 ph0 = tjPlaneHeight(0, height, jpegSubsamp); in tjDecompressToYUV2()
1774 if (jpegSubsamp == TJSAMP_GRAY) { in tjDecompressToYUV2()
1778 int pw1 = tjPlaneWidth(1, width, jpegSubsamp); in tjDecompressToYUV2()
1779 int ph1 = tjPlaneHeight(1, height, jpegSubsamp); in tjDecompressToYUV2()
1831 int retval = 0, i, jpegSubsamp, saveMarkers = 0; in tjTransform() local
1886 jpegSubsamp = getSubsamp(dinfo); in tjTransform()
1887 if (jpegSubsamp < 0) in tjTransform()
1917 alloc = 0; dstSizes[i] = tjBufSize(w, h, jpegSubsamp); in tjTransform()