- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to convert a YUV420 frame to JPEG using IPP UIC but I am unable to do it.
But I can convert a RGB frame to JPEG successfully.
I want to know, can UIC JPEGEncoder convert a YUV file to JPEG or not? If it can encode, I want to know how to use UIC for this.
Regards
Amol
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Amol,
Out-of-box UIC is not able to do that.
Technically it is possible, because YUV frame has exact format necessary for JPEG encoding: the identical color model (YUV is almost YCbCr), plane format, IS_411 sampling model. But CJPEGEncoder::ColorConvert function, which is called for all encodings, will return UNSUPPORTED status, because there is no software path for this combination (source=IC_YCBCR, dest=IC_YCBCR, sampling=IS_411). You even don't need color conversion in this case, just to correctly set line steps for each of component planes in sources image structure. But, unfortunately there is no source code for that.
Regards,
Sergey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page