Flags to apply to frame mappings.
Allocate an AVHWDeviceContext for a given hardware type.
Open a device of the specified type and create an AVHWDeviceContext for it.
Create a new device of the specified type from an existing device.
Finalize the device context before use. This function must be called after the context is filled with all the required information and before it is used in any way.
Look up an AVHWDeviceType by name.
Get the constraints on HW frames given a device and the HW-specific configuration to be used with that device. If no HW-specific configuration is provided, returns the maximum possible capabilities of the device.
Get the string name of an AVHWDeviceType.
Allocate a HW-specific configuration structure for a given HW device. After use, the user must free all members as required by the specific hardware structure being used, then free the structure itself with av_free().
Iterate over supported device types.
Free an AVHWFrameConstraints structure.
Allocate an AVHWFramesContext tied to a given device context.
Create and initialise an AVHWFramesContext as a mapping of another existing AVHWFramesContext on a different device.
Finalize the context before use. This function must be called after the context is filled with all the required information and before it is attached to any frames.
Allocate a new frame attached to the given AVHWFramesContext.
Map a hardware frame.
Copy data to or from a hw surface. At least one of dst/src must have an AVHWFramesContext attached.
Get a list of possible source or target formats usable in av_hwframe_transfer_data().
This struct aggregates all the (hardware/vendor-specific) "high-level" state, i.e. state that is not tied to a concrete processing configuration. E.g., in an API that supports hardware-accelerated encoding and decoding, this struct will (if possible) wrap the state that is common to both encoding and decoding and from which specific instances of encoders or decoders can be derived.
This struct describes the constraints on hardware frames attached to a given device with a hardware-specific configuration. This is returned by av_hwdevice_get_hwframe_constraints() and must be freed by av_hwframe_constraints_free() after use.
This struct describes a set or pool of "hardware" frames (i.e. those with data not located in normal system memory). All the frames in the pool are assumed to be allocated in the same way and interchangeable.