Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-07 Thread Carl Eugen Hoyos
Carl Eugen Hoyos cehoyos at ag.or.at writes: wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you intend to beat this? Setting it to 0RGB32 instead of RGB32. This was merged by Michael. If you find an issue with RGB555, please tell! Thank you

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-07 Thread wm4
On Sat, 7 Feb 2015 10:34:16 + (UTC) Carl Eugen Hoyos ceho...@ag.or.at wrote: Carl Eugen Hoyos cehoyos at ag.or.at writes: wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you intend to beat this? Setting it to 0RGB32 instead of

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-07 Thread Clément Bœsch
On Sat, Feb 07, 2015 at 04:32:02PM +0100, wm4 wrote: On Sat, 7 Feb 2015 10:34:16 + (UTC) Carl Eugen Hoyos ceho...@ag.or.at wrote: Carl Eugen Hoyos cehoyos at ag.or.at writes: wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-07 Thread Carl Eugen Hoyos
wm4 nfxjfg at googlemail.com writes: AV_PIX_FMT_PAL8 is still inconsistent. It doesn't have an alpha flag, but going by the doxygen, it's implied that it can have alpha. The doxygen is correct afaict, I don't know the exact meaning of the alpha flag. Carl Eugen

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread wm4
On Fri, 6 Feb 2015 20:16:50 + (UTC) Carl Eugen Hoyos ceho...@ag.or.at wrote: wm4 nfxjfg at googlemail.com writes: The pixfmt docs seems to imply that the extra component must be set to 0 if a RGB0 format is used. Camtasia puts random stuff. The documentation sounds wrong to me:

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread Michael Niedermayer
On Fri, Feb 06, 2015 at 01:48:07PM +0100, wm4 wrote: On Fri, 6 Feb 2015 12:10:59 + (UTC) Carl Eugen Hoyos ceho...@ag.or.at wrote: wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you intend to beat this? Setting it to 0RGB32 instead

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread Carl Eugen Hoyos
wm4 nfxjfg at googlemail.com writes: The pixfmt docs seems to imply that the extra component must be set to 0 if a RGB0 format is used. Camtasia puts random stuff. The documentation sounds wrong to me: The pix_fmt was needed because of hardware providing 32bit rgb, there is no guarantee

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread Carl Eugen Hoyos
wm4 nfxjfg at googlemail.com writes: Camtasia can output AV_PIX_FMT_RGB32 (which is ARGB or BGRA depending on endian). Camtasia supports no alpha It appears I missed Camtasia when I fixed this for many codecs years ago. I will fix this later if nobody beats me. Thank you, Carl Eugen

[FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread wm4
This is a proposal for an API extension. Currently, some pixel formats support alpha, but whether the alpha component contains something useful or just garbage is not part of the pixel format definition. This applies at least to packed RGB formats, where the 4th component is either alpha or

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread Clément Bœsch
On Fri, Feb 06, 2015 at 12:32:14PM +0100, wm4 wrote: This is a proposal for an API extension. Currently, some pixel formats support alpha, but whether the alpha component contains something useful or just garbage is not part of the pixel format definition. This applies at least to packed RGB

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread Carl Eugen Hoyos
wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you intend to beat this? Setting it to 0RGB32 instead of RGB32. Unrelated to your API suggestion, this is a bug in FFmpeg that we should fix. Explicitly writing the alpha component? (I was assuming

Re: [FFmpeg-devel] [RFC] Exporting the alpha mode from decoders

2015-02-06 Thread wm4
On Fri, 6 Feb 2015 12:10:59 + (UTC) Carl Eugen Hoyos ceho...@ag.or.at wrote: wm4 nfxjfg at googlemail.com writes: I will fix this later if nobody beats me. How do you intend to beat this? Setting it to 0RGB32 instead of RGB32. Unrelated to your API suggestion, this is a bug