mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
hwdec: add a AVBufferRef(AVHWDeviceContext) field
This makes "generic" interaction with libav* components easier.
This commit is contained in:
@@ -47,6 +47,9 @@ struct mp_hwdec_ctx {
|
||||
// HWDEC_CUDA: CUcontext*
|
||||
void *ctx;
|
||||
|
||||
// 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user