
Data Structures | |
| struct | dir_entry_t |
| struct | pl_item_t |
| struct | intf_sys_t |
| Per-interface private state. More... | |
Defines | |
| #define | SEARCH_CHAIN_SIZE 20 |
| #define | OPEN_CHAIN_SIZE 50 |
| #define | BROWSE_TEXT N_("Filebrowser starting point") |
| #define | BROWSE_LONGTEXT |
| #define | SHOW_ACS(x, c) |
Enumerations | |
| enum | { BOX_NONE, BOX_HELP, BOX_INFO, BOX_LOG, BOX_PLAYLIST, BOX_SEARCH, BOX_OPEN, BOX_BROWSE, BOX_META, BOX_OBJECTS, BOX_STATS } |
| enum | { C_DEFAULT = 0, C_TITLE, C_PLAYLIST_1, C_PLAYLIST_2, C_PLAYLIST_3, C_BOX, C_STATUS, C_INFO, C_ERROR, C_WARNING, C_DEBUG, C_CATEGORY, C_FOLDER } |
| enum | { VIEW_CATEGORY, VIEW_ONELEVEL } |
Functions | |
| static int | Open (vlc_object_t *) |
| Probes and initializes. | |
| static void | Close (vlc_object_t *) |
| Releases resources. | |
| static void | Run (intf_thread_t *) |
| static void | PlayPause (intf_thread_t *) |
| static void | Eject (intf_thread_t *) |
| static int | HandleKey (intf_thread_t *, int) |
| static void | Redraw (intf_thread_t *, time_t *) |
| static playlist_item_t * | PlaylistGetRoot (intf_thread_t *) |
| static void | PlaylistRebuild (intf_thread_t *) |
| static void | PlaylistAddNode (intf_thread_t *, playlist_item_t *, int, const char *) |
| static void | PlaylistDestroy (intf_thread_t *) |
| static int | PlaylistChanged (vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void *) |
| static bool | PlaylistIsPlaying (playlist_t *, playlist_item_t *) |
| static void | FindIndex (intf_thread_t *, playlist_t *) |
| static void | SearchPlaylist (intf_thread_t *, char *) |
| static int | SubSearchPlaylist (intf_thread_t *, char *, int, int) |
| static void | ManageSlider (intf_thread_t *) |
| static void | ReadDir (intf_thread_t *) |
| static void | start_color_and_pairs (intf_thread_t *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static void | DrawBox (WINDOW *win, int y, int x, int h, int w, const char *title, bool b_color) |
| static void | DrawLine (WINDOW *win, int y, int x, int w) |
| static void | DrawEmptyLine (WINDOW *win, int y, int x, int w) |
| static char * | KeyToUTF8 (int i_key, char *psz_part) |
| static int | RemoveLastUTF8Entity (char *psz, int len) |
| static void | mvnprintw (int y, int x, int w, const char *p_fmt,...) |
| static void | MainBoxWrite (intf_thread_t *p_intf, int l, int x, const char *p_fmt,...) |
| static void | DumpObject (intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int i_level) |
| static int | comp_dir_entries (const void *pp_dir_entry1, const void *pp_dir_entry2) |
| #define BROWSE_LONGTEXT |
Value:
N_( \ "This option allows you to specify the directory the ncurses filebrowser " \ "will show you initially.")
| #define BROWSE_TEXT N_("Filebrowser starting point") |
| #define OPEN_CHAIN_SIZE 50 |
Referenced by HandleKey().
| #define SEARCH_CHAIN_SIZE 20 |
Referenced by HandleKey().
| #define SHOW_ACS | ( | x, | |||
| c | ) |
| anonymous enum |
| anonymous enum |
| static void Close | ( | vlc_object_t * | p_this | ) | [static] |
Releases resources.
Close the module.
Destroys the X11 window.
Disconnect from the X server.
Close a SDL video output.
It destroys an OpenGL vout display.
Terminate a vout display created by Open.
It destroyes a Direct3D vout display.
Terminate an output method created by Open.
Release the drawable.
Close a libcaca video output.
Close a aa video output method.
Close the filter.
Terminate a splitter module.
This function closes a clone video splitter module.
Common close function.
Releases allocate resources.
Close: Destructor.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static int comp_dir_entries | ( | const void * | pp_dir_entry1, | |
| const void * | pp_dir_entry2 | |||
| ) | [static] |
| static void DrawBox | ( | WINDOW * | win, | |
| int | y, | |||
| int | x, | |||
| int | h, | |||
| int | w, | |||
| const char * | title, | |||
| bool | b_color | |||
| ) | [static] |
| static void DrawEmptyLine | ( | WINDOW * | win, | |
| int | y, | |||
| int | x, | |||
| int | w | |||
| ) | [static] |
Referenced by Redraw().
| static void DrawLine | ( | WINDOW * | win, | |
| int | y, | |||
| int | x, | |||
| int | w | |||
| ) | [static] |
Referenced by Redraw().
| static void DumpObject | ( | intf_thread_t * | p_intf, | |
| int * | l, | |||
| vlc_object_t * | p_obj, | |||
| int | i_level | |||
| ) | [static] |
References i, vlc_list_t::i_count, list, MainBoxWrite(), vlc_value_t::p_object, vlc_list_t::p_values, psz_name, vlc_object_t::psz_object_type, vlc_list_children, vlc_list_release(), and vlc_object_get_name.
Referenced by Redraw().
| static void Eject | ( | intf_thread_t * | p_intf | ) | [static] |
References config_GetPsz, intf_Eject, msg_Dbg, intf_sys_t::p_input, playlist_item_t::p_input, intf_thread_t::p_sys, pl_Get, PL_LOCK, PL_UNLOCK, playlist_CurrentPlayingItem(), input_item_t::psz_name, psz_name, and strdup().
Referenced by HandleKey().
| static void FindIndex | ( | intf_thread_t * | p_intf, | |
| playlist_t * | p_playlist | |||
| ) | [static] |
References i, intf_sys_t::i_box_plidx, playlist_item_t::i_children, intf_sys_t::i_plist_entries, pl_item_t::p_item, intf_sys_t::p_node, intf_thread_t::p_sys, PL_LOCK, PL_UNLOCK, PlaylistIsPlaying(), and intf_sys_t::pp_plist.
Referenced by HandleKey(), Redraw(), and Run().
| static int HandleKey | ( | intf_thread_t * | p_intf, | |
| int | i_key | |||
| ) | [static] |
References aout_VolumeDown, aout_VolumeUp, asprintf(), intf_sys_t::b_box_plidx_follow, intf_sys_t::b_color, intf_sys_t::b_color_started, dir_entry_t::b_file, intf_sys_t::b_need_update, intf_sys_t::b_show_hidden_files, BOX_BROWSE, BOX_HELP, BOX_INFO, BOX_LOG, BOX_META, BOX_NONE, BOX_OBJECTS, BOX_OPEN, BOX_PLAYLIST, BOX_SEARCH, BOX_STATS, Eject(), intf_sys_t::f_slider, FindIndex(), intf_sys_t::i_before_search, intf_sys_t::i_box_bidx, intf_sys_t::i_box_lines, intf_sys_t::i_box_lines_total, intf_sys_t::i_box_plidx, intf_sys_t::i_box_start, intf_sys_t::i_box_type, playlist_item_t::i_children, intf_sys_t::i_current_view, intf_sys_t::i_dir_entries, intf_sys_t::i_plist_entries, playlist_item_array_t::i_size, input_GetVout(), playlist_t::items, KEY_BACKSPACE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_HOME, KEY_LEFT, KEY_RIGHT, KEY_UP, KeyToUTF8(), libvlc_Quit(), ManageSlider(), OPEN_CHAIN_SIZE, ORDER_NORMAL, ORDER_REVERSE, intf_sys_t::p_input, playlist_item_t::p_input, pl_item_t::p_item, p_item, intf_thread_t::p_libvlc, playlist_t::p_local_onelevel, intf_sys_t::p_node, playlist_item_t::p_parent, playlist_t::p_root_onelevel, intf_thread_t::p_sys, pl_Get, PL_LOCK, pl_Locked, PL_UNLOCK, pl_Unlocked, playlist_Add(), PLAYLIST_APPEND, playlist_Control(), playlist_CurrentPlayingItem(), playlist_DeleteFromInput(), PLAYLIST_END, PLAYLIST_GO, playlist_Next, playlist_NodeDelete(), playlist_Prev, playlist_RecursiveNodeSort(), playlist_Stop, PLAYLIST_VIEWPLAY, PlaylistGetRoot(), PlaylistIsPlaying(), PlaylistRebuild(), PlayPause(), intf_sys_t::pp_dir_entries, intf_sys_t::pp_plist, intf_sys_t::psz_current_dir, intf_sys_t::psz_old_search, intf_sys_t::psz_open_chain, intf_sys_t::psz_partial_keys, dir_entry_t::psz_path, intf_sys_t::psz_search_chain, ReadDir(), RemoveLastUTF8Entity(), SEARCH_CHAIN_SIZE, SearchPlaylist(), SORT_TITLE_NODES_FIRST, start_color_and_pairs(), strdup(), var_SetBool, var_ToggleBool, var_TriggerCallback, VIEW_CATEGORY, VIEW_ONELEVEL, vlc_object_release, and intf_sys_t::w.
Referenced by Run().
| static char* KeyToUTF8 | ( | int | i_key, | |
| char * | psz_part | |||
| ) | [static] |
| static void MainBoxWrite | ( | intf_thread_t * | p_intf, | |
| int | l, | |||
| int | x, | |||
| const char * | p_fmt, | |||
| ... | ||||
| ) | [static] |
References intf_sys_t::i_box_lines, intf_sys_t::i_box_start, intf_sys_t::i_box_y, mvnprintw(), intf_thread_t::p_sys, and vasprintf().
Referenced by DumpObject(), and Redraw().
| static void ManageSlider | ( | intf_thread_t * | p_intf | ) | [static] |
References vlc_value_t::f_float, intf_sys_t::f_slider, intf_sys_t::f_slider_old, vlc_value_t::i_int, intf_sys_t::p_input, intf_thread_t::p_sys, PLAYING_S, var_Get, and var_Set.
Referenced by HandleKey(), and Run().
| static void mvnprintw | ( | int | y, | |
| int | x, | |||
| int | w, | |||
| const char * | p_fmt, | |||
| ... | ||||
| ) | [static] |
References EnsureUTF8(), i, LocaleFree(), ToLocale(), and vasprintf().
Referenced by MainBoxWrite(), and Redraw().
| static int Open | ( | vlc_object_t * | p_this | ) | [static] |
Probes and initializes.
Status of this demuxer: Real Media format -----------------.
Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.
Todo:
Open the module.
Create an X11 window.
Probe the X server.
This function initializes SDL vout method.
It creates an OpenGL vout display.
This function allocates and initialize the DirectX vout display.
It creates a Direct3D vout display.
This function allocates and initializes a FB vout method.
Find the drawable set by libvlc application.
This function initializes libcaca vout method.
This function allocates and initializes a aa vout method.
This function allocates and initializes a Wall splitter module.
Open the filter.
This function allocates and initializes a Clone splitter module.
Open: initialize and create stuff.
Connect to the sftp server and ask for a file.
| p_this,: | the vlc_object |
| p_this | ||
| p_this,: | the filter object |
| static void PlaylistAddNode | ( | intf_thread_t * | p_intf, | |
| playlist_item_t * | p_node, | |||
| int | i, | |||
| const char * | c | |||
| ) | [static] |
References asprintf(), playlist_item_t::i_children, intf_sys_t::i_plist_entries, input_item_GetTitleFbName(), INSERT_ELEM, playlist_item_t::p_input, pl_item_t::p_item, intf_thread_t::p_sys, playlist_item_t::pp_children, intf_sys_t::pp_plist, pl_item_t::psz_display, and psz_name.
Referenced by PlaylistRebuild().
| static int PlaylistChanged | ( | vlc_object_t * | p_this, | |
| const char * | psz_variable, | |||
| vlc_value_t | oval, | |||
| vlc_value_t | nval, | |||
| void * | param | |||
| ) | [static] |
| static void PlaylistDestroy | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::i_plist_entries, intf_thread_t::p_sys, intf_sys_t::pp_plist, pl_item_t::psz_display, and REMOVE_ELEM.
Referenced by PlaylistRebuild().
| static playlist_item_t * PlaylistGetRoot | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::i_current_view, p_item, playlist_t::p_root_category, playlist_t::p_root_onelevel, intf_thread_t::p_sys, pl_Get, and VIEW_CATEGORY.
Referenced by HandleKey(), and PlaylistRebuild().
| static bool PlaylistIsPlaying | ( | playlist_t * | p_playlist, | |
| playlist_item_t * | p_item | |||
| ) | [inline, static] |
References input_item_t::i_id, playlist_item_t::p_input, and playlist_CurrentPlayingItem().
Referenced by FindIndex(), HandleKey(), and Redraw().
| static void PlaylistRebuild | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::b_need_update, intf_thread_t::p_sys, pl_Get, PL_LOCK, PL_UNLOCK, PlaylistAddNode(), PlaylistDestroy(), and PlaylistGetRoot().
Referenced by HandleKey(), Redraw(), and Run().
| static void PlayPause | ( | intf_thread_t * | p_intf | ) | [static] |
References vlc_value_t::i_int, intf_sys_t::p_input, intf_thread_t::p_sys, PAUSE_S, pl_Get, PLAYING_S, playlist_Play, var_Get, and var_Set.
Referenced by HandleKey().
| static void ReadDir | ( | intf_thread_t * | p_intf | ) | [static] |
References asprintf(), dir_entry_t::b_file, intf_sys_t::b_show_hidden_files, closedir, comp_dir_entries(), i, intf_sys_t::i_dir_entries, INSERT_ELEM, msg_Dbg, msg_Warn, intf_thread_t::p_sys, intf_sys_t::pp_dir_entries, intf_sys_t::psz_current_dir, dir_entry_t::psz_path, REMOVE_ELEM, strdup(), vlc_opendir(), vlc_readdir(), and vlc_stat().
Referenced by HandleKey().
| static void Redraw | ( | intf_thread_t * | p_intf, | |
| time_t * | t_last_refresh | |||
| ) | [static] |
References _, AOUT_VOLUME_MAX, aout_VolumeGet, asprintf(), AUDIO_ES, intf_sys_t::b_box_plidx_follow, intf_sys_t::b_color, input_thread_t::b_dead, dir_entry_t::b_file, intf_sys_t::b_need_update, BOX_BROWSE, BOX_HELP, BOX_INFO, BOX_LOG, BOX_META, BOX_OBJECTS, BOX_OPEN, BOX_PLAYLIST, BOX_SEARCH, BOX_STATS, c, C_CATEGORY, C_DEFAULT, C_FOLDER, C_INFO, C_PLAYLIST_1, C_STATUS, C_TITLE, CLOCK_FREQ, DrawBox(), DrawEmptyLine(), DrawLine(), DumpObject(), END_S, input_item_t::es, input_stats_t::f_demux_bitrate, input_stats_t::f_input_bitrate, input_stats_t::f_send_bitrate, intf_sys_t::f_slider, FindIndex(), i, intf_sys_t::i_box_bidx, intf_sys_t::i_box_lines, intf_sys_t::i_box_lines_total, intf_sys_t::i_box_plidx, intf_sys_t::i_box_start, intf_sys_t::i_box_type, intf_sys_t::i_box_y, es_format_t::i_cat, input_item_t::i_categories, intf_sys_t::i_current_view, input_stats_t::i_decoded_audio, input_stats_t::i_decoded_video, input_stats_t::i_demux_read_bytes, intf_sys_t::i_dir_entries, input_stats_t::i_displayed_pictures, input_item_t::i_es, info_category_t::i_infos, vlc_value_t::i_int, input_stats_t::i_lost_abuffers, input_stats_t::i_lost_pictures, input_stats_t::i_played_abuffers, intf_sys_t::i_plist_entries, input_stats_t::i_read_bytes, input_stats_t::i_sent_bytes, input_stats_t::i_sent_packets, vlc_value_t::i_time, INIT_S, input_GetItem(), input_item_GetURI(), input_stats_t::lock, input_item_t::lock, lock, MainBoxWrite(), MSTRTIME_MAX_SIZE, mvnprintw(), OPENING_S, playlist_item_t::p_input, intf_sys_t::p_input, pl_item_t::p_item, p_item, intf_thread_t::p_libvlc, input_item_t::p_meta, intf_sys_t::p_node, input_item_t::p_stats, intf_sys_t::p_sub, intf_thread_t::p_sys, PAUSE_S, pl_Get, PL_LOCK, PL_UNLOCK, PLAYING_S, playlist_CurrentInput(), playlist_CurrentPlayingItem(), PlaylistIsPlaying(), PlaylistRebuild(), input_item_t::pp_categories, intf_sys_t::pp_dir_entries, info_category_t::pp_infos, intf_sys_t::pp_plist, ppsz_type, pl_item_t::psz_display, info_t::psz_name, info_category_t::psz_name, intf_sys_t::psz_old_search, intf_sys_t::psz_open_chain, dir_entry_t::psz_path, intf_sys_t::psz_search_chain, info_t::psz_value, secstotimestr(), SHOW_ACS, strdup(), var_CountChoices, var_Get, var_GetBool, VIDEO_ES, VIEW_CATEGORY, VIEW_ONELEVEL, VLC_META_ALBUM, VLC_META_ART_URL, VLC_META_ARTIST, VLC_META_COPYRIGHT, VLC_META_DATE, VLC_META_DESCRIPTION, VLC_META_ENCODED_BY, VLC_META_GENRE, vlc_meta_Get(), VLC_META_LANGUAGE, VLC_META_NOW_PLAYING, VLC_META_PUBLISHER, VLC_META_RATING, VLC_META_SETTING, VLC_META_TITLE, VLC_META_TRACK_NUMBER, VLC_META_TRACKID, VLC_META_TYPE_COUNT, VLC_META_URL, VLC_MSG_QSIZE, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, vlc_object_release, and intf_sys_t::w.
Referenced by Run().
| static int RemoveLastUTF8Entity | ( | char * | psz, | |
| int | len | |||
| ) | [inline, static] |
Referenced by HandleKey().
| static void Run | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::b_box_cleared, intf_sys_t::b_box_plidx_follow, input_thread_t::b_dead, intf_sys_t::f_slider, intf_sys_t::f_slider_old, FindIndex(), HandleKey(), INTF_IDLE_SLEEP, ManageSlider(), msleep, intf_sys_t::p_input, intf_sys_t::p_playlist, intf_thread_t::p_sys, pl_Get, PL_LOCK, PL_UNLOCK, playlist_CurrentInput(), playlist_CurrentPlayingItem(), PlaylistChanged(), PlaylistRebuild(), Redraw(), var_AddCallback, var_DelCallback, vlc_object_alive, vlc_object_release, vlc_restorecancel(), vlc_savecancel(), and intf_sys_t::w.
| static void SearchPlaylist | ( | intf_thread_t * | p_intf, | |
| char * | psz_searchstring | |||
| ) | [static] |
References intf_sys_t::i_before_search, intf_sys_t::i_box_plidx, intf_sys_t::i_plist_entries, intf_thread_t::p_sys, and SubSearchPlaylist().
Referenced by HandleKey().
| static void start_color_and_pairs | ( | intf_thread_t * | p_intf | ) | [static] |
References intf_sys_t::b_color, intf_sys_t::b_color_started, C_BOX, C_CATEGORY, C_DEBUG, C_ERROR, C_FOLDER, C_INFO, C_PLAYLIST_1, C_PLAYLIST_2, C_PLAYLIST_3, C_STATUS, C_TITLE, C_WARNING, msg_Warn, and intf_thread_t::p_sys.
Referenced by HandleKey().
| static int SubSearchPlaylist | ( | intf_thread_t * | p_intf, | |
| char * | psz_searchstring, | |||
| int | i_start, | |||
| int | i_stop | |||
| ) | [static] |
References i, intf_thread_t::p_sys, intf_sys_t::pp_plist, pl_item_t::psz_display, and strcasestr().
Referenced by SearchPlaylist().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6