OpenGL support for 10-bit color depth in iMX8MQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OpenGL support for 10-bit color depth in iMX8MQ

850 Views
sotero
Contributor III

Hi,

I'm using an iMX8MQ board with a MIPI LCD screen driven by LCDIF controller (DCSS is used for HDMI output). By means of GPU I'm able to display 4K video but only when it's 8 bits using glTexDirectVIVMap. Is there any way to process 10 bits color in OpenGL for iMX8MQ? Thanks.

Best regards,

Santiago Otero

0 Kudos
4 Replies

627 Views
joanxie
NXP TechSupport
NXP TechSupport

what format do you use?pls check the source code as below, if it doesn't include your format, then the directvivmap

doesn't support this

if (Format == GL_VIV_YV12)

else if (Format == GL_VIV_I420)

else if (Format == GL_VIV_NV12)

else if (Format == GL_VIV_NV21)

else if (Format == GL_VIV_YUY2)

else if (Format == GL_VIV_UYVY)

else if (Format == GL_RGB565_OES)

else if (Format == GL_RGBA)

else if (Format == GL_RGB)

else if (Format == GL_BGRA_EXT)

else

{

            glmERROR(GL_INVALID_ENUM);

            break;

}

0 Kudos

627 Views
sotero
Contributor III

Hello Joan,

I'm using GL_VIV_NV12 but it only works for 8 bits depth so I suppose 10 bits is not supported. Is there a way for displaying 4K 10 bit video in LCDIF? Thanks.

0 Kudos

627 Views
joanxie
NXP TechSupport
NXP TechSupport

LCDIF is a display interface, do you need to know if LCDIF can support 10bits MIPI LCD? or  do you want to know if imx8M can support NV12 or not? refer to the source code, directvivmap supports NV12, could you tell me what error message do you have?

0 Kudos

627 Views
sotero
Contributor III

I want to know if there is a way to display 4K 10bits video in an MIPI display with LCDIF interface. Wayland or KMS does not support it with LCDIF interface, only with DCSS. My only option is OpenGL. The format is NV12 but with 10bits depth, not 8bits. If I try to use directvivmap with 10bits NV12 there is no error message but the output is not right.

I can't find the source code for directvivmap. Please can you tell me where I can download it? Thanks.

0 Kudos