glTexDirectVIVMap and YUV420p

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

glTexDirectVIVMap and YUV420p

1,263 次查看
ortogonal
Contributor III

Hi!
I'm using the VPU to decode HD movie and trying to display the movie by using glTexDirectVIVMap. I have a simple question, and it may have a really simple answer due to my little knowledge about video encoding. But all the sample HD movies I found uses YUV420P colospace and that is not a format that is supportet by glTexDirectVIVMap. How can I solve this? Is it possible to do somethin in the IPU before and make the color space conversion there, or is it possible to write a fragment shader that makes the color conversion.


The result I end up with is a really smooth playing movie but with wrong colors.


Thanks!

Erik

标签 (3)
0 项奖励
1 回复

602 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Erik

colospace conversion can be done by both IPU and GPU,

examples can be found below

https://community.freescale.com/docs/DOC-94961

Freescale/gstreamer-imx · GitHub

AN4629 Fast Image Processing with i.MX 6 Series

gpu - texture for YUV420 to RGB conversion in OpenGL ES - Stack Overflow

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励