aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsv_internal.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-03-04 23:57:35 +0000
committerMark Thompson <sw@jkqxz.net>2017-06-14 22:26:32 +0100
commit91c3b50d74ba8874ea090c29063f953f4cc90ba9 (patch)
treeba018bc7f3155acc4929c609c9ea495b8665faf1 /libavcodec/qsv_internal.h
parentbff7bec1d7d0ed23f24a2c815f133d58b6b86b1e (diff)
downloadffmpeg-91c3b50d74ba8874ea090c29063f953f4cc90ba9.tar.gz
qsv: Add ability to create a session from a device
(cherry picked from commit 4936a48b1e6fc2147599541f8b25f43a8a9d1f16)
Diffstat (limited to 'libavcodec/qsv_internal.h')
-rw-r--r--libavcodec/qsv_internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h
index 814db08e6c..c0305508dd 100644
--- a/libavcodec/qsv_internal.h
+++ b/libavcodec/qsv_internal.h
@@ -90,9 +90,12 @@ int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc);
int ff_qsv_init_internal_session(AVCodecContext *avctx, mfxSession *session,
const char *load_plugins);
-int ff_qsv_init_session_hwcontext(AVCodecContext *avctx, mfxSession *session,
- QSVFramesContext *qsv_frames_ctx,
- const char *load_plugins, int opaque);
+int ff_qsv_init_session_device(AVCodecContext *avctx, mfxSession *psession,
+ AVBufferRef *device_ref, const char *load_plugins);
+
+int ff_qsv_init_session_frames(AVCodecContext *avctx, mfxSession *session,
+ QSVFramesContext *qsv_frames_ctx,
+ const char *load_plugins, int opaque);
int ff_qsv_find_surface_idx(QSVFramesContext *ctx, QSVFrame *frame);