The way I do the upload is pretty simple, I convert the avframe to a 
packed YUV444 buffer. This can be done really fast, then I upload this 
texture using GL_RGB. I use a pixelshader to convert the YUV data to 
RGB. This last part can also be done by using the default matrix 
operations which can be set before uploading. Personally I think the 
shader variant is faster, although I have no data to support this
Depending on your drivers it can be faster to convert the avframe to a 
YUV444 format with a dummy alpha channel, and then uploading it as an 
GL_BGRA texture.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to