VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Enumerations | Functions
Decoder hardware device
Collaboration diagram for Decoder hardware device:

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. More...
 
typedef int(* vlc_decoder_device_Open) (vlc_decoder_device *device, vout_window_t *window)
 "decoder device" module open entry point More...
 

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
}
 Decoder device type. More...
 

Functions

vlc_decoder_devicevlc_decoder_device_Create (vlc_object_t *, vout_window_t *window)
 Create a decoder device from a window. More...
 
vlc_decoder_devicevlc_decoder_device_Hold (vlc_decoder_device *device)
 Hold a decoder device. More...
 
void vlc_decoder_device_Release (vlc_decoder_device *device)
 Release a decoder device. More...
 

Detailed Description

Macro Definition Documentation

◆ set_callback_dec_device

#define set_callback_dec_device (   activate,
  priority 
)
Value:
{ \
vlc_decoder_device_Open open__ = activate; \
(void) open__; \
set_callback(activate) \
} \
set_capability( "decoder device", priority )

Typedef Documentation

◆ vlc_decoder_device

Decoder context struct.

◆ vlc_decoder_device_Open

typedef int(* vlc_decoder_device_Open) (vlc_decoder_device *device, vout_window_t *window)

"decoder device" module open entry point

Parameters
devicethe "decoder device" structure to initialize
windowpointer to a window to help device initialization (can be NULL)

Enumeration Type Documentation

◆ vlc_decoder_device_type

Decoder device type.

Enumerator
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 

Function Documentation

◆ vlc_decoder_device_Create()

vlc_decoder_device* vlc_decoder_device_Create ( vlc_object_t o,
vout_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 decoder_device_Open(), vlc_decoder_device_priv::device, name, vlc_decoder_device::ops, vlc_decoder_device_priv::rc, var_InheritString(), vlc_atomic_rc_init(), vlc_module_load, VLC_OBJECT, vlc_object_create, vlc_object_delete, and vlc_objres_clear().

◆ vlc_decoder_device_Hold()

vlc_decoder_device* vlc_decoder_device_Hold ( vlc_decoder_device device)

◆ vlc_decoder_device_Release()

void vlc_decoder_device_Release ( vlc_decoder_device device)