summaryrefslogtreecommitdiffstats
path: root/video/hwdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/hwdec.h')
-rw-r--r--video/hwdec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/video/hwdec.h b/video/hwdec.h
index f2fa7943af..9d1035cd6e 100644
--- a/video/hwdec.h
+++ b/video/hwdec.h
@@ -47,7 +47,14 @@ struct mp_hwdec_ctx {
// HWDEC_CUDA: CUcontext*
void *ctx;
- // Optional.
+ // libavutil-wrapped context, if available.
+ struct AVBufferRef *av_device_ref; // AVVAAPIDeviceContext*
+
+ // List of IMGFMT_s, terminated with 0. NULL if N/A.
+ int *supported_formats;
+
+ // Optional. Legacy. (New code should use AVHWFramesContext and
+ // mp_image_hw_download().)
// Allocates a software image from the pool, downloads the hw image from
// mpi, and returns it.
// pool can be NULL (then just use straight allocation).