Commit 805e9336 authored by cehoyos's avatar cehoyos

Add PIX_FMT_ARGB encoding to qtrle.

Patch by Alexis Ballier, alexis ballier gmail 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19372 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b6c96ca0
...@@ -74,6 +74,9 @@ static av_cold int qtrle_encode_init(AVCodecContext *avctx) ...@@ -74,6 +74,9 @@ static av_cold int qtrle_encode_init(AVCodecContext *avctx)
case PIX_FMT_RGB24: case PIX_FMT_RGB24:
s->pixel_size = 3; s->pixel_size = 3;
break; break;
case PIX_FMT_ARGB:
s->pixel_size = 4;
break;
default: default:
av_log(avctx, AV_LOG_ERROR, "Unsupported colorspace.\n"); av_log(avctx, AV_LOG_ERROR, "Unsupported colorspace.\n");
break; break;
...@@ -325,6 +328,6 @@ AVCodec qtrle_encoder = { ...@@ -325,6 +328,6 @@ AVCodec qtrle_encoder = {
qtrle_encode_init, qtrle_encode_init,
qtrle_encode_frame, qtrle_encode_frame,
qtrle_encode_end, 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"), .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment