AVBufferRef * hw_frames_ctx
enum AVPixelFormat format
The pixel format identifying the underlying HW surface type.
int av_hwdevice_ctx_create(AVBufferRef **pdevice_ref, enum AVHWDeviceType type, const char *device, AVDictionary *opts, int flags)
Open a device of the specified type and create an AVHWDeviceContext for it.
main external API structure.
This struct describes a set or pool of "hardware" frames (i.e.
AVBufferRef * av_hwframe_ctx_alloc(AVBufferRef *device_ref_in)
Allocate an AVHWFramesContext tied to a given device context.
enum AVPixelFormat sw_format
The pixel format identifying the actual data layout of the hardware frames.
void * opaque
Private data of the user, can be used to carry app specific stuff.