Lines Matching defs:jpegSubsamp
597 int jpegSubsamp)
600 if(width<1 || height<1 || jpegSubsamp<0 || jpegSubsamp>=NUMSUBOPT)
606 mcuw=tjMCUWidth[jpegSubsamp];
607 mcuh=tjMCUHeight[jpegSubsamp];
608 chromasf=jpegSubsamp==TJSAMP_GRAY? 0: 4*64/(mcuw*mcuh);
733 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags)
746 || jpegSubsamp<0 || jpegSubsamp>=NUMSUBOPT || jpegQual<0 || jpegQual>100)
777 alloc=0; *jpegSize=tjBufSize(width, height, jpegSubsamp);
780 if(setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags)==-1)
810 unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags)
815 size=tjBufSizeYUV(width, height, jpegSubsamp);
817 getPixelFormat(pixelSize, flags), jpegBuf, jpegSubsamp, flags);
822 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual,
1255 int *jpegSubsamp, int *jpegColorspace)
1264 || jpegSubsamp==NULL || jpegColorspace==NULL)
1278 *jpegSubsamp=getSubsamp(dinfo);
1291 if(*jpegSubsamp<0)
1305 int *jpegSubsamp)
1309 jpegSubsamp, &jpegColorspace);
1315 int jpegSubsamp;
1317 &jpegSubsamp);
1705 int jpegwidth, jpegheight, jpegSubsamp, scaledw, scaledh;
1742 jpegSubsamp=getSubsamp(dinfo);
1743 if(jpegSubsamp<0)
1746 if(jpegSubsamp!=TJSAMP_GRAY && (!dstPlanes[1] || !dstPlanes[2]))
1824 if(jpegSubsamp==TJ_420)
1837 compptr->MCU_sample_width=tjMCUWidth[jpegSubsamp]*
1879 int pw0, ph0, strides[3], retval=-1, jpegSubsamp=-1;
1890 jpegSubsamp=getSubsamp(dinfo);
1891 if(jpegSubsamp<0)
1908 pw0=tjPlaneWidth(0, width, jpegSubsamp);
1909 ph0=tjPlaneHeight(0, height, jpegSubsamp);
1912 if(jpegSubsamp==TJSAMP_GRAY)
1919 int pw1=tjPlaneWidth(1, width, jpegSubsamp);
1920 int ph1=tjPlaneHeight(1, height, jpegSubsamp);
1968 int retval=0, i, jpegSubsamp;
2025 jpegSubsamp=getSubsamp(dinfo);
2026 if(jpegSubsamp<0)
2063 alloc=0; dstSizes[i]=tjBufSize(w, h, jpegSubsamp);