VLC  3.0.15
Data Structures | Macros | Typedefs | Enumerations | Functions
input_internal.h File Reference
Include dependency graph for input_internal.h:

Go to the source code of this file.

Data Structures

struct  input_source_t
 
struct  input_control_t
 
struct  input_thread_private_t
 Private input fields. More...
 

Macros

#define INPUT_CONTROL_FIFO_SIZE   100
 
#define INPUT_PTS_DELAY_MAX   INT64_C(60000000)
 

Typedefs

typedef struct input_thread_private_t input_thread_private_t
 Private input fields. More...
 

Enumerations

enum  input_control_e {
  INPUT_CONTROL_SET_STATE, INPUT_CONTROL_SET_RATE, INPUT_CONTROL_SET_POSITION, INPUT_CONTROL_SET_TIME,
  INPUT_CONTROL_SET_PROGRAM, INPUT_CONTROL_SET_TITLE, INPUT_CONTROL_SET_TITLE_NEXT, INPUT_CONTROL_SET_TITLE_PREV,
  INPUT_CONTROL_SET_SEEKPOINT, INPUT_CONTROL_SET_SEEKPOINT_NEXT, INPUT_CONTROL_SET_SEEKPOINT_PREV, INPUT_CONTROL_SET_BOOKMARK,
  INPUT_CONTROL_NAV_ACTIVATE, INPUT_CONTROL_NAV_UP, INPUT_CONTROL_NAV_DOWN, INPUT_CONTROL_NAV_LEFT,
  INPUT_CONTROL_NAV_RIGHT, INPUT_CONTROL_NAV_POPUP, INPUT_CONTROL_NAV_MENU, INPUT_CONTROL_SET_ES,
  INPUT_CONTROL_RESTART_ES, INPUT_CONTROL_SET_VIEWPOINT, INPUT_CONTROL_SET_INITIAL_VIEWPOINT, INPUT_CONTROL_UPDATE_VIEWPOINT,
  INPUT_CONTROL_SET_AUDIO_DELAY, INPUT_CONTROL_SET_SPU_DELAY, INPUT_CONTROL_ADD_SLAVE, INPUT_CONTROL_SET_RECORD_STATE,
  INPUT_CONTROL_SET_FRAME_NEXT, INPUT_CONTROL_SET_RENDERER
}
 

Functions

static input_thread_private_tinput_priv (input_thread_t *input)
 
void input_ControlPush (input_thread_t *, int i_type, vlc_value_t *)
 
bool input_Stopped (input_thread_t *)
 
void input_ExtractAttachmentAndCacheArt (input_thread_t *, const char *name)
 
void input_ControlVarInit (input_thread_t *)
 
void input_ControlVarStop (input_thread_t *)
 
void input_ControlVarNavigation (input_thread_t *)
 
void input_ControlVarTitle (input_thread_t *, int i_title)
 
void input_ConfigVarInit (input_thread_t *)
 
int subtitles_Detect (input_thread_t *, char *, const char *, input_item_slave_t ***, int *)
 Detect subtitle files. More...
 
int subtitles_Filter (const char *)
 
void input_SplitMRL (const char **, const char **, const char **, const char **, char *)
 
void vlc_audio_replay_gain_MergeFromMeta (audio_replay_gain_t *p_dst, const vlc_meta_t *p_meta)
 
void input_item_node_PostAndDelete (input_item_node_t *p_node)
 

Macro Definition Documentation

◆ INPUT_CONTROL_FIFO_SIZE

#define INPUT_CONTROL_FIFO_SIZE   100

◆ INPUT_PTS_DELAY_MAX

#define INPUT_PTS_DELAY_MAX   INT64_C(60000000)

Typedef Documentation

◆ input_thread_private_t

Private input fields.

Enumeration Type Documentation

◆ input_control_e

