aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-02-27 08:09:23 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-02-27 08:09:23 +0000
commit044f0296a4a6b57d6bc3e9e8da5f27c10e7ebb34 (patch)
tree603951a274609a2050a8bdb1d27255bb88615981
parent3bc5f6f9a6418682d91d0e01bdbe58ec91bf905a (diff)
downloadffmpeg-044f0296a4a6b57d6bc3e9e8da5f27c10e7ebb34.tar.gz
Add ff_hwaccel_pixfmt_list_420[] definition.
Patch by Gwenole Beauchesne. Originally committed as revision 17633 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c5
-rw-r--r--libavcodec/mpegvideo.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 38aa4d2ebf..b417c68e45 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -80,6 +80,11 @@ const enum PixelFormat ff_pixfmt_list_420[] = {
PIX_FMT_NONE
};
+const enum PixelFormat ff_hwaccel_pixfmt_list_420[] = {
+ PIX_FMT_YUV420P,
+ PIX_FMT_NONE
+};
+
const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){
int i;
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 8e324ae2ba..0f099759dc 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -709,6 +709,7 @@ void ff_init_block_index(MpegEncContext *s);
void ff_copy_picture(Picture *dst, Picture *src);
extern const enum PixelFormat ff_pixfmt_list_420[];
+extern const enum PixelFormat ff_hwaccel_pixfmt_list_420[];
static inline void ff_update_block_index(MpegEncContext *s){
const int block_size= 8>>s->avctx->lowres;