aboutsummaryrefslogtreecommitdiffstats
path: root/avtools/avconv.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-03-04 23:57:30 +0000
committerMark Thompson <sw@jkqxz.net>2017-03-20 23:15:43 +0000
commitd2e6dd32a445b5744a51d090c0822dbd7e434592 (patch)
treebd542e6c11e81b1852f91b0bbd52f41422388ffa /avtools/avconv.h
parentb7487f4f3c39b4b202e1ea7bb2de13902f2dee45 (diff)
downloadffmpeg-d2e6dd32a445b5744a51d090c0822dbd7e434592.tar.gz
avconv: Generic device setup
Not yet enabled for any hwaccels.
Diffstat (limited to 'avtools/avconv.h')
-rw-r--r--avtools/avconv.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/avtools/avconv.h b/avtools/avconv.h
index 3c3f0ef659..c578e2074b 100644
--- a/avtools/avconv.h
+++ b/avtools/avconv.h
@@ -40,6 +40,7 @@
#include "libavutil/avutil.h"
#include "libavutil/dict.h"
#include "libavutil/fifo.h"
+#include "libavutil/hwcontext.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
@@ -63,8 +64,15 @@ typedef struct HWAccel {
int (*init)(AVCodecContext *s);
enum HWAccelID id;
enum AVPixelFormat pix_fmt;
+ enum AVHWDeviceType device_type;
} HWAccel;
+typedef struct HWDevice {
+ char *name;
+ enum AVHWDeviceType type;
+ AVBufferRef *device_ref;
+} HWDevice;
+
/* select an input stream for an output stream */
typedef struct StreamMap {
int disabled; /* 1 is this mapping is disabled by a negative map */
@@ -510,4 +518,13 @@ int qsv_transcode_init(OutputStream *ost);
int vaapi_decode_init(AVCodecContext *avctx);
int vaapi_device_init(const char *device);
+HWDevice *hw_device_get_by_name(const char *name);
+int hw_device_init_from_string(const char *arg, HWDevice **dev);
+void hw_device_free_all(void);
+
+int hw_device_setup_for_decode(InputStream *ist);
+int hw_device_setup_for_encode(OutputStream *ost);
+
+int hwaccel_decode_init(AVCodecContext *avctx);
+
#endif /* AVCONV_H */