On 01/07/2013 12:38 PM, David Longest wrote:
I agree that a check for the alpha channel would be a better way to go about 
this. The AVCodecContext provided in the AVStream object could possibly be used 
to get the pixel format. However, I am not sure how reliable that field is 
between combinations of decoders and demuxers. Currently I am unable to look 
further into this, but may have time in the next few weeks.

I don't think there's really an issue with combinations of demuxers and decoders here. An AVCodecContext is the context for exactly one audio or video stream (after it has been demuxed). There would only be one decoder in question for that stream. The pix_fmt field of AVCodecContext will indicate the pixel format of the decoded video.

The annoying part is that you'd have to go through the format enumeration in avutil/pixfmt.h and check for each format that supports alpha (it appears that there are several).

I'd do this if I had the time, but I really can't right now.

--"J"
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to