[FFmpeg-devel] [PATCH] Add REGISTER_HWACCEL

Michael Niedermayer michaelni
Wed Feb 25 18:53:32 CET 2009


On Wed, Feb 25, 2009 at 06:06:06PM +0100, Gwenole Beauchesne wrote:
> Hi,
>
> This patch adds REGISTER_HWACCEL macro and configury.
>
> Sample usage:
> REGISTER_HWACCEL (H264_VAAPI, h264_vaapi);
>
> => CONFIG_H264_VAAPI_HWACCEL is generated and an h264_vaapi_hwaccel struct 
> is expected.
>
> [...]
>
> #if CONFIG_H264_VAAPI_HWACCEL
> AVHWAccel h264_vaapi_hwaccel = {
>     .name           = "h264_vaapi",
>     .type           = CODEC_TYPE_VIDEO,
>     .id             = CODEC_ID_H264,
>     .pix_fmt        = PIX_FMT_VAAPI_VLD,
>     .capabilities   = 0,
>     .start_frame    = vaapi_h264_start_frame,
>     .end_frame      = vaapi_common_end_frame,
>     .decode_slice   = vaapi_h264_decode_slice,
> };
> #endif
>
> Regards,
> Gwenole.

> Index: configure
> ===================================================================
> --- configure	(revision 17587)
> +++ configure	(working copy)

not maintained by me

[...]

> Index: libavcodec/allcodecs.c
> ===================================================================
> --- libavcodec/allcodecs.c	(revision 17587)
> +++ libavcodec/allcodecs.c	(working copy)

ok

[..]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090225/ce6a1e50/attachment.pgp>



More information about the ffmpeg-devel mailing list