VLC 4.0.0-dev
|
Data Structures | |
struct | vlc_decoder_device_operations |
struct | vlc_decoder_device |
Decoder context struct. More... | |
Macros | |
#define | set_callback_dec_device(activate, priority) |
Typedefs | |
typedef struct vlc_decoder_device | vlc_decoder_device |
Decoder context struct. | |
typedef int(* | vlc_decoder_device_Open) (vlc_decoder_device *device, vlc_window_t *window) |
"decoder device" module open entry point | |
Enumerations | |
enum | vlc_decoder_device_type { VLC_DECODER_DEVICE_VAAPI , VLC_DECODER_DEVICE_VDPAU , VLC_DECODER_DEVICE_DXVA2 , VLC_DECODER_DEVICE_D3D11VA , VLC_DECODER_DEVICE_VIDEOTOOLBOX , VLC_DECODER_DEVICE_AWINDOW , VLC_DECODER_DEVICE_NVDEC , VLC_DECODER_DEVICE_MMAL , VLC_DECODER_DEVICE_GSTDECODE } |
Decoder device type. More... | |
Functions | |
vlc_decoder_device * | vlc_decoder_device_Create (vlc_object_t *, vlc_window_t *window) |
Create a decoder device from a window. | |
vlc_decoder_device * | vlc_decoder_device_Hold (vlc_decoder_device *device) |
Hold a decoder device. | |
void | vlc_decoder_device_Release (vlc_decoder_device *device) |
Release a decoder device. | |
#define set_callback_dec_device | ( | activate, | |
priority | |||
) |
typedef struct vlc_decoder_device vlc_decoder_device |
Decoder context struct.
typedef int(* vlc_decoder_device_Open) (vlc_decoder_device *device, vlc_window_t *window) |
"decoder device" module open entry point
device | the "decoder device" structure to initialize |
window | pointer to a window to help device initialization (can be NULL) |
vlc_decoder_device * vlc_decoder_device_Create | ( | vlc_object_t * | o, |
vlc_window_t * | window | ||
) |
Create a decoder device from a window.
This function will be hidden in the future. It is now used by opengl vout module as a transition.
References vlc_decoder_device_priv::device, name, vlc_decoder_device::ops, vlc_decoder_device_priv::rc, var_InheritString(), vlc_atomic_rc_init(), vlc_custom_create, VLC_OBJECT, vlc_object_delete, and vlc_objres_clear().
Referenced by vout_GetDevice().
vlc_decoder_device * vlc_decoder_device_Hold | ( | vlc_decoder_device * | device | ) |
Hold a decoder device.
References container_of, vlc_decoder_device_priv::device, vlc_decoder_device_priv::rc, and vlc_atomic_rc_inc().
Referenced by vlc_gl_CreateOffscreen(), vlc_video_context_Create(), vlc_video_context_HoldDevice(), vout_GetDevice(), and VoutHoldDecoderDevice().
void vlc_decoder_device_Release | ( | vlc_decoder_device * | device | ) |
Release a decoder device.
References vlc_decoder_device_operations::close, container_of, vlc_decoder_device_priv::device, vlc_decoder_device::ops, vlc_decoder_device_priv::rc, vlc_atomic_rc_dec(), VLC_OBJECT, vlc_object_delete, and vlc_objres_clear().
Referenced by filter_HoldDecoderDeviceType(), vlc_gl_Delete(), vlc_video_context_Release(), vout_Release(), and vout_Start().