diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-10-26 00:18:39 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-11-26 21:35:49 +0000 |
commit | 24cc0a53e99e281b0ff502e82e7cf857111eca3f (patch) | |
tree | 2b85011f3b02cef82eb4dc1d5c90b683b043385b /libavcodec/hwaccel.h | |
parent | 2779d33ed99898675e0b3884fabe1ce6839f36d1 (diff) | |
download | ffmpeg-24cc0a53e99e281b0ff502e82e7cf857111eca3f.tar.gz |
lavc: Add codec metadata to indicate hardware support
Diffstat (limited to 'libavcodec/hwaccel.h')
-rw-r--r-- | libavcodec/hwaccel.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/hwaccel.h b/libavcodec/hwaccel.h index 124fbbf1fd..0198c7f858 100644 --- a/libavcodec/hwaccel.h +++ b/libavcodec/hwaccel.h @@ -19,6 +19,24 @@ #ifndef AVCODEC_HWACCEL_H #define AVCODEC_HWACCEL_H +#include "avcodec.h" + + #define HWACCEL_CAP_ASYNC_SAFE (1 << 0) + +typedef struct AVCodecHWConfigInternal { + /** + * This is the structure which will be returned to the user by + * avcodec_get_hw_config(). + */ + AVCodecHWConfig public; + /** + * If this configuration uses a hwaccel, a pointer to it. + * If not, NULL. + */ + const AVHWAccel *hwaccel; +} AVCodecHWConfigInternal; + + #endif /* AVCODEC_HWACCEL_H */ |