I’m working on live streaming a camera feed to an LCD display using the i.MX RT1176 controller.
The incoming H.264 video stream is decoded using FFmpeg into YUVJ420P pixel format with BT.709 colorspace.
On the RT1176 side, we use the PXP (Pixel Pipeline) for YUV-to-RGB conversion (CSC) before displaying the frames on the LCD. However, the displayed video has a noticeable greenish tint.
Since the PXP does not support the YUVJ420P pixel format directly, we configure the process surface buffer format as YUV420.
Also, when checking the CSC coefficient setup in the PXP driver (kPXP_Csc1YCbCr2RGB mode), the coefficient values appear to correspond to the BT.601 colorspace, although this isn’t clearly documented in the reference manual.
Could anyone confirm whether the default PXP CSC coefficients are indeed based on BT.601?
If so, could you please share the correct BT.709 coefficient values that can be programmed into the PXP CSC registers to achieve accurate color conversion?
Hi @EdwinHz,
Thank you for your reply.
If possible, could you please provide the appropriate CSC1 coefficient values for BT.709 YUV-to-RGB conversion, compatible with the PXP’s internal YUV→RGB conversion formula?
Hi @Anni,
You are correct. In order to properly convert for BT.709, you will need to manually change the CSC coefficients on the PXP_CSC1CoefficientSet() function.