comparison h264.c @ 10512:6ec7b5450ca7 libavcodec

Add .pix_fmts to H264 VDPAU decoder declaration and remove obsolete test for codec->capabilities.
author cehoyos
date Tue, 10 Nov 2009 20:55:00 +0000
parents bfea93e47391
children 3d08b72377ee
comparison
equal deleted inserted replaced
10511:bfea93e47391 10512:6ec7b5450ca7
2194 // s->decode_mb= ff_h263_decode_mb; 2194 // s->decode_mb= ff_h263_decode_mb;
2195 s->quarter_sample = 1; 2195 s->quarter_sample = 1;
2196 if(!avctx->has_b_frames) 2196 if(!avctx->has_b_frames)
2197 s->low_delay= 1; 2197 s->low_delay= 1;
2198 2198
2199 if(s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)
2200 avctx->pix_fmt= PIX_FMT_VDPAU_H264;
2201 else
2202 avctx->pix_fmt= avctx->get_format(avctx, avctx->codec->pix_fmts); 2199 avctx->pix_fmt= avctx->get_format(avctx, avctx->codec->pix_fmts);
2203 avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt); 2200 avctx->hwaccel = ff_find_hwaccel(avctx->codec->id, avctx->pix_fmt);
2204 avctx->chroma_sample_location = AVCHROMA_LOC_LEFT; 2201 avctx->chroma_sample_location = AVCHROMA_LOC_LEFT;
2205 2202
2206 decode_init_vlc(); 2203 decode_init_vlc();
8189 decode_end, 8186 decode_end,
8190 decode_frame, 8187 decode_frame,
8191 CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU, 8188 CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
8192 .flush= flush_dpb, 8189 .flush= flush_dpb,
8193 .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"), 8190 .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)"),
8191 .pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_H264, PIX_FMT_NONE},
8194 }; 8192 };
8195 #endif 8193 #endif
8196 8194
8197 #if CONFIG_SVQ3_DECODER 8195 #if CONFIG_SVQ3_DECODER
8198 #include "svq3.c" 8196 #include "svq3.c"