i.MX6 GPU GL_VIV_UYVY format sopport of glTexDirectVIV()

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

i.MX6 GPU GL_VIV_UYVY format sopport of glTexDirectVIV()

1,547 Views
torus1000
Contributor V

Hi all,

Vivante extended command glTexDirectVIV() caused GL_INVALID_ENUM error
when set GL_VIV_UYVY format to the 4th argument.

According to the page 24 of i.MX_6_Graphics_User's_Guide.pdf, I couldn't find any limitations.

>If the format is GL_VIV_YUY2 or GL_VIV_UYVY, glTexDirectVIV
>creates a packed 4:2:2 texture and the Pixels array contains
>only one pointer to the packed YUV texture.

Is GL_VIV_UYVY format really supported?
(I used L3.10.53 yocto.)

Thanks.

Labels (3)
Tags (3)
0 Kudos
3 Replies

615 Views
joanxie
NXP TechSupport
NXP TechSupport

yes , can support it.

Supported Format:

• GL_VIV_YV12

• GL_VIV_NV12

• GL_VIV_YUY2

• GL_VIV_UYVY • GL_VIV_NV21

615 Views
torus1000
Contributor V

Dear Guanqiong,

Thank you for replying.

Now I know somewhere my code was wrong.

Could you point out why my code cause such error?

I'll appreciate to your kindly suggestions.

My codes:

  gpointer planes[3];

  gint width = 1920;

  gint height = 1080;

    :

  glTexDirectVIV(GL_TEXTURE_2D, width, height, GL_VIV_UYVY, (GLvoid**)&planes);

Thanks.

0 Kudos

615 Views
jamesbone
NXP TechSupport
NXP TechSupport

Hello,

It is difficult to provide a response about the such error with the complete code, do you think you can provide the init function and the headers that you add, and maybe an screen shot of such error.  what version of BSP are you using?, which device are you handling?


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos