summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-12 16:00:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-12 16:00:44 +0000
commitfcee01646748763cf63528c97b99e976d6c76da8 (patch)
tree97a2157603a82694291276bdff5656acd1b8fde8 /libavcodec
parent4a1b9ba0dd64e57e7090e66213f87ea6607cabad (diff)
automatic pixel format selection
Originally committed as revision 3131 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h1
-rw-r--r--libavcodec/svq1.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index d7781dc9a3..fe4aeb2c8b 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1658,6 +1658,7 @@ typedef struct AVCodec {
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;
/**
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 97b6db70e3..7c5c59d793 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1933,6 +1933,7 @@ AVCodec svq1_decoder = {
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 @@ AVCodec svq1_encoder = {
svq1_encode_init,
svq1_encode_frame,
svq1_encode_end,
+ .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, -1},
};
#endif //CONFIG_ENCODERS