[FFmpeg-cvslog] r19372 - trunk/libavcodec/qtrleenc.c
cehoyos
subversion
Wed Jul 8 16:58:17 CEST 2009
Author: cehoyos
Date: Wed Jul 8 16:58:16 2009
New Revision: 19372
Log:
Add PIX_FMT_ARGB encoding to qtrle.
Patch by Alexis Ballier, alexis ballier gmail
Modified:
trunk/libavcodec/qtrleenc.c
Modified: trunk/libavcodec/qtrleenc.c
==============================================================================
--- trunk/libavcodec/qtrleenc.c Wed Jul 8 10:52:56 2009 (r19371)
+++ trunk/libavcodec/qtrleenc.c Wed Jul 8 16:58:16 2009 (r19372)
@@ -74,6 +74,9 @@ static av_cold int qtrle_encode_init(AVC
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 @@ AVCodec qtrle_encoder = {
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"),
};
More information about the ffmpeg-cvslog
mailing list