On Sat, Jan 12, 2013 at 02:12:51PM +0200, Rémi Denis-Courmont wrote:
> --- /dev/null
> +++ b/libavcodec/vdpau_mpeg12.c
> @@ -0,0 +1,116 @@
> +
> +#ifdef CONFIG_MPEG1_VDPAU_HWACCEL
> +AVHWAccel ff_mpeg1_vdpau_hwaccel = {
> +    .name           = "mpeg1_vdpau",
> +    .type           = AVMEDIA_TYPE_VIDEO,
> +    .id             = AV_CODEC_ID_MPEG1VIDEO,
> +    .pix_fmt        = AV_PIX_FMT_VDPAU,
> +    .start_frame    = vdpau_mpeg_start_frame,
> +    .end_frame      = ff_vdpau_common_end_frame,
> +    .decode_slice   = vdpau_mpeg_decode_slice,
> +};
> +#endif
> +
> +#ifdef CONFIG_MPEG2_VDPAU_HWACCEL
> +AVHWAccel ff_mpeg2_vdpau_hwaccel = {
> +    .name           = "mpeg2_vdpau",
> +    .type           = AVMEDIA_TYPE_VIDEO,
> +    .id             = AV_CODEC_ID_MPEG2VIDEO,
> +    .pix_fmt        = AV_PIX_FMT_VDPAU,
> +    .start_frame    = vdpau_mpeg_start_frame,
> +    .end_frame      = ff_vdpau_common_end_frame,
> +    .decode_slice   = vdpau_mpeg_decode_slice,
> +};
> +#endif

#ifdef ---> #if - our CONFIG_FOO settings always have either a 0 or a 1
value, but are never undefined.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to