Mercurial > libavcodec.hg
changeset 9932:89f0fd3f1908 libavcodec
Add PIX_FMT_ARGB encoding to qtrle.
Patch by Alexis Ballier, alexis ballier gmail
author | cehoyos |
---|---|
date | Wed, 08 Jul 2009 14:58:16 +0000 |
parents | 9711cba197fc |
children | 6fd0b776f838 |
files | qtrleenc.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/qtrleenc.c Tue Jul 07 09:33:53 2009 +0000 +++ b/qtrleenc.c Wed Jul 08 14:58:16 2009 +0000 @@ -74,6 +74,9 @@ case PIX_FMT_RGB24: s->pixel_size = 3; break; + case PIX_FMT_ARGB: + s->pixel_size = 4; + break; default: av_log(avctx, AV_LOG_ERROR, "Unsupported colorspace.\n"); break; @@ -325,6 +328,6 @@ qtrle_encode_init, qtrle_encode_frame, qtrle_encode_end, - .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_NONE}, + .pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), };