lavu: add a way to query hwcontext frame constraints
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
1098f5c049
commit
b1f01e85a9
@ -47,6 +47,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);
|
||||
|
||||
|
Reference in New Issue
Block a user