ffmpeg.libavutil.hwcontext

Undocumented in source.

Members

Enums

AVHWDeviceType
enum AVHWDeviceType
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVHWFrameTransferDirection
enum AVHWFrameTransferDirection
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AV_HWFRAME_MAP_READ
anonymousenum AV_HWFRAME_MAP_READ

Flags to apply to frame mappings.

Functions

av_hwdevice_ctx_alloc
AVBufferRef* av_hwdevice_ctx_alloc(AVHWDeviceType type)

Allocate an AVHWDeviceContext for a given hardware type.

av_hwdevice_ctx_create
int av_hwdevice_ctx_create(AVBufferRef** device_ctx, AVHWDeviceType type, const(char)* device, AVDictionary* opts, int flags)

Open a device of the specified type and create an AVHWDeviceContext for it.

av_hwdevice_ctx_create_derived
int av_hwdevice_ctx_create_derived(AVBufferRef** dst_ctx, AVHWDeviceType type, AVBufferRef* src_ctx, int flags)

Create a new device of the specified type from an existing device.

av_hwdevice_ctx_init
int av_hwdevice_ctx_init(AVBufferRef* ref_)

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.

av_hwdevice_find_type_by_name
AVHWDeviceType av_hwdevice_find_type_by_name(const(char)* name)

Look up an AVHWDeviceType by name.

av_hwdevice_get_hwframe_constraints
AVHWFramesConstraints* av_hwdevice_get_hwframe_constraints(AVBufferRef* ref_, const(void)* hwconfig)

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.

av_hwdevice_get_type_name
const(char)* av_hwdevice_get_type_name(AVHWDeviceType type)

Get the string name of an AVHWDeviceType.

av_hwdevice_hwconfig_alloc
void* av_hwdevice_hwconfig_alloc(AVBufferRef* device_ctx)

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().

av_hwdevice_iterate_types
AVHWDeviceType av_hwdevice_iterate_types(AVHWDeviceType prev)

Iterate over supported device types.

av_hwframe_constraints_free
void av_hwframe_constraints_free(AVHWFramesConstraints** constraints)

Free an AVHWFrameConstraints structure.

av_hwframe_ctx_alloc
AVBufferRef* av_hwframe_ctx_alloc(AVBufferRef* device_ctx)

Allocate an AVHWFramesContext tied to a given device context.

av_hwframe_ctx_create_derived
int av_hwframe_ctx_create_derived(AVBufferRef** derived_frame_ctx, AVPixelFormat format, AVBufferRef* derived_device_ctx, AVBufferRef* source_frame_ctx, int flags)

Create and initialise an AVHWFramesContext as a mapping of another existing AVHWFramesContext on a different device.

av_hwframe_ctx_init
int av_hwframe_ctx_init(AVBufferRef* ref_)

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.

av_hwframe_get_buffer
int av_hwframe_get_buffer(AVBufferRef* hwframe_ctx, AVFrame* frame, int flags)

Allocate a new frame attached to the given AVHWFramesContext.

av_hwframe_map
int av_hwframe_map(AVFrame* dst, const(AVFrame)* src, int flags)

Map a hardware frame.

av_hwframe_transfer_data
int av_hwframe_transfer_data(AVFrame* dst, const(AVFrame)* src, int flags)

Copy data to or from a hw surface. At least one of dst/src must have an AVHWFramesContext attached.

av_hwframe_transfer_get_formats
int av_hwframe_transfer_get_formats(AVBufferRef* hwframe_ctx, AVHWFrameTransferDirection dir, AVPixelFormat** formats, int flags)

Get a list of possible source or target formats usable in av_hwframe_transfer_data().

Structs

AVHWDeviceContext
struct AVHWDeviceContext

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.

AVHWDeviceInternal
struct AVHWDeviceInternal
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVHWFramesConstraints
struct AVHWFramesConstraints

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.

AVHWFramesContext
struct AVHWFramesContext

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.

AVHWFramesInternal
struct AVHWFramesInternal
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta