diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-11 18:50:05 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-11 21:29:25 +0100 |
commit | 8b87fd98256a73509a561992ffe4100db09e223c (patch) | |
tree | d2f29009b6a10fe37b076a342a5e9afbe681307d | |
parent | ba6e36f906c9ff8a4debd44288792579495bafc3 (diff) | |
download | ffmpeg-8b87fd98256a73509a561992ffe4100db09e223c.tar.gz |
bmpenc: support for BGRA
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/bmpenc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c index 55f8ea79d1..b457445321 100644 --- a/libavcodec/bmpenc.c +++ b/libavcodec/bmpenc.c @@ -37,6 +37,9 @@ static av_cold int bmp_encode_init(AVCodecContext *avctx){ avctx->coded_frame = (AVFrame*)&s->picture; switch (avctx->pix_fmt) { + case PIX_FMT_BGRA: + avctx->bits_per_coded_sample = 32; + break; case PIX_FMT_BGR24: avctx->bits_per_coded_sample = 24; break; @@ -167,8 +170,8 @@ AVCodec ff_bmp_encoder = { .init = bmp_encode_init, .encode = bmp_encode_frame, .pix_fmts = (const enum PixelFormat[]){ - PIX_FMT_BGR24, - PIX_FMT_RGB555, PIX_FMT_RGB444, PIX_FMT_RGB565, + PIX_FMT_BGRA, PIX_FMT_BGR24, + PIX_FMT_RGB565, PIX_FMT_RGB555, PIX_FMT_RGB444, PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_MONOBLACK, PIX_FMT_NONE}, |