19 #ifndef AVUTIL_HWCONTEXT_INTERNAL_H
20 #define AVUTIL_HWCONTEXT_INTERNAL_H
This struct aggregates all the (hardware/vendor-specific) "high-level" state, i.e.
This structure describes decoded (raw) audio or video data.
void(* frames_uninit)(AVHWFramesContext *ctx)
const HWContextType ff_hwcontext_type_vdpau
const HWContextType ff_hwcontext_type_dxva2
size_t device_priv_size
size of the private data, i.e.
const HWContextType * hw_type
int(* map_to)(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src, int flags)
AVBufferPool * pool_internal
size_t frames_priv_size
size of the private data, i.e.
size_t device_hwctx_size
size of the public hardware-specific context, i.e.
int(* frames_get_constraints)(AVHWDeviceContext *ctx, const void *hwconfig, AVHWFramesConstraints *constraints)
const HWContextType ff_hwcontext_type_qsv
size_t frames_hwctx_size
size of the public frame pool hardware-specific context, i.e.
int(* map_from)(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src, int flags)
AVBufferRef * source_frames
For a derived context, a reference to the original frames context it was derived from.
reference-counted frame API
void(* device_uninit)(AVHWDeviceContext *ctx)
AVFrame * source
A reference to the original source of the mapping.
enum AVPixelFormat * pix_fmts
An array of pixel formats supported by the AVHWFramesContext instances Terminated by AV_PIX_FMT_NONE...
size_t device_hwconfig_size
Size of the hardware-specific device configuration.
void(* unmap)(AVHWFramesContext *ctx, struct HWMapDescriptor *hwmap)
Unmap function.
typedef void(APIENTRY *FF_PFNGLACTIVETEXTUREPROC)(GLenum texture)
int ff_hwframe_map_create(AVBufferRef *hwframe_ref, AVFrame *dst, const AVFrame *src, void(*unmap)(AVHWFramesContext *ctx, HWMapDescriptor *hwmap), void *priv)
void * priv
Hardware-specific private data associated with the mapping.
This struct describes the constraints on hardware frames attached to a given device with a hardware-s...
int(* device_create)(AVHWDeviceContext *ctx, const char *device, AVDictionary *opts, int flags)
int(* frames_get_buffer)(AVHWFramesContext *ctx, AVFrame *frame)
This struct describes a set or pool of "hardware" frames (i.e.
refcounted data buffer API
AVBufferRef * hw_frames_ctx
A reference to the hardware frames context in which this mapping was made.
int(* transfer_data_from)(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src)
int(* transfer_data_to)(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src)
A reference to a data buffer.
const HWContextType * hw_type
const HWContextType ff_hwcontext_type_cuda
AVHWFrameTransferDirection
int(* transfer_get_formats)(AVHWFramesContext *ctx, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats)
int(* device_init)(AVHWDeviceContext *ctx)
int(* frames_init)(AVHWFramesContext *ctx)
AVPixelFormat
Pixel format.
const HWContextType ff_hwcontext_type_vaapi