Enumerator
INPUT_CONTROL_SET_STATE 
INPUT_CONTROL_SET_RATE 
INPUT_CONTROL_SET_POSITION 
INPUT_CONTROL_SET_TIME 
INPUT_CONTROL_SET_PROGRAM 
INPUT_CONTROL_SET_TITLE 
INPUT_CONTROL_SET_TITLE_NEXT 
INPUT_CONTROL_SET_TITLE_PREV 
INPUT_CONTROL_SET_SEEKPOINT 
INPUT_CONTROL_SET_SEEKPOINT_NEXT 
INPUT_CONTROL_SET_SEEKPOINT_PREV 
INPUT_CONTROL_SET_BOOKMARK 
INPUT_CONTROL_NAV_ACTIVATE 
INPUT_CONTROL_NAV_UP 
INPUT_CONTROL_NAV_DOWN 
INPUT_CONTROL_NAV_LEFT 
INPUT_CONTROL_NAV_RIGHT 
INPUT_CONTROL_NAV_POPUP 
INPUT_CONTROL_NAV_MENU 
INPUT_CONTROL_SET_ES 
INPUT_CONTROL_RESTART_ES 
INPUT_CONTROL_SET_VIEWPOINT 
INPUT_CONTROL_SET_INITIAL_VIEWPOINT 
INPUT_CONTROL_UPDATE_VIEWPOINT 
INPUT_CONTROL_SET_AUDIO_DELAY 
INPUT_CONTROL_SET_SPU_DELAY 
INPUT_CONTROL_ADD_SLAVE 
INPUT_CONTROL_SET_RECORD_STATE 
INPUT_CONTROL_SET_FRAME_NEXT 
INPUT_CONTROL_SET_RENDERER 

Function Documentation

◆ input_ConfigVarInit()

void input_ConfigVarInit ( input_thread_t )

Referenced by Create().

◆ input_ControlPush()

void input_ControlPush ( input_thread_t ,
int  i_type,
vlc_value_t  
)

◆ input_ControlVarInit()

void input_ControlVarInit ( input_thread_t )

◆ input_ControlVarNavigation()

void input_ControlVarNavigation ( input_thread_t )

◆ input_ControlVarStop()

void input_ControlVarStop ( input_thread_t )

◆ input_ControlVarTitle()

void input_ControlVarTitle ( input_thread_t ,
int  i_title 
)

◆ input_ExtractAttachmentAndCacheArt()

void input_ExtractAttachmentAndCacheArt ( input_thread_t ,
const char *  name 
)

◆ input_item_node_PostAndDelete()

void input_item_node_PostAndDelete ( input_item_node_t p_node)

◆ input_priv()

static input_thread_private_t* input_priv ( input_thread_t input)
inlinestatic

◆ input_SplitMRL()

void input_SplitMRL ( const char **  ,
const char **  ,
const char **  ,
const char **  ,
char *   
)

◆ input_Stopped()

bool input_Stopped ( input_thread_t )

Referenced by MainLoop().

◆ subtitles_Detect()

int subtitles_Detect ( input_thread_t p_this,
char *  psz_path,
const char *  psz_name_org,
input_item_slave_t ***  ppp_slaves,
int *  p_slaves 
)

Detect subtitle files.

When called this function will split up the psz_name string into a directory, filename and extension. It then opens the directory in which the file resides and tries to find possible matches of subtitles files.

Parameters
p_thisthe calling input_thread_t
psz_patha list of subdirectories (separated by a ',') to look in.
psz_name_orgthe complete filename to base the search on.
pp_slavesan initialized input item slave list to append detected subtitles to
p_slavespointer to the size of the slave list
Returns
VLC_SUCCESS if ok

< Unspecified error

< Unspecified error

< Unspecified error

< Not enough memory

< Unspecified error

< Not enough memory

< No error

References asprintf(), input_item_slave::b_forced, DIR_SEP, DIR_SEP_CHAR, input_item_slave::i_priority, input_item_slave_Delete, input_item_slave_New(), msg_Dbg, paths_to_list(), psz_ext, psz_name, input_item_slave::psz_uri, SLAVE_PRIORITY_MATCH_ALL, SLAVE_PRIORITY_MATCH_LEFT, SLAVE_PRIORITY_MATCH_NONE, SLAVE_PRIORITY_MATCH_RIGHT, slave_strcmp(), SLAVE_TYPE_SPU, strcasecmp(), strcpy_get_ext(), strcpy_strip_ext(), strcpy_trim(), strdup(), subtitles_Filter(), TAB_APPEND, var_GetInteger, VLC_EGENERIC, VLC_ENOMEM, vlc_opendir(), vlc_path2uri(), vlc_readdir(), vlc_stat(), VLC_SUCCESS, vlc_uri2path(), and whiteonly().

◆ subtitles_Filter()

int subtitles_Filter ( const char *  )

References strcasecmp(), and sub_exts.

Referenced by input_vaControl(), and subtitles_Detect().

◆ vlc_audio_replay_gain_MergeFromMeta()

void vlc_audio_replay_gain_MergeFromMeta ( audio_replay_gain_t p_dst,
const vlc_meta_t p_meta 
)