YCbCr 4:2:2 to RGB 24

YCbCr 4:2:2 to RGB 24

I am converting an image stream that is in the YCbCr 4:2:2 format to RGB24 by using the ippiYCbCr422toBGR_8u_C2C3R function. The issue I am having is when displaying the RGB24 conversion, every once in a while, the image will be brighter than what it should be. Is this because the conversion is not 100%?

- Matt

6 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - vikingsooner

I am converting an image stream that is in the YCbCr 4:2:2 format to RGB24 by using the ippiYCbCr422toBGR_8u_C2C3R function. The issue I am having is when displaying the RGB24 conversion, every once in a while, the image will be brighter than what it should be. Is this because the conversion is not 100%?

- Matt

The reason might be that this function follow to video processing convention where sample range header and footer are saturated to particular level (0..16 is zero and 245..255 is 255). You may try function from IPP JPEG library which do not have such saturation ippiYCbCr422ToRGB_JPEG_8u_C2C3R (note, we do not have BGR variant of this function)

Regards,
Vladimir

I tried using the ippiYCbCr422ToRBG_JPEG_8u_C2C3R function and its conversion is a lot more taxing on my system than the previous one.

- Matt

When you say more taxing what do you mean?

Vladimir

Quoting - vikingsooner

I am converting an image stream that is in the YCbCr 4:2:2 format to RGB24 by using the ippiYCbCr422toBGR_8u_C2C3R function. The issue I am having is when displaying the RGB24 conversion, every once in a while, the image will be brighter than what it should be. Is this because the conversion is not 100%?

- Matt

Is there a way to to use CMYK data using IPP ? Is there a way to encode/decode CMYK data as JPEG2000 ?

IPP JPEG codec support RGB to CMYK conversion. For JPEG2000you currently have to do this outside of codec

Vladimir

Leave a Comment

Please sign in to add a comment. Not a member? Join today