comparison mpeg12.c @ 6717:5df0c730234d libavcodec

Add some long names to AVCodec declarations. patch by Stefano Sabatini, stefano.sabatini-lala poste it
author diego
date Tue, 29 Apr 2008 07:24:44 +0000
parents 100f8bc03e6b
children e1302edb0f69
comparison
equal deleted inserted replaced
6716:aa09311685b2 6717:5df0c730234d
2440 NULL, 2440 NULL,
2441 mpeg_decode_end, 2441 mpeg_decode_end,
2442 mpeg_decode_frame, 2442 mpeg_decode_frame,
2443 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, 2443 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
2444 .flush= ff_mpeg_flush, 2444 .flush= ff_mpeg_flush,
2445 .long_name= "MPEG-1 video",
2445 }; 2446 };
2446 2447
2447 AVCodec mpeg2video_decoder = { 2448 AVCodec mpeg2video_decoder = {
2448 "mpeg2video", 2449 "mpeg2video",
2449 CODEC_TYPE_VIDEO, 2450 CODEC_TYPE_VIDEO,
2453 NULL, 2454 NULL,
2454 mpeg_decode_end, 2455 mpeg_decode_end,
2455 mpeg_decode_frame, 2456 mpeg_decode_frame,
2456 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, 2457 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
2457 .flush= ff_mpeg_flush, 2458 .flush= ff_mpeg_flush,
2459 .long_name= "MPEG-2 video",
2458 }; 2460 };
2459 2461
2460 //legacy decoder 2462 //legacy decoder
2461 AVCodec mpegvideo_decoder = { 2463 AVCodec mpegvideo_decoder = {
2462 "mpegvideo", 2464 "mpegvideo",
2467 NULL, 2469 NULL,
2468 mpeg_decode_end, 2470 mpeg_decode_end,
2469 mpeg_decode_frame, 2471 mpeg_decode_frame,
2470 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, 2472 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
2471 .flush= ff_mpeg_flush, 2473 .flush= ff_mpeg_flush,
2474 .long_name= "MPEG-1 video",
2472 }; 2475 };
2473 2476
2474 #ifdef HAVE_XVMC 2477 #ifdef HAVE_XVMC
2475 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){ 2478 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){
2476 Mpeg1Context *s; 2479 Mpeg1Context *s;
2500 NULL, 2503 NULL,
2501 mpeg_decode_end, 2504 mpeg_decode_end,
2502 mpeg_decode_frame, 2505 mpeg_decode_frame,
2503 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, 2506 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY,
2504 .flush= ff_mpeg_flush, 2507 .flush= ff_mpeg_flush,
2508 .long_name = "MPEG-1 video XvMC (X-Video Motion Compensation)",
2505 }; 2509 };
2506 2510
2507 #endif 2511 #endif
2508 2512
2509 /* this is ugly i know, but the alternative is too make 2513 /* this is ugly i know, but the alternative is too make