VLC 4.0.0-dev
|
Go to the source code of this file.
Enumerations | |
enum | input_resource_vout_state { INPUT_RESOURCE_VOUT_NOTCHANGED , INPUT_RESOURCE_VOUT_STARTED , INPUT_RESOURCE_VOUT_STOPPED } |
audio_output_t * input_resource_GetAout | ( | input_resource_t * | p_resource | ) |
This function creates or recycles an audio output.
References aout_New, input_resource_t::b_aout_busy, input_resource_t::lock_hold, msg_Dbg, input_resource_t::p_aout, input_resource_t::p_parent, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ModuleThread_UpdateAudioFormat(), and vlc_player_aout_Init().
input_resource_t * input_resource_Hold | ( | input_resource_t * | p_resource | ) |
This function holds the input_resource_t itself.
References input_resource_t::rc, and vlc_atomic_rc_inc().
Referenced by input_Create().
audio_output_t * input_resource_HoldAout | ( | input_resource_t * | p_resource | ) |
References aout_Hold(), input_resource_t::lock_hold, input_resource_t::p_aout, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ControlNav(), ViewpointApply(), and vlc_player_aout_Hold().
vout_thread_t * input_resource_HoldDummyVout | ( | input_resource_t * | p_resource | ) |
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().
vout_thread_t * input_resource_HoldVout | ( | input_resource_t * | p_resource | ) |
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::lock_hold, resource_GetFirstVoutRsc, vlc_mutex_lock(), vlc_mutex_unlock(), vout_resource::vout, and vout_Hold().
Referenced by ModuleThread_NewSpuBuffer(), vlc_player_vout_Hold(), and vlc_player_vout_TriggerOption().
void input_resource_HoldVouts | ( | input_resource_t * | p_resource, |
vout_thread_t *** | ppp_vout, | ||
size_t * | pi_vout | ||
) |
This function returns all current vouts if any.
You must call vout_Release() on all values returned (if non NULL).
References count, input_resource_t::lock_hold, vout_resource::node, vlc_alloc(), vlc_list_foreach, vlc_list_is_empty(), vlc_mutex_lock(), vlc_mutex_unlock(), vout_resource::vout, vout_Hold(), and input_resource_t::vout_rscs.
Referenced by ControlNav(), ViewpointApply(), vlc_player_osd_HoldAll(), and vlc_player_vout_HoldAll().
void input_resource_PutAout | ( | input_resource_t * | p_resource, |
audio_output_t * | p_aout | ||
) |
This function retains or destroys an audio output.
References aout_Release(), input_resource_t::b_aout_busy, input_resource_t::lock_hold, msg_Dbg, input_resource_t::p_aout, input_resource_t::p_parent, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by DecoderThread_Reload(), DeleteDecoder(), ModuleThread_UpdateAudioFormat(), and vlc_player_aout_Init().
void input_resource_PutSout | ( | input_resource_t * | resource, |
sout_stream_t * | sout | ||
) |
void input_resource_PutVout | ( | input_resource_t * | p_resource, |
vout_thread_t * | vout, | ||
enum input_resource_vout_state * | vout_state | ||
) |
References input_resource_PutVoutLocked(), input_resource_t::lock, vlc_mutex_lock(), vlc_mutex_unlock(), and vout_resource::vout.
Referenced by DeleteDecoder().
sout_stream_t * input_resource_RequestSout | ( | input_resource_t * | p_resource, |
const char * | psz_sout | ||
) |
This function handles sout request.
References DestroySout(), likely, input_resource_t::lock, msg_Dbg, input_resource_t::p_parent, input_resource_t::p_sout, input_resource_t::psz_sout, sout_NewInstance, strdup(), vlc_mutex_lock(), and vlc_mutex_unlock().
vout_thread_t * input_resource_RequestVout | ( | input_resource_t * | p_resource, |
vlc_video_context * | vctx, | ||
const vout_configuration_t * | cfg, | ||
enum vlc_vout_order * | order, | ||
enum input_resource_vout_state * | vout_state | ||
) |
References DisplayVoutTitle(), vout_configuration_t::fmt, INPUT_CONTROL_SET_INITIAL_VIEWPOINT, input_ControlPush(), input_resource_PutVoutLocked(), INPUT_RESOURCE_VOUT_NOTCHANGED, INPUT_RESOURCE_VOUT_STARTED, INPUT_RESOURCE_VOUT_STOPPED, input_resource_t::lock, vout_resource::order, input_resource_t::p_input, video_format_t::pose, vout_resource::psz_prev_title, RequestVoutRsc(), resource_GetVoutRsc(), vout_resource::started, input_control_param_t::viewpoint, vlc_mutex_lock(), vlc_mutex_unlock(), vout_resource::vout, vout_configuration_t::vout, vout_Request(), and input_resource_t::vout_rsc_free.
Referenced by CreateVoutIfNeeded(), and ModuleThread_UpdateVideoFormat().
void input_resource_ResetAout | ( | input_resource_t * | p_resource | ) |
References aout_Release(), input_resource_t::b_aout_busy, input_resource_t::lock_hold, input_resource_t::p_aout, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_player_aout_Reset().
void input_resource_SetInput | ( | input_resource_t * | p_resource, |
input_thread_t * | p_input | ||
) |
This function set the associated input.
References input_resource_t::lock, input_resource_t::p_input, resource_GetFirstVoutRsc, vlc_list_is_empty(), vlc_mutex_lock(), vlc_mutex_unlock(), input_resource_t::vout_rsc_free, and input_resource_t::vout_rscs.
Referenced by End(), Init(), and input_Create().
void input_resource_StopFreeVout | ( | input_resource_t * | p_resource | ) |
References input_resource_t::lock, msg_Dbg, vlc_mutex_lock(), vlc_mutex_unlock(), vout_resource::vout, input_resource_t::vout_rsc_free, and vout_Stop().
Referenced by EsOutStopFreeVout(), and vlc_player_destructor_Thread().