summaryrefslogtreecommitdiffstats
path: root/libavcodec/hwaccel.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-10-26 00:18:39 +0100
committerMark Thompson <sw@jkqxz.net>2017-11-26 21:35:49 +0000
commit24cc0a53e99e281b0ff502e82e7cf857111eca3f (patch)
tree2b85011f3b02cef82eb4dc1d5c90b683b043385b /libavcodec/hwaccel.h
parent2779d33ed99898675e0b3884fabe1ce6839f36d1 (diff)
downloadffmpeg-streaming-24cc0a53e99e281b0ff502e82e7cf857111eca3f.zip
ffmpeg-streaming-24cc0a53e99e281b0ff502e82e7cf857111eca3f.tar.gz
lavc: Add codec metadata to indicate hardware support
Diffstat (limited to 'libavcodec/hwaccel.h')
-rw-r--r--libavcodec/hwaccel.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libavcodec/hwaccel.h b/libavcodec/hwaccel.h
index 124fbbf..0198c7f 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 */
OpenPOWER on IntegriCloud