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

#include <hwcontext_d3d11va.h>

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

ID3D11Device * device
 
ID3D11DeviceContext * device_context
 
ID3D11VideoDevice * video_device
 
ID3D11VideoContext * video_context
 
void(* lock )(void *lock_ctx)
 
void(* unlock )(void *lock_ctx)
 
voidlock_ctx
 

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

This struct is allocated as AVHWDeviceContext.hwctx

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

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

◆ device

ID3D11Device* AVD3D11VADeviceContext::device

Device used for texture creation and access. This can also be used to set the libavcodec decoding device.

Must be set by the user. This is the only mandatory field - the other device context fields are set from this and are available for convenience.

Deallocating the AVHWDeviceContext will always release this interface, and it does not matter whether it was user-allocated.

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

◆ device_context

ID3D11DeviceContext* AVD3D11VADeviceContext::device_context

If unset, this will be set from the device field on init.

Deallocating the AVHWDeviceContext will always release this interface, and it does not matter whether it was user-allocated.

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

◆ video_device

ID3D11VideoDevice* AVD3D11VADeviceContext::video_device

If unset, this will be set from the device field on init.

Deallocating the AVHWDeviceContext will always release this interface, and it does not matter whether it was user-allocated.

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

◆ video_context

ID3D11VideoContext* AVD3D11VADeviceContext::video_context

If unset, this will be set from the device_context field on init.

Deallocating the AVHWDeviceContext will always release this interface, and it does not matter whether it was user-allocated.

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

◆ lock

void(* AVD3D11VADeviceContext::lock) (void *lock_ctx)

Callbacks for locking. They protect accesses to device_context and video_context calls. They also protect access to the internal staging texture (for av_hwframe_transfer_data() calls). They do NOT protect access to hwcontext or decoder state in general.

If unset on init, the hwcontext implementation will set them to use an internal mutex.

The underlying lock must be recursive. lock_ctx is for free use by the locking implementation.

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

◆ unlock

void(* AVD3D11VADeviceContext::unlock) (void *lock_ctx)

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

◆ lock_ctx

void* AVD3D11VADeviceContext::lock_ctx

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


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