World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Структура AVHWDeviceContext

#include <hwcontext.h>

+ Граф связей класса AVHWDeviceContext:

Открытые атрибуты

const AVClassav_class
 
AVHWDeviceInternalinternal
 
enum AVHWDeviceType type
 
voidhwctx
 
void(* free )(struct AVHWDeviceContext *ctx)
 
voiduser_opaque
 

Подробное описание

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 is reference-counted with the AVBuffer mechanism. The av_hwdevice_ctx_alloc() constructor yields a reference, whose data field points to the actual AVHWDeviceContext. Further objects derived from AVHWDeviceContext (such as AVHWFramesContext, describing a frame pool with specific properties) will hold an internal reference to it. After all the references are released, the AVHWDeviceContext itself will be freed, optionally invoking a user-specified callback for uninitializing the hardware state.

См. определение в файле hwcontext.h строка 60

Данные класса

◆ av_class

const AVClass* AVHWDeviceContext::av_class

A class for logging. Set by av_hwdevice_ctx_alloc().

См. определение в файле hwcontext.h строка 64

◆ internal

AVHWDeviceInternal* AVHWDeviceContext::internal

Private data used internally by libavutil. Must not be accessed in any way by the caller.

См. определение в файле hwcontext.h строка 70

◆ type

enum AVHWDeviceType AVHWDeviceContext::type

This field identifies the underlying API used for hardware access.

This field is set when this struct is allocated and never changed afterwards.

См. определение в файле hwcontext.h строка 78

◆ hwctx

void* AVHWDeviceContext::hwctx

The format-specific data, allocated and freed by libavutil along with this context.

Should be cast by the user to the format-specific context defined in the corresponding header (hwcontext_*.h) and filled as described in the documentation before calling av_hwdevice_ctx_init().

After calling av_hwdevice_ctx_init() this struct should not be modified by the caller.

См. определение в файле hwcontext.h строка 91

◆ free

void(* AVHWDeviceContext::free) (struct AVHWDeviceContext *ctx)

This field may be set by the caller before calling av_hwdevice_ctx_init().

If non-NULL, this callback will be called when the last reference to this context is unreferenced, immediately before it is freed.

Заметки
when other objects (e.g an AVHWFramesContext) are derived from this struct, this callback will be invoked after all such child objects are fully uninitialized and their respective destructors invoked.

См. определение в файле hwcontext.h строка 103

◆ user_opaque

void* AVHWDeviceContext::user_opaque

Arbitrary user data, to be used e.g. by the free() callback.

См. определение в файле hwcontext.h строка 108


Объявления и описания членов структуры находятся в файле: