Commit 8cd5c4b5 authored by diego's avatar diego

Add some long names to AVCodec declarations.

patch by Stefano Sabatini, stefano.sabatini-lala poste it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13017 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c1457fc
...@@ -1240,6 +1240,7 @@ AVCodec dvvideo_encoder = { ...@@ -1240,6 +1240,7 @@ AVCodec dvvideo_encoder = {
dvvideo_init, dvvideo_init,
dvvideo_encode_frame, dvvideo_encode_frame,
.pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, -1}, .pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, -1},
.long_name = "DV (Digital Video)",
}; };
#endif // CONFIG_DVVIDEO_ENCODER #endif // CONFIG_DVVIDEO_ENCODER
...@@ -1254,6 +1255,7 @@ AVCodec dvvideo_decoder = { ...@@ -1254,6 +1255,7 @@ AVCodec dvvideo_decoder = {
dvvideo_close, dvvideo_close,
dvvideo_decode_frame, dvvideo_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
NULL NULL,
.long_name = "DV (Digital Video)",
}; };
#endif #endif
...@@ -749,5 +749,6 @@ AVCodec flic_decoder = { ...@@ -749,5 +749,6 @@ AVCodec flic_decoder = {
NULL, NULL,
NULL, NULL,
NULL, NULL,
NULL NULL,
.long_name = "Autodesk Animator Flic video",
}; };
...@@ -723,6 +723,7 @@ AVCodec mpeg4_decoder = { ...@@ -723,6 +723,7 @@ AVCodec mpeg4_decoder = {
ff_h263_decode_frame, ff_h263_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.flush= ff_mpeg_flush, .flush= ff_mpeg_flush,
.long_name= "MPEG-4 part 2",
}; };
AVCodec h263_decoder = { AVCodec h263_decoder = {
...@@ -749,6 +750,7 @@ AVCodec msmpeg4v1_decoder = { ...@@ -749,6 +750,7 @@ AVCodec msmpeg4v1_decoder = {
ff_h263_decode_end, ff_h263_decode_end,
ff_h263_decode_frame, ff_h263_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
.long_name="MPEG-4 part 2 Microsoft variant version 1",
}; };
AVCodec msmpeg4v2_decoder = { AVCodec msmpeg4v2_decoder = {
...@@ -761,6 +763,7 @@ AVCodec msmpeg4v2_decoder = { ...@@ -761,6 +763,7 @@ AVCodec msmpeg4v2_decoder = {
ff_h263_decode_end, ff_h263_decode_end,
ff_h263_decode_frame, ff_h263_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
.long_name=" MPEG-4 part 2 Microsoft variant version 2",
}; };
AVCodec msmpeg4v3_decoder = { AVCodec msmpeg4v3_decoder = {
...@@ -773,6 +776,7 @@ AVCodec msmpeg4v3_decoder = { ...@@ -773,6 +776,7 @@ AVCodec msmpeg4v3_decoder = {
ff_h263_decode_end, ff_h263_decode_end,
ff_h263_decode_frame, ff_h263_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
.long_name="MPEG-4 part 2 Microsoft variant version 3",
}; };
AVCodec wmv1_decoder = { AVCodec wmv1_decoder = {
......
...@@ -8087,6 +8087,7 @@ AVCodec h264_decoder = { ...@@ -8087,6 +8087,7 @@ AVCodec h264_decoder = {
decode_frame, decode_frame,
/*CODEC_CAP_DRAW_HORIZ_BAND |*/ CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, /*CODEC_CAP_DRAW_HORIZ_BAND |*/ CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.flush= flush_dpb, .flush= flush_dpb,
.long_name = "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
}; };
#include "svq3.c" #include "svq3.c"
...@@ -106,6 +106,7 @@ AVCodec libgsm_encoder = { ...@@ -106,6 +106,7 @@ AVCodec libgsm_encoder = {
libgsm_init, libgsm_init,
libgsm_encode_frame, libgsm_encode_frame,
libgsm_close, libgsm_close,
.long_name = "libgsm GSM",
}; };
AVCodec libgsm_ms_encoder = { AVCodec libgsm_ms_encoder = {
...@@ -116,6 +117,7 @@ AVCodec libgsm_ms_encoder = { ...@@ -116,6 +117,7 @@ AVCodec libgsm_ms_encoder = {
libgsm_init, libgsm_init,
libgsm_encode_frame, libgsm_encode_frame,
libgsm_close, libgsm_close,
.long_name = "libgsm GSM Microsoft variant",
}; };
static int libgsm_decode_frame(AVCodecContext *avctx, static int libgsm_decode_frame(AVCodecContext *avctx,
...@@ -145,6 +147,7 @@ AVCodec libgsm_decoder = { ...@@ -145,6 +147,7 @@ AVCodec libgsm_decoder = {
NULL, NULL,
libgsm_close, libgsm_close,
libgsm_decode_frame, libgsm_decode_frame,
.long_name = "libgsm GSM",
}; };
AVCodec libgsm_ms_decoder = { AVCodec libgsm_ms_decoder = {
...@@ -156,4 +159,5 @@ AVCodec libgsm_ms_decoder = { ...@@ -156,4 +159,5 @@ AVCodec libgsm_ms_decoder = {
NULL, NULL,
libgsm_close, libgsm_close,
libgsm_decode_frame, libgsm_decode_frame,
.long_name = "libgsm GSM Microsoft variant",
}; };
...@@ -296,5 +296,6 @@ AVCodec libx264_encoder = { ...@@ -296,5 +296,6 @@ AVCodec libx264_encoder = {
.encode = X264_frame, .encode = X264_frame,
.close = X264_close, .close = X264_close,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY,
.pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, -1 } .pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, -1 },
.long_name = "libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
}; };
...@@ -774,4 +774,5 @@ AVCodec libxvid_encoder = { ...@@ -774,4 +774,5 @@ AVCodec libxvid_encoder = {
ff_xvid_encode_frame, ff_xvid_encode_frame,
ff_xvid_encode_close, ff_xvid_encode_close,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.long_name= "libxvidcore MPEG-4 part 2",
}; };
...@@ -194,4 +194,5 @@ AVCodec ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need them ...@@ -194,4 +194,5 @@ AVCodec ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need them
MPV_encode_init, MPV_encode_init,
encode_picture_lossless, encode_picture_lossless,
MPV_encode_end, MPV_encode_end,
.long_name = "Lossless JPEG",
}; };
...@@ -145,5 +145,6 @@ AVCodec mjpegb_decoder = { ...@@ -145,5 +145,6 @@ AVCodec mjpegb_decoder = {
ff_mjpeg_decode_end, ff_mjpeg_decode_end,
mjpegb_decode_frame, mjpegb_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
NULL NULL,
.long_name = "Apple MJPEG-B",
}; };
...@@ -2442,6 +2442,7 @@ AVCodec mpeg1video_decoder = { ...@@ -2442,6 +2442,7 @@ AVCodec mpeg1video_decoder = {
mpeg_decode_frame, mpeg_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.flush= ff_mpeg_flush, .flush= ff_mpeg_flush,
.long_name= "MPEG-1 video",
}; };
AVCodec mpeg2video_decoder = { AVCodec mpeg2video_decoder = {
...@@ -2455,6 +2456,7 @@ AVCodec mpeg2video_decoder = { ...@@ -2455,6 +2456,7 @@ AVCodec mpeg2video_decoder = {
mpeg_decode_frame, mpeg_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.flush= ff_mpeg_flush, .flush= ff_mpeg_flush,
.long_name= "MPEG-2 video",
}; };
//legacy decoder //legacy decoder
...@@ -2469,6 +2471,7 @@ AVCodec mpegvideo_decoder = { ...@@ -2469,6 +2471,7 @@ AVCodec mpegvideo_decoder = {
mpeg_decode_frame, mpeg_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.flush= ff_mpeg_flush, .flush= ff_mpeg_flush,
.long_name= "MPEG-1 video",
}; };
#ifdef HAVE_XVMC #ifdef HAVE_XVMC
...@@ -2502,6 +2505,7 @@ AVCodec mpeg_xvmc_decoder = { ...@@ -2502,6 +2505,7 @@ AVCodec mpeg_xvmc_decoder = {
mpeg_decode_frame, mpeg_decode_frame,
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY,
.flush= ff_mpeg_flush, .flush= ff_mpeg_flush,
.long_name = "MPEG-1 video XvMC (X-Video Motion Compensation)",
}; };
#endif #endif
......
...@@ -938,6 +938,7 @@ AVCodec mpeg1video_encoder = { ...@@ -938,6 +938,7 @@ AVCodec mpeg1video_encoder = {
.supported_framerates= ff_frame_rate_tab+1, .supported_framerates= ff_frame_rate_tab+1,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.capabilities= CODEC_CAP_DELAY, .capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-1 video",
}; };
AVCodec mpeg2video_encoder = { AVCodec mpeg2video_encoder = {
...@@ -951,4 +952,5 @@ AVCodec mpeg2video_encoder = { ...@@ -951,4 +952,5 @@ AVCodec mpeg2video_encoder = {
.supported_framerates= ff_frame_rate_tab+1, .supported_framerates= ff_frame_rate_tab+1,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, -1},
.capabilities= CODEC_CAP_DELAY, .capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-2 video",
}; };
...@@ -3805,6 +3805,7 @@ AVCodec mpeg4_encoder = { ...@@ -3805,6 +3805,7 @@ AVCodec mpeg4_encoder = {
MPV_encode_end, MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.capabilities= CODEC_CAP_DELAY, .capabilities= CODEC_CAP_DELAY,
.long_name= "MPEG-4 part 2",
}; };
AVCodec msmpeg4v1_encoder = { AVCodec msmpeg4v1_encoder = {
...@@ -3816,6 +3817,7 @@ AVCodec msmpeg4v1_encoder = { ...@@ -3816,6 +3817,7 @@ AVCodec msmpeg4v1_encoder = {
MPV_encode_picture, MPV_encode_picture,
MPV_encode_end, MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.long_name= "MPEG-4 part 2 Microsoft variant version 1",
}; };
AVCodec msmpeg4v2_encoder = { AVCodec msmpeg4v2_encoder = {
...@@ -3827,6 +3829,7 @@ AVCodec msmpeg4v2_encoder = { ...@@ -3827,6 +3829,7 @@ AVCodec msmpeg4v2_encoder = {
MPV_encode_picture, MPV_encode_picture,
MPV_encode_end, MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.long_name= "MPEG-4 part 2 Microsoft variant version 2",
}; };
AVCodec msmpeg4v3_encoder = { AVCodec msmpeg4v3_encoder = {
...@@ -3838,6 +3841,7 @@ AVCodec msmpeg4v3_encoder = { ...@@ -3838,6 +3841,7 @@ AVCodec msmpeg4v3_encoder = {
MPV_encode_picture, MPV_encode_picture,
MPV_encode_end, MPV_encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1}, .pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, -1},
.long_name= "MPEG-4 part 2 Microsoft variant version 3",
}; };
AVCodec wmv1_encoder = { AVCodec wmv1_encoder = {
......
...@@ -304,4 +304,5 @@ AVCodec msrle_decoder = { ...@@ -304,4 +304,5 @@ AVCodec msrle_decoder = {
msrle_decode_end, msrle_decode_end,
msrle_decode_frame, msrle_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
.long_name= "Microsoft RLE",
}; };
...@@ -899,4 +899,5 @@ AVCodec truemotion1_decoder = { ...@@ -899,4 +899,5 @@ AVCodec truemotion1_decoder = {
truemotion1_decode_end, truemotion1_decode_end,
truemotion1_decode_frame, truemotion1_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
.long_name = "Duck TrueMotion 1.0",
}; };
...@@ -887,4 +887,5 @@ AVCodec truemotion2_decoder = { ...@@ -887,4 +887,5 @@ AVCodec truemotion2_decoder = {
decode_end, decode_end,
decode_frame, decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
.long_name = "Duck TrueMotion 2.0",
}; };
...@@ -149,4 +149,5 @@ AVCodec ws_snd1_decoder = { ...@@ -149,4 +149,5 @@ AVCodec ws_snd1_decoder = {
NULL, NULL,
NULL, NULL,
ws_snd_decode_frame, ws_snd_decode_frame,
.long_name = "Westwood Audio (SND1)",
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment