diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-23 03:56:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-23 03:56:43 +0100 |
commit | 6ee2911996ed5aea8fd49fd264cfb7930a7cd10e (patch) | |
tree | 124917f72c0c720c4e019a41dc917cdca0b7c5a2 | |
parent | acb8d655d7507e4af8c5ba8e0e3a8ed74ce30c94 (diff) | |
parent | 6f6c0294646bf992abd670d4c5c53c15a38346fd (diff) | |
download | ffmpeg-6ee2911996ed5aea8fd49fd264cfb7930a7cd10e.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
lavc: drop ff_pixfmt_list_420
Conflicts:
libavcodec/flvdec.c
libavcodec/msmpeg4dec.c
libavcodec/rv10.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/flvdec.c | 5 | ||||
-rw-r--r-- | libavcodec/intelh263dec.c | 5 | ||||
-rw-r--r-- | libavcodec/mpegvideo.c | 5 | ||||
-rw-r--r-- | libavcodec/mpegvideo.h | 2 | ||||
-rw-r--r-- | libavcodec/msmpeg4dec.c | 20 | ||||
-rw-r--r-- | libavcodec/rv10.c | 10 | ||||
-rw-r--r-- | libavcodec/rv30.c | 5 | ||||
-rw-r--r-- | libavcodec/rv40.c | 5 | ||||
-rw-r--r-- | libavcodec/vc1dec.c | 10 | ||||
-rw-r--r-- | libavcodec/wmv2dec.c | 5 |
10 files changed, 52 insertions, 20 deletions
diff --git a/libavcodec/flvdec.c b/libavcodec/flvdec.c index f425f00424..ade2f79b6d 100644 --- a/libavcodec/flvdec.c +++ b/libavcodec/flvdec.c @@ -132,5 +132,8 @@ AVCodec ff_flv_decoder = { .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; diff --git a/libavcodec/intelh263dec.c b/libavcodec/intelh263dec.c index 5da420243d..7ea62465fa 100644 --- a/libavcodec/intelh263dec.c +++ b/libavcodec/intelh263dec.c @@ -133,5 +133,8 @@ AVCodec ff_h263i_decoder = { .close = ff_h263_decode_end, .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 271c8e56a8..c4067d718c 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -105,11 +105,6 @@ const uint8_t *const ff_mpeg2_dc_scale_table[4] = { mpeg2_dc_scale_table3, }; -const enum AVPixelFormat ff_pixfmt_list_420[] = { - AV_PIX_FMT_YUV420P, - AV_PIX_FMT_NONE -}; - static void dct_unquantize_mpeg1_intra_c(MpegEncContext *s, int16_t *block, int n, int qscale) { diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index cfbbb0653c..75c2b71ae0 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -763,8 +763,6 @@ void ff_MPV_motion(MpegEncContext *s, */ int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared); -extern const enum AVPixelFormat ff_pixfmt_list_420[]; - /** * permute block according to permuatation. * @param last last non zero element in scantable order diff --git a/libavcodec/msmpeg4dec.c b/libavcodec/msmpeg4dec.c index d8962adca9..52a53dde3f 100644 --- a/libavcodec/msmpeg4dec.c +++ b/libavcodec/msmpeg4dec.c @@ -923,7 +923,10 @@ AVCodec ff_msmpeg4v1_decoder = { .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; AVCodec ff_msmpeg4v2_decoder = { @@ -937,7 +940,10 @@ AVCodec ff_msmpeg4v2_decoder = { .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; AVCodec ff_msmpeg4v3_decoder = { @@ -951,7 +957,10 @@ AVCodec ff_msmpeg4v3_decoder = { .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; AVCodec ff_wmv1_decoder = { @@ -965,5 +974,8 @@ AVCodec ff_wmv1_decoder = { .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 8c14399b17..334994478a 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -795,7 +795,10 @@ AVCodec ff_rv10_decoder = { .decode = rv10_decode_frame, .capabilities = CODEC_CAP_DR1, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; AVCodec ff_rv20_decoder = { @@ -810,5 +813,8 @@ AVCodec ff_rv20_decoder = { .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY, .flush = ff_mpeg_flush, .max_lowres = 3, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c index 58bfb71b82..9ca6e026a5 100644 --- a/libavcodec/rv30.c +++ b/libavcodec/rv30.c @@ -294,7 +294,10 @@ AVCodec ff_rv30_decoder = { .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, .flush = ff_mpeg_flush, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, .init_thread_copy = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), }; diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c index 0e19e7ccf0..6b0ecdbe4d 100644 --- a/libavcodec/rv40.c +++ b/libavcodec/rv40.c @@ -576,7 +576,10 @@ AVCodec ff_rv40_decoder = { .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, .flush = ff_mpeg_flush, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, .init_thread_copy = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_init_thread_copy), .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), }; diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 3fe46d335e..177cc59508 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -6331,7 +6331,10 @@ AVCodec ff_wmv3image_decoder = { .decode = vc1_decode_frame, .capabilities = CODEC_CAP_DR1, .flush = vc1_sprite_flush, - .pix_fmts = ff_pixfmt_list_420 + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; #endif @@ -6347,6 +6350,9 @@ AVCodec ff_vc1image_decoder = { .decode = vc1_decode_frame, .capabilities = CODEC_CAP_DR1, .flush = vc1_sprite_flush, - .pix_fmts = ff_pixfmt_list_420 + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; #endif diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c index 39cc827f51..f35c818fc5 100644 --- a/libavcodec/wmv2dec.c +++ b/libavcodec/wmv2dec.c @@ -477,5 +477,8 @@ AVCodec ff_wmv2_decoder = { .close = wmv2_decode_end, .decode = ff_h263_decode_frame, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, - .pix_fmts = ff_pixfmt_list_420, + .pix_fmts = (const enum AVPixelFormat[]) { + AV_PIX_FMT_YUV420P, + AV_PIX_FMT_NONE + }, }; |