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
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!
-----------------------------------------------------------------------------------------------------------------------