• Home
  • Raw
  • Download

Lines Matching refs:pixelFormat

237 static int setCompDefaults(struct jpeg_compress_struct *cinfo, int pixelFormat,  in setCompDefaults()  argument
245 cinfo->in_color_space = pf2cs[pixelFormat]; in setCompDefaults()
246 cinfo->input_components = tjPixelSize[pixelFormat]; in setCompDefaults()
280 else if (pixelFormat == TJPF_CMYK) in setCompDefaults()
638 int width, int pitch, int height, int pixelFormat, in tjCompress2() argument
651 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2()
656 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjCompress2()
679 if (setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags) == -1) in tjCompress2()
727 int pixelFormat, unsigned char **dstPlanes, in tjEncodeYUVPlanes() argument
750 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || !dstPlanes || in tjEncodeYUVPlanes()
756 if (pixelFormat == TJPF_CMYK) in tjEncodeYUVPlanes()
759 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjEncodeYUVPlanes()
775 if (setCompDefaults(cinfo, pixelFormat, subsamp, -1, flags) == -1) return -1; in tjEncodeYUVPlanes()
884 int width, int pitch, int height, int pixelFormat, in tjEncodeYUV3() argument
915 return tjEncodeYUVPlanes(handle, srcBuf, width, pitch, height, pixelFormat, in tjEncodeYUV3()
923 int pitch, int height, int pixelFormat, in tjEncodeYUV2() argument
926 return tjEncodeYUV3(handle, srcBuf, width, pitch, height, pixelFormat, in tjEncodeYUV2()
1247 int width, int pitch, int height, int pixelFormat, in tjDecompress2() argument
1259 pitch < 0 || height < 0 || pixelFormat < 0 || pixelFormat >= TJ_NUMPF) in tjDecompress2()
1275 this->dinfo.out_color_space = pf2cs[pixelFormat]; in tjDecompress2()
1295 if (pitch == 0) pitch = dinfo->output_width * tjPixelSize[pixelFormat]; in tjDecompress2()
1337 int pixelFormat, int subsamp, int flags) in setDecodeDefaults() argument
1390 int height, int pixelFormat, int flags) in tjDecodeYUVPlanes() argument
1413 pixelFormat < 0 || pixelFormat >= TJ_NUMPF) in tjDecodeYUVPlanes()
1423 if (pixelFormat == TJPF_CMYK) in tjDecodeYUVPlanes()
1426 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjDecodeYUVPlanes()
1439 if (setDecodeDefaults(dinfo, pixelFormat, subsamp, flags) == -1) { in tjDecodeYUVPlanes()
1450 this->dinfo.out_color_space = pf2cs[pixelFormat]; in tjDecodeYUVPlanes()
1460 if (pitch == 0) pitch = dinfo->output_width * tjPixelSize[pixelFormat]; in tjDecodeYUVPlanes()
1536 int width, int pitch, int height, int pixelFormat, in tjDecodeYUV() argument
1567 pitch, height, pixelFormat, flags); in tjDecodeYUV()
1991 int align, int *height, int *pixelFormat, in tjLoadImage() argument
2004 if (!filename || !width || align < 1 || !height || !pixelFormat || in tjLoadImage()
2005 *pixelFormat < TJPF_UNKNOWN || *pixelFormat >= TJ_NUMPF) in tjLoadImage()
2027 if (*pixelFormat == TJPF_UNKNOWN) cinfo->in_color_space = JCS_UNKNOWN; in tjLoadImage()
2028 else cinfo->in_color_space = pf2cs[*pixelFormat]; in tjLoadImage()
2045 *pixelFormat = cs2pf[cinfo->in_color_space]; in tjLoadImage()
2047 pitch = PAD((*width) * tjPixelSize[*pixelFormat], align); in tjLoadImage()
2068 memcpy(dstptr, src->buffer[i], (*width) * tjPixelSize[*pixelFormat]); in tjLoadImage()
2084 int width, int pitch, int height, int pixelFormat, in tjSaveImage() argument
2097 pixelFormat < 0 || pixelFormat >= TJ_NUMPF) in tjSaveImage()
2113 this->dinfo.out_color_space = pf2cs[pixelFormat]; in tjSaveImage()
2133 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjSaveImage()
2142 memcpy(dst->buffer[0], rowptr, width * tjPixelSize[pixelFormat]); in tjSaveImage()