VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | 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)

Enumerations

enum  input_control_e {
  INPUT_CONTROL_SET_DIE, 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_SET_ES, INPUT_CONTROL_RESTART_ES,
  INPUT_CONTROL_SET_AUDIO_DELAY, INPUT_CONTROL_SET_SPU_DELAY, INPUT_CONTROL_ADD_SLAVE, INPUT_CONTROL_ADD_SUBTITLE,
  INPUT_CONTROL_SET_RECORD_STATE, INPUT_CONTROL_SET_FRAME_NEXT
}

Functions

void input_ControlPush (input_thread_t *, int i_type, vlc_value_t *)
void input_ExtractAttachmentAndCacheArt (input_thread_t *p_input)
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 *)
char ** subtitles_Detect (input_thread_t *, char *path, const char *fname)
 Detect subtitle files.
int subtitles_Filter (const char *)
void input_SplitMRL (const char **, const char **, const char **, const char **, char *)

Macro Definition Documentation

#define INPUT_CONTROL_FIFO_SIZE   100

Referenced by input_ControlPush().

#define INPUT_PTS_DELAY_MAX   INT64_C(60000000)

Enumeration Type Documentation

Enumerator:
INPUT_CONTROL_SET_DIE 
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_SET_ES 
INPUT_CONTROL_RESTART_ES 
INPUT_CONTROL_SET_AUDIO_DELAY 
INPUT_CONTROL_SET_SPU_DELAY 
INPUT_CONTROL_ADD_SLAVE 
INPUT_CONTROL_ADD_SUBTITLE 
INPUT_CONTROL_SET_RECORD_STATE 
INPUT_CONTROL_SET_FRAME_NEXT 

Function Documentation

void input_ConfigVarInit ( input_thread_t )
void input_ControlPush ( input_thread_t ,
int  i_type,
vlc_value_t  
)
void input_ControlVarInit ( input_thread_t )
void input_ControlVarNavigation ( input_thread_t )
void input_ControlVarStop ( input_thread_t )
void input_ControlVarTitle ( input_thread_t ,
int  i_title 
)
void input_ExtractAttachmentAndCacheArt ( input_thread_t p_input)
void input_SplitMRL ( const char **  ,
const char **  ,
const char **  ,
const char **  ,
char *   
)

Referenced by InputSourceInit(), and stream_UrlNew().

char** subtitles_Detect ( input_thread_t p_this,
char *  psz_path,
const char *  psz_name_org 
)

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_namethe complete filename to base the search on.
Returns
a NULL terminated array of filenames with detected possible subtitles. The array contains max MAX_SUBTITLE_FILES items and you need to free it after use.

References compare_sub_priority(), DIR_SEP, DIR_SEP_CHAR, make_path(), MAX_SUBTITLE_FILES, msg_Dbg, paths_to_list(), vlc_subfn_t::priority, vlc_subfn_t::psz_ext, psz_ext, vlc_subfn_t::psz_fname, psz_name, strcasecmp(), strcpy_get_ext(), strcpy_strip_ext(), strcpy_trim(), strdup(), SUB_PRIORITY_MATCH_ALL, SUB_PRIORITY_MATCH_LEFT, SUB_PRIORITY_MATCH_NONE, SUB_PRIORITY_MATCH_RIGHT, SUB_PRIORITY_NONE, subtitles_Filter(), var_GetInteger, vlc_opendir(), vlc_readdir(), vlc_stat(), and whiteonly().

Referenced by LoadSubtitles().

int subtitles_Filter ( const char *  )

References strcasecmp(), and sub_exts.

Referenced by input_vaControl(), and subtitles_Detect().