VLC 4.0.0-dev
|
Data Structures | |
struct | vout_resource |
struct | input_resource_t |
Macros | |
#define | resource_GetFirstVoutRsc(resource) vlc_list_first_entry_or_null(&resource->vout_rscs, struct vout_resource, node) |
#define resource_GetFirstVoutRsc | ( | resource | ) | vlc_list_first_entry_or_null(&resource->vout_rscs, struct vout_resource, node) |
|
static |
References msg_Dbg, input_resource_t::p_parent, input_resource_t::p_sout, input_resource_t::psz_sout, and sout_StreamChainDelete().
Referenced by input_resource_Release(), input_resource_RequestSout(), and input_resource_TerminateSout().
|
static |
|
static |
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().
input_resource_t * input_resource_New | ( | vlc_object_t * | p_parent | ) |
It creates an empty input resource handler.
The given object MUST stay alive as long as the input_resource_t is not deleted.
References input_resource_t::lock, input_resource_t::lock_hold, input_resource_t::p_parent, input_resource_t::p_vout_dummy, input_resource_t::rc, vlc_atomic_rc_init(), vlc_list_init(), vlc_mutex_init(), vout_CreateDummy(), and input_resource_t::vout_rscs.
Referenced by input_Create(), and vlc_player_New().
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().
|
static |
References INPUT_RESOURCE_VOUT_NOTCHANGED, INPUT_RESOURCE_VOUT_STOPPED, input_resource_t::lock_hold, msg_Dbg, input_resource_t::p_parent, resource_GetFirstVoutRsc, resource_GetVoutRsc(), vout_resource::started, vlc_mutex_lock(), vlc_mutex_unlock(), vout_resource::vout, vout_Close(), vout_resource_Remove(), input_resource_t::vout_rsc_free, vout_Stop(), and vout_StopDisplay().
Referenced by input_resource_PutVout(), and input_resource_RequestVout().
void input_resource_Release | ( | input_resource_t * | p_resource | ) |
It releases an input resource.
References aout_Release(), DestroySout(), DestroyVout(), input_resource_t::p_aout, input_resource_t::p_vout_dummy, input_resource_t::rc, vlc_atomic_rc_dec(), and vout_Release().
Referenced by Destroy(), End(), Init(), vlc_player_Delete(), and vlc_player_New().
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().
void input_resource_TerminateSout | ( | input_resource_t * | p_resource | ) |
This function deletes the current sout in the resources.
References DestroySout(), input_resource_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_resource_PutSout(), and vlc_player_destructor_Thread().
|
static |
References input_resource_t::lock_hold, msg_Dbg, vout_resource::order, input_resource_t::p_parent, input_resource_t::p_vout_dummy, vlc_list_is_empty(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, VLC_VOUT_ORDER_PRIMARY, VLC_VOUT_ORDER_SECONDARY, vout_resource::vout, vout_Close(), vout_Create(), vout_resource_Add(), vout_resource_Create(), input_resource_t::vout_rsc_free, and input_resource_t::vout_rscs.
Referenced by input_resource_RequestVout().
|
inlinestatic |
References vout_resource::node, vlc_assert_unreachable, vlc_list_foreach, vout_resource::vout, and input_resource_t::vout_rscs.
Referenced by input_resource_PutVoutLocked(), and input_resource_RequestVout().
|
inlinestatic |
References vout_resource::node, vlc_list_append(), and input_resource_t::vout_rscs.
Referenced by RequestVoutRsc().
|
inlinestatic |
References vout_resource::psz_prev_title, vout_resource::started, unlikely, and vout_resource::vout.
Referenced by RequestVoutRsc().
|
inlinestatic |
References vout_resource::node, vout_resource::psz_prev_title, vlc_list_remove(), and vout_resource::vout.
Referenced by DestroyVout(), and input_resource_PutVoutLocked().
|
static |
References vout_DisplayTitle().
Referenced by DisplayVoutTitle().