changeset 11505:61949a920190 libavcodec

qtrleenc: add rgb555 output Patch by Alexis Ballier std_gmail_addr(name.surname)
author benoit
date Wed, 17 Mar 2010 13:04:33 +0000
parents d44678e484a3
children c7743bcad821
files qtrleenc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/qtrleenc.c	Wed Mar 17 07:53:12 2010 +0000
+++ b/qtrleenc.c	Wed Mar 17 13:04:33 2010 +0000
@@ -68,9 +68,9 @@
     s->avctx=avctx;
 
     switch (avctx->pix_fmt) {
-/*    case PIX_FMT_RGB555:
+    case PIX_FMT_RGB555BE:
         s->pixel_size = 2;
-        break;*/
+        break;
     case PIX_FMT_RGB24:
         s->pixel_size = 3;
         break;
@@ -328,6 +328,6 @@
     qtrle_encode_init,
     qtrle_encode_frame,
     qtrle_encode_end,
-    .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE},
+    .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_FMT_ARGB, PIX_FMT_NONE},
     .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
 };