diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-14 13:33:37 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-14 13:33:37 +0100 |
commit | afccfaf26ac8fae3257302a74110b40615dfa05d (patch) | |
tree | 8d624efea672bfa209398c7157ab9fdcc123c49e /libavutil/hwcontext_internal.h | |
parent | 7af788aa625735fa9b3ff2e647f497c62127e855 (diff) | |
parent | b1f01e85a92d401a9b29c79f23db36b7685e8c09 (diff) | |
download | ffmpeg-afccfaf26ac8fae3257302a74110b40615dfa05d.tar.gz |
Merge commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09'
* commit 'b1f01e85a92d401a9b29c79f23db36b7685e8c09':
lavu: add a way to query hwcontext frame constraints
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavutil/hwcontext_internal.h')
-rw-r--r-- | libavutil/hwcontext_internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/hwcontext_internal.h b/libavutil/hwcontext_internal.h index cf24ce5eaf..0ea04f802e 100644 --- a/libavutil/hwcontext_internal.h +++ b/libavutil/hwcontext_internal.h @@ -48,6 +48,12 @@ typedef struct HWContextType { size_t device_priv_size; /** + * Size of the hardware-specific device configuration. + * (Used to query hwframe constraints.) + */ + size_t device_hwconfig_size; + + /** * size of the public frame pool hardware-specific context, * i.e. AVHWFramesContext.hwctx */ @@ -61,6 +67,10 @@ typedef struct HWContextType { int (*device_init)(AVHWDeviceContext *ctx); void (*device_uninit)(AVHWDeviceContext *ctx); + int (*frames_get_constraints)(AVHWDeviceContext *ctx, + const void *hwconfig, + AVHWFramesConstraints *constraints); + int (*frames_init)(AVHWFramesContext *ctx); void (*frames_uninit)(AVHWFramesContext *ctx); |