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.
yes , can support it.
Supported Format:
• GL_VIV_YV12
• GL_VIV_NV12
• GL_VIV_YUY2
• GL_VIV_UYVY • GL_VIV_NV21
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.
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!
-----------------------------------------------------------------------------------------------------------------------