[FFmpeg-devel] [PATCH] bmpenc: support for BGRA

Paul B Mahol onemda at gmail.com
Thu Jan 12 00:33:53 CET 2012


On 1/11/12, Paul B Mahol <onemda at gmail.com> wrote:
> On 1/11/12, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> Paul B Mahol <onemda <at> gmail.com> writes:
>>
>>> >>      switch (avctx->pix_fmt) {
>>> >> +    case PIX_FMT_BGRA:
>>> >> +        avctx->bits_per_coded_sample = 32;
>>> >
>>> > I tested a similar patch and the problem is that ImageMagick does not
>>> > show
>>> > the
>>> > alpha channel for our encodes,
>>>
>>> That's because our encoder create version 3 files instead of version 4.
>>>
>>> Version 4 have header size of 108 bytes instead of 40.
>>
>> Thank you for clarifying, that is why I thought we should either always
>> write
>> version 4 or write version 4 for RGBA.
>
> I vote for writing always version 4.

Or version 5 if we could write ICC profile info.


More information about the ffmpeg-devel mailing list