VLC  4.0.0-dev
Functions
resource.h File Reference
Include dependency graph for resource.h:

Go to the source code of this file.

Functions

void input_resource_SetInput (input_resource_t *, input_thread_t *)
 This function set the associated input. More...
 
sout_instance_tinput_resource_RequestSout (input_resource_t *, sout_instance_t *, const char *psz_sout)
 This function handles sout request. More...
 
vout_thread_tinput_resource_GetVoutDecoderDevice (input_resource_t *, const vout_device_configuration_t *, enum vlc_vout_order *order, vlc_decoder_device **)
 
int input_resource_StartVout (input_resource_t *, vlc_video_context *, const vout_configuration_t *)
 
void input_resource_PutVout (input_resource_t *, vout_thread_t *)
 
vout_thread_tinput_resource_HoldVout (input_resource_t *)
 This function returns one of the current vout if any. More...
 
vout_thread_tinput_resource_HoldDummyVout (input_resource_t *)
 This function returns the dummy vout. More...
 
void input_resource_HoldVouts (input_resource_t *, vout_thread_t ***, size_t *)
 This function returns all current vouts if any. More...
 
void input_resource_StopFreeVout (input_resource_t *)
 
input_resource_tinput_resource_Hold (input_resource_t *)
 This function holds the input_resource_t itself. More...
 

Function Documentation

◆ input_resource_GetVoutDecoderDevice()

vout_thread_t* input_resource_GetVoutDecoderDevice ( input_resource_t ,
const vout_device_configuration_t ,
enum vlc_vout_order order,
vlc_decoder_device **   
)

◆ input_resource_Hold()

input_resource_t* input_resource_Hold ( input_resource_t )

This function holds the input_resource_t itself.

References input_resource_t::rc, and vlc_atomic_rc_inc().

Referenced by Create().

◆ input_resource_HoldDummyVout()

vout_thread_t* input_resource_HoldDummyVout ( input_resource_t )

This function returns the dummy vout.

It will be the parent of the future main vout and can be used to pre-configure it.

References input_resource_t::p_vout_dummy, and vout_Hold().

Referenced by vlc_player_vout_Hold(), and vlc_player_vout_HoldAll().

◆ input_resource_HoldVout()

vout_thread_t* input_resource_HoldVout ( input_resource_t )

This function returns one of the current vout if any.

You must call vout_Release() on the value returned (if non NULL).

References input_resource_t::i_vout, input_resource_t::lock_hold, input_resource_t::pp_vout, vlc_mutex_lock(), vlc_mutex_unlock(), and vout_Hold().

Referenced by ModuleThread_NewSpuBuffer(), vlc_player_vout_Hold(), and vlc_player_vout_TriggerOption().

◆ input_resource_HoldVouts()

void input_resource_HoldVouts ( input_resource_t ,
vout_thread_t ***  ,
size_t *   
)

This function returns all current vouts if any.

You must call vout_Release() on all values returned (if non NULL).

References input_resource_t::i_vout, input_resource_t::lock_hold, input_resource_t::pp_vout, vlc_alloc(), vlc_mutex_lock(), vlc_mutex_unlock(), and vout_Hold().

Referenced by ControlNav(), ViewpointApply(), vlc_player_osd_HoldAll(), and vlc_player_vout_HoldAll().

◆ input_resource_PutVout()

void input_resource_PutVout ( input_resource_t ,
vout_thread_t  
)

◆ input_resource_RequestSout()

sout_instance_t* input_resource_RequestSout ( input_resource_t ,
sout_instance_t ,
const char *  psz_sout 
)

This function handles sout request.

References input_resource_t::lock, RequestSout(), vlc_mutex_lock(), and vlc_mutex_unlock().

Referenced by ControlNav(), End(), Init(), input_resource_TerminateSout(), and MainLoop().

◆ input_resource_SetInput()

void input_resource_SetInput ( input_resource_t ,
input_thread_t  
)

◆ input_resource_StartVout()

int input_resource_StartVout ( input_resource_t ,
vlc_video_context ,
const vout_configuration_t  
)

◆ input_resource_StopFreeVout()

void input_resource_StopFreeVout ( input_resource_t )