diff options
author | Mark Thompson <mrt@jkqxz.net> | 2016-02-18 23:25:52 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-03-19 15:38:00 +0100 |
commit | b1f01e85a92d401a9b29c79f23db36b7685e8c09 (patch) | |
tree | 16b5ce3710f61e21f8dd6a368bc1cbede920a399 /libavutil/hwcontext_internal.h | |
parent | 1098f5c0495c61a98d4ff6b8e24c17974d4bace5 (diff) |
lavu: add a way to query hwcontext frame constraints
Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 641232f140..27de1f9e62 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); |