enum AVPixelFormat format
The pixel format identifying the underlying HW surface type.
int av_hwframe_ctx_init(AVBufferRef *ref)
Finalize the context before use.
AVBufferRef * av_hwframe_ctx_alloc(AVBufferRef *device_ref_in)
Allocate an AVHWFramesContext tied to a given device context.
int width
The allocated dimensions of the frames in this pool.
enum AVPixelFormat sw_format
The pixel format identifying the actual data layout of the hardware frames.
This struct describes a set or pool of "hardware" frames (i.e.
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.
void * opaque
Private data of the user, can be used to carry app specific stuff.
main external API structure.
enum AVPixelFormat sw_pix_fmt
Nominal unaccelerated pixel format, see AV_PIX_FMT_xxx.