[FFmpeg-devel] [PATCH] avcodec: Add flag for experimental HWAccels and use it for VDPAU/HEVC

Michael Niedermayer michaelni at gmx.at
Fri Jun 26 23:10:43 CEST 2015


On Fri, Jun 26, 2015 at 08:45:09AM -0700, Philip Langdale wrote:
> This HWAccel isn't really usable right now due to an nvidia driver bug,
> so we don't want it selected by default.
> 
> HWAccels have a capabilities field and there's a comment about flags,
> but no flags exist today, so let's add one for experimental hwaccels.
> 
> Signed-off-by: Philip Langdale <philipl at overt.org>
> ---
>  libavcodec/avcodec.h    | 8 +++++++-
>  libavcodec/utils.c      | 7 +++++++
>  libavcodec/vdpau_hevc.c | 1 +
>  libavcodec/version.h    | 2 +-
>  4 files changed, 16 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 761d3c1..ddbf0a3 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -894,6 +894,12 @@ typedef struct RcOverride{
>   */
>  #define CODEC_CAP_LOSSLESS         0x80000000
>  
> +/**
> + * HWAccel is experimental and is thus avoided in favor of non experimental
> + * codecs
> + */
> +#define HWACCEL_CODEC_CAP_EXPERIMENTAL     0x0200

this should have a AV prefix if it is public API

if instead its left as private API then the version change should be
micro only

i dont know which way makes more sense

patch LGTM either way

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

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150626/74e4d19f/attachment.asc>


More information about the ffmpeg-devel mailing list