changeset 2020:a14873a809a8 libavcodec

automatic pixel format selection
author michael
date Wed, 12 May 2004 16:00:44 +0000
parents 93edc9073ffc
children 779dbab120d5
files avcodec.h svq1.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Wed May 12 02:50:48 2004 +0000
+++ b/avcodec.h	Wed May 12 16:00:44 2004 +0000
@@ -1658,6 +1658,7 @@
     struct AVCodec *next;
     void (*flush)(AVCodecContext *);
     const AVRational *supported_framerates; ///array of supported framerates, or NULL if any, array is terminated by {0,0}
+    const enum PixelFormat *pix_fmts;       ///array of supported pixel formats, or NULL if unknown, array is terminanted by -1
 } AVCodec;
 
 /**
--- a/svq1.c	Wed May 12 02:50:48 2004 +0000
+++ b/svq1.c	Wed May 12 16:00:44 2004 +0000
@@ -1933,6 +1933,7 @@
     svq1_decode_frame,
     CODEC_CAP_DR1,
     .flush= ff_mpeg_flush,
+    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
 };
 
 #ifdef CONFIG_ENCODERS
@@ -1945,6 +1946,7 @@
     svq1_encode_init,
     svq1_encode_frame,
     svq1_encode_end,
+    .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
 };
 
 #endif //CONFIG_ENCODERS