Home | History | Annotate | Download | only in common

Lines Matching full:pixelformat

141 	int pixelFormat, int subsamp, int jpegQual)
145 switch(pixelFormat)
177 cinfo->in_color_space=JCS_RGB; pixelFormat=TJPF_RGB;
182 cinfo->input_components=tjPixelSize[pixelFormat];
206 int pixelFormat)
210 switch(pixelFormat)
309 int height, int pixelFormat, unsigned char *dst)
312 switch(pixelFormat)
370 int pitch, int height, int pixelFormat)
372 switch(pixelFormat)
539 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf,
551 if(srcBuf==NULL || width<=0 || pitch<0 || height<=0 || pixelFormat<0
552 || pixelFormat>=TJ_NUMPF || jpegBuf==NULL || jpegSize==NULL
563 if(pitch==0) pitch=width*tjPixelSize[pixelFormat];
566 if(pixelFormat!=TJPF_GRAY)
570 srcBuf=toRGB(srcBuf, width, pitch, height, pixelFormat, rgbBuf);
582 if(setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual)==-1)
748 int height, int pixelFormat, int flags)
762 || height<0 || pixelFormat<0 || pixelFormat>=TJ_NUMPF)
779 if(setDecompDefaults(dinfo, pixelFormat)==-1)
803 if(pitch==0) pitch=dinfo->output_width*tjPixelSize[pixelFormat];
806 if(pixelFormat!=TJPF_GRAY &&
807 (RGB_RED!=tjRedOffset[pixelFormat] ||
808 RGB_GREEN!=tjGreenOffset[pixelFormat] ||
809 RGB_BLUE!=tjBlueOffset[pixelFormat] ||
810 RGB_PIXELSIZE!=tjPixelSize[pixelFormat]))
836 fromRGB(rgbBuf, _dstBuf, width, _pitch, height, pixelFormat);