• Home
  • Raw
  • Download

Lines Matching refs:pixelFormat

175 	int pixelFormat, int subsamp, int jpegQual, int flags)  in setCompDefaults()  argument
180 switch(pixelFormat) in setCompDefaults()
212 cinfo->in_color_space=JCS_RGB; pixelFormat=TJPF_RGB; in setCompDefaults()
219 cinfo->input_components=tjPixelSize[pixelFormat]; in setCompDefaults()
251 else if(pixelFormat==TJPF_CMYK) in setCompDefaults()
276 int pixelFormat, int flags) in setDecompDefaults() argument
280 switch(pixelFormat) in setDecompDefaults()
422 int height, int pixelFormat, unsigned char *dst) in toRGB() argument
425 switch(pixelFormat) in toRGB()
483 int pitch, int height, int pixelFormat) in fromRGB() argument
485 switch(pixelFormat) in fromRGB()
767 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf, in tjCompress2() argument
779 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjCompress2()
780 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL in tjCompress2()
784 if(pitch==0) pitch=width*tjPixelSize[pixelFormat]; in tjCompress2()
787 if(pixelFormat!=TJPF_GRAY && pixelFormat!=TJPF_CMYK) in tjCompress2()
791 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjCompress2()
817 if(setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags)==-1) in tjCompress2()
868 int pixelFormat, unsigned char **dstPlanes, int *strides, int subsamp, in tjEncodeYUVPlanes() argument
893 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjEncodeYUVPlanes()
894 || pixelFormat>=TJ_NUMPF || !dstPlanes || !dstPlanes[0] || subsamp<0 in tjEncodeYUVPlanes()
900 if(pixelFormat==TJPF_CMYK) in tjEncodeYUVPlanes()
903 if(pitch==0) pitch=width*tjPixelSize[pixelFormat]; in tjEncodeYUVPlanes()
906 if(pixelFormat!=TJPF_GRAY && pixelFormat!=TJPF_CMYK) in tjEncodeYUVPlanes()
910 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf); in tjEncodeYUVPlanes()
928 if(setCompDefaults(cinfo, pixelFormat, subsamp, -1, flags)==-1) return -1; in tjEncodeYUVPlanes()
1036 int pixelFormat, unsigned char *dstBuf, int pad, int subsamp, int flags) in tjEncodeYUV3() argument
1063 return tjEncodeYUVPlanes(handle, srcBuf, width, pitch, height, pixelFormat, in tjEncodeYUV3()
1071 int width, int pitch, int height, int pixelFormat, unsigned char *dstBuf, in tjEncodeYUV2() argument
1074 return tjEncodeYUV3(handle, srcBuf, width, pitch, height, pixelFormat, in tjEncodeYUV2()
1387 int width, int pitch, int height, int pixelFormat, int flags) in tjDecompress2() argument
1401 || height<0 || pixelFormat<0 || pixelFormat>=TJ_NUMPF) in tjDecompress2()
1416 if(setDecompDefaults(dinfo, pixelFormat, flags)==-1) in tjDecompress2()
1440 if(pitch==0) pitch=dinfo->output_width*tjPixelSize[pixelFormat]; in tjDecompress2()
1443 if(pixelFormat!=TJPF_GRAY && pixelFormat!=TJPF_CMYK && in tjDecompress2()
1444 (RGB_RED!=tjRedOffset[pixelFormat] || in tjDecompress2()
1445 RGB_GREEN!=tjGreenOffset[pixelFormat] || in tjDecompress2()
1446 RGB_BLUE!=tjBlueOffset[pixelFormat] || in tjDecompress2()
1447 RGB_PIXELSIZE!=tjPixelSize[pixelFormat])) in tjDecompress2()
1478 fromRGB(rgbBuf, _dstBuf, width, _pitch, height, pixelFormat); in tjDecompress2()
1504 int pixelFormat, int subsamp, int flags) in setDecodeDefaults() argument
1558 unsigned char *dstBuf, int width, int pitch, int height, int pixelFormat, in tjDecodeYUVPlanes() argument
1585 || dstBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0 in tjDecodeYUVPlanes()
1586 || pixelFormat>=TJ_NUMPF) in tjDecodeYUVPlanes()
1597 if(pixelFormat==TJPF_CMYK) in tjDecodeYUVPlanes()
1600 if(pitch==0) pitch=width*tjPixelSize[pixelFormat]; in tjDecodeYUVPlanes()
1608 if(setDecodeDefaults(dinfo, pixelFormat, subsamp, flags)==-1) in tjDecodeYUVPlanes()
1620 if(setDecompDefaults(dinfo, pixelFormat, flags)==-1) in tjDecodeYUVPlanes()
1632 if(pitch==0) pitch=dinfo->output_width*tjPixelSize[pixelFormat]; in tjDecodeYUVPlanes()
1635 if(pixelFormat!=TJPF_GRAY && pixelFormat!=TJPF_CMYK && in tjDecodeYUVPlanes()
1636 (RGB_RED!=tjRedOffset[pixelFormat] || in tjDecodeYUVPlanes()
1637 RGB_GREEN!=tjGreenOffset[pixelFormat] || in tjDecodeYUVPlanes()
1638 RGB_BLUE!=tjBlueOffset[pixelFormat] || in tjDecodeYUVPlanes()
1639 RGB_PIXELSIZE!=tjPixelSize[pixelFormat])) in tjDecodeYUVPlanes()
1705 fromRGB(rgbBuf, _dstBuf, width, _pitch, height, pixelFormat); in tjDecodeYUVPlanes()
1726 int height, int pixelFormat, int flags) in tjDecodeYUV() argument
1754 pitch, height, pixelFormat, flags); in tjDecodeYUV()