|
VLC
2.1.0-git
|
Go to the source code of this file.
Data Structures | |
| struct | vlc_exit |
| struct | libvlc_priv_t |
| Private LibVLC instance data. More... | |
| struct | counter_sample_t |
| struct | counter_t |
Macros | |
| #define | vlc_object_kill(o) vlc_object_kill(VLC_OBJECT(o)) |
| #define | vlc_backtrace() vlc_trace(__func__, __FILE__, __LINE__) |
| #define | vlc_assert_locked(m) (void)m |
| #define | vlc_custom_create(o, s, n) vlc_custom_create(VLC_OBJECT(o), s, n) |
| #define | vlc_object_set_name(o, n) vlc_object_set_name(VLC_OBJECT(o), n) |
| #define | vlc_object_set_destructor(a, b) vlc_object_set_destructor (VLC_OBJECT(a), b) |
| #define | ZOOM_SECTION N_("Zoom") |
| #define | ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter") |
| #define | ZOOM_HALF_KEY_TEXT N_("1:2 Half") |
| #define | ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original") |
| #define | ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double") |
| #define | libvlc_stats(o) (libvlc_priv((VLC_OBJECT(o))->p_libvlc)->b_stats) |
Typedefs | |
| typedef struct variable_t | variable_t |
| typedef struct vlc_exit | vlc_exit_t |
| typedef void(* | vlc_destructor_t )(struct vlc_object_t *) |
| typedef struct sap_handler_t | sap_handler_t |
| typedef struct libvlc_priv_t | libvlc_priv_t |
| Private LibVLC instance data. | |
| typedef struct counter_sample_t | counter_sample_t |
| typedef struct counter_t | counter_t |
Functions | |
| struct vlc_actions * | vlc_InitActions (libvlc_int_t *) |
| Initializes the key map from configuration. | |
| void | vlc_DeinitActions (libvlc_int_t *, struct vlc_actions *) |
| Destroys the key map. | |
| size_t | vlc_towc (const char *str, uint32_t *restrict pwc) |
| Converts the first character from a UTF-8 sequence into a code point. | |
| void | system_Init (void) |
| Initializes MME timer, Winsock. | |
| void | system_Configure (libvlc_int_t *, int, const char *const []) |
| void | vlc_CPU_init (void) |
| Determines the CPU capabilities and stores them in cpu_flags. | |
| void | vlc_CPU_dump (vlc_object_t *) |
| int | vlc_clone_detach (vlc_thread_t *, void *(*)(void *), void *, int) |
| int | vlc_object_waitpipe (vlc_object_t *obj) |
| Returns the readable end of a pipe that becomes readable once termination of the object is requested (vlc_object_kill()). | |
| void | vlc_object_kill (vlc_object_t *) VLC_DEPRECATED |
| int | vlc_set_priority (vlc_thread_t, int) |
| void | vlc_threads_setup (libvlc_int_t *) |
| void | vlc_trace (const char *fn, const char *file, unsigned line) |
| Print a backtrace to the standard error for debugging purpose. | |
| void | vlc_ExitInit (vlc_exit_t *) |
| void | vlc_ExitDestroy (vlc_exit_t *) |
| void * | vlc_custom_create (vlc_object_t *p_this, size_t i_size, const char *psz_type) |
| Creates a VLC object. | |
| int | vlc_object_set_name (vlc_object_t *, const char *) |
| Assign a name to an object for vlc_object_find_name(). | |
| void | vlc_object_set_destructor (vlc_object_t *, vlc_destructor_t) |
| module_t * | module_find_by_shortcut (const char *psz_shortcut) |
| Get a pointer to a module_t that matches a shortcut. | |
| static libvlc_priv_t * | libvlc_priv (libvlc_int_t *libvlc) |
| void | playlist_ServicesDiscoveryKillAll (playlist_t *p_playlist) |
| void | intf_DestroyAll (libvlc_int_t *) |
| Stops and destroys all interfaces. | |
| void | var_OptionParse (vlc_object_t *, const char *, bool trusted) |
| Parse a stringified option This function parse a string option and create the associated object variable The option must be of the form "[no[-]]foo[=bar]" where foo is the option name and bar is the value of the option. | |
| counter_t * | stats_CounterCreate (int) |
| Create a statistics counter. | |
| void | stats_Update (counter_t *, uint64_t, uint64_t *) |
| Update a counter element with new values. | |
| void | stats_CounterClean (counter_t *) |
| void | stats_ComputeInputStats (input_thread_t *, input_stats_t *) |
| void | stats_ReinitInputStats (input_stats_t *) |
Variables | |
| const char | psz_vlc_changeset [] |
| #define libvlc_stats | ( | o | ) | (libvlc_priv((VLC_OBJECT(o))->p_libvlc)->b_stats) |
Referenced by AReadBlock(), End(), EsOutSend(), Init(), InitStatistics(), and stats_ComputeInputStats().
| #define vlc_assert_locked | ( | m | ) | (void)m |
Referenced by aout_OutputAssertLocked(), aout_OutputUnlock(), DecoderFixTs(), DecoderFlush(), DecoderFlushBuffering(), DecoderOutputChangePause(), DecoderUpdateFormatLocked(), DecoderWaitDate(), DecoderWaitUnblock(), InputItemFindCat(), InputItemVaAddInfo(), Lookup(), playlist_AssertLocked(), RequestVout(), TsPopCmdLocked(), and VoutVideoFilterStaticNewPicture().
| #define vlc_backtrace | ( | ) | vlc_trace(__func__, __FILE__, __LINE__) |
| #define vlc_custom_create | ( | o, | |
| s, | |||
| n | |||
| ) | vlc_custom_create(VLC_OBJECT(o), s, n) |
Referenced by access_New(), aout_New(), aout_volume_New(), Create(), CreateDecoder(), CreateFilter(), demux_New(), demux_PacketizerNew(), FetchMeta(), filter_chain_AppendFilterInternal(), filter_NewBlend(), FindArt(), FindFilter(), httpd_HostCreate(), input_item_WriteMeta(), InputSourceMeta(), intf_Create(), libvlc_InternalCreate(), playlist_Create(), playlist_Export(), SAP_Create(), sout_AccessOutNew(), sout_EncoderCreate(), sout_MuxNew(), sout_NewInstance(), sout_StreamNew(), spu_Create(), SpuRenderCreateAndLoadScale(), SpuRenderCreateAndLoadText(), sql_Create(), stream_CommonNew(), system_Configure(), video_splitter_New(), vlc_gl_Create(), vlc_inhibit_Create(), vlc_object_create(), vlc_probe(), vlc_sd_Create(), vlc_tls_ClientCreate(), vlc_tls_ServerCreate(), vlc_tls_SessionCreate(), vlm_ControlMediaAdd(), vlm_New(), vout_display_New(), vout_window_New(), VoutCreate(), xml_Create(), and xml_ReaderCreate().
| #define vlc_object_kill | ( | o | ) | vlc_object_kill(VLC_OBJECT(o)) |
Referenced by DStreamDelete(), intf_DestroyAll(), ObjectKillChildrens(), and vlm_Delete().
| #define vlc_object_set_destructor | ( | a, | |
| b | |||
| ) | vlc_object_set_destructor (VLC_OBJECT(a), b) |
Referenced by aout_New(), Create(), sout_AnnounceRegisterSDP(), vlc_sd_Create(), and VoutCreate().
| #define vlc_object_set_name | ( | o, | |
| n | |||
| ) | vlc_object_set_name(VLC_OBJECT(o), n) |
Referenced by libvlc_InternalInit(), and vlc_module_load().
| #define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double") |
| #define ZOOM_HALF_KEY_TEXT N_("1:2 Half") |
| #define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original") |
| #define ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter") |
| #define ZOOM_SECTION N_("Zoom") |
| typedef struct counter_sample_t counter_sample_t |
| typedef struct libvlc_priv_t libvlc_priv_t |
Private LibVLC instance data.
| typedef struct sap_handler_t sap_handler_t |
| typedef struct variable_t variable_t |
| typedef void(* vlc_destructor_t)(struct vlc_object_t *) |
| typedef struct vlc_exit vlc_exit_t |
| anonymous enum |
| void intf_DestroyAll | ( | libvlc_int_t * | p_libvlc | ) |
Stops and destroys all interfaces.
| p_libvlc | the LibVLC instance |
References config_ChainDestroy(), libvlc_priv(), lock, module_unneed, libvlc_priv_t::p_intf, intf_thread_t::p_next, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_object_kill, and vlc_object_release.
Referenced by libvlc_InternalCleanup().
|
inlinestatic |
Referenced by dialog_GetProvider(), dialog_Register(), dialog_Unregister(), InputEvent(), intf_Create(), intf_DestroyAll(), libvlc_InternalCleanup(), libvlc_InternalCreate(), libvlc_InternalDestroy(), libvlc_InternalInit(), libvlc_lock(), libvlc_Quit(), libvlc_SetExitHandler(), libvlc_unlock(), pl_Get(), sap_destroy(), sout_AnnounceRegisterSDP(), sout_AnnounceUnRegister(), vlc_custom_create(), vlc_object_destroy(), vlc_vaLog(), vlm_Delete(), and vlm_New().
| module_t* module_find_by_shortcut | ( | const char * | psz_shortcut | ) |
Get a pointer to a module_t that matches a shortcut.
This is a temporary hack for SD. Do not re-use (generally multiple modules can have the same shortcut, so this is broken - use module_need()!).
| psz_shortcut | shortcut of the module |
| psz_cap | capability of the module |
References count, module_t::i_shortcuts, list, module_list_free(), module_list_get(), and module_t::pp_shortcuts.
| void playlist_ServicesDiscoveryKillAll | ( | playlist_t * | p_playlist | ) |
References playlist_private_t::i_sds, pl_priv, playlist_ServicesDiscoveryRemove(), playlist_private_t::pp_sds, and vlc_sd_internal_t::psz_name.
Referenced by playlist_Destroy().
| void stats_ComputeInputStats | ( | input_thread_t * | , |
| input_stats_t * | |||
| ) |
References input_thread_private_t::counters, input_thread_private_t::counters_lock, input_stats_t::f_demux_bitrate, input_stats_t::f_input_bitrate, input_stats_t::f_send_bitrate, input_stats_t::i_decoded_audio, input_stats_t::i_decoded_video, input_stats_t::i_demux_corrupted, input_stats_t::i_demux_discontinuity, input_stats_t::i_demux_read_bytes, input_stats_t::i_displayed_pictures, input_stats_t::i_lost_abuffers, input_stats_t::i_lost_pictures, input_stats_t::i_played_abuffers, input_stats_t::i_read_bytes, input_stats_t::i_read_packets, input_stats_t::i_sent_bytes, input_stats_t::i_sent_packets, libvlc_stats, input_stats_t::lock, input_thread_t::p, input_thread_private_t::p_decoded_audio, input_thread_private_t::p_decoded_video, input_thread_private_t::p_demux_bitrate, input_thread_private_t::p_demux_corrupted, input_thread_private_t::p_demux_discontinuity, input_thread_private_t::p_demux_read, input_thread_private_t::p_displayed_pictures, input_thread_private_t::p_input_bitrate, input_thread_private_t::p_lost_abuffers, input_thread_private_t::p_lost_pictures, input_thread_private_t::p_played_abuffers, input_thread_private_t::p_read_bytes, input_thread_private_t::p_read_packets, input_thread_private_t::p_sout_send_bitrate, input_thread_private_t::p_sout_sent_bytes, input_thread_private_t::p_sout_sent_packets, stats_GetRate(), stats_GetTotal(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by End(), and MainLoopStatistic().
| void stats_CounterClean | ( | counter_t * | ) |
References counter_t::i_samples, counter_t::pp_samples, and REMOVE_ELEM.
| counter_t* stats_CounterCreate | ( | int | i_compute_type | ) |
Create a statistics counter.
| i_compute_type | the aggregation type. One of STATS_LAST (always keep the last value), STATS_COUNTER (increment by the passed value), STATS_MAX (keep the maximum passed value), STATS_MIN, or STATS_DERIVATIVE (keep a time derivative of the value) |
References counter_t::i_compute_type, counter_t::i_samples, counter_t::last_update, and counter_t::pp_samples.
| void stats_ReinitInputStats | ( | input_stats_t * | ) |
References input_stats_t::f_average_demux_bitrate, input_stats_t::f_average_input_bitrate, input_stats_t::f_demux_bitrate, input_stats_t::f_input_bitrate, input_stats_t::f_send_bitrate, input_stats_t::i_decoded_audio, input_stats_t::i_decoded_video, input_stats_t::i_demux_corrupted, input_stats_t::i_demux_discontinuity, input_stats_t::i_demux_read_bytes, input_stats_t::i_demux_read_packets, input_stats_t::i_displayed_pictures, input_stats_t::i_lost_abuffers, input_stats_t::i_lost_pictures, input_stats_t::i_played_abuffers, input_stats_t::i_read_bytes, input_stats_t::i_read_packets, input_stats_t::i_sent_bytes, input_stats_t::i_sent_packets, input_stats_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by stats_NewInputStats().
| void stats_Update | ( | counter_t * | p_counter, |
| uint64_t | val, | ||
| uint64_t * | new_val | ||
| ) |
Update a counter element with new values.
| p_counter | the counter to update |
| val | the vlc_value union containing the new value to aggregate. For more information on how data is aggregated, |
| val_new | a pointer that will be filled with new data |
References CLOCK_FREQ, counter_sample_t::date, counter_t::i_compute_type, counter_t::i_samples, INSERT_ELEM, counter_t::last_update, mdate(), counter_t::pp_samples, REMOVE_ELEM, STATS_COUNTER, STATS_DERIVATIVE, and counter_sample_t::value.
Referenced by AReadBlock(), AReadStream(), DecoderDecodeAudio(), DecoderDecodeVideo(), DecoderProcessSpu(), EsOutSend(), and input_UpdateStatistic().
| void system_Configure | ( | libvlc_int_t * | , |
| int | , | ||
| const char * | const[] | ||
| ) |
References ABOVE_NORMAL_PRIORITY_CLASS, vlc_ipc_data_t::argc, vlc_ipc_data_t::data, vlc_ipc_data_t::enqueue, hIPCHelper, hIPCHelperReady, hpipeIPC, IPC_CMD_ENQUEUE, IPC_CMD_GO, IPCHelperThread(), msg_Dbg, msg_Err, msg_Info, p_helper, strdup(), system_End(), tidIPCFirst, tidIPCHelper, var_InheritBool, vlc_custom_create, VLC_IPC_PIPE, vlc_object_release, and vlc_path2uri().
Referenced by libvlc_InternalInit().
| void system_Init | ( | void | ) |
Initializes MME timer, Winsock.
References _fmode_bin, getenv(), setenv(), and system_InitWSA().
Referenced by config_GetLibDir(), config_GetLibPath(), and libvlc_InternalInit().
| void var_OptionParse | ( | vlc_object_t * | p_obj, |
| const char * | psz_option, | ||
| bool | trusted | ||
| ) |
Parse a stringified option This function parse a string option and create the associated object variable The option must be of the form "[no[-]]foo[=bar]" where foo is the option name and bar is the value of the option.
| p_obj | the object in which the variable must be created |
| psz_option | the option to parse |
| trusted | whether the option is set by a trusted input or not |
References vlc_value_t::b_bool, config_GetType, config_IsSafe(), vlc_value_t::f_float, vlc_value_t::i_int, i_type, msg_Err, psz_name, vlc_value_t::psz_string, psz_value, strdup(), strtoll(), us_atof(), var_Create, var_Set, VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_INTEGER, and VLC_VAR_STRING.
Referenced by Create(), and var_LocationParse().
| int vlc_clone_detach | ( | vlc_thread_t * | , |
| void * | *)(void *, | ||
| void * | , | ||
| int | |||
| ) |
| void vlc_CPU_dump | ( | vlc_object_t * | ) |
References msg_Dbg.
Referenced by libvlc_InternalInit().
| void vlc_CPU_init | ( | void | ) |
Determines the CPU capabilities and stores them in cpu_flags.
The result can be retrieved with vlc_CPU().
References cpu_flags.
Referenced by _DLL_InitTerm(), DllMain(), and vlc_CPU().
| void* vlc_custom_create | ( | vlc_object_t * | p_this, |
| size_t | i_size, | ||
| const char * | psz_type | ||
| ) |
Creates a VLC object.
Note that because the object name pointer must remain valid, potentially even after the destruction of the object (through the message queues), this function CANNOT be exported to plugins as is. In this case, the old vlc_object_create() must be used instead.
| p_this | an existing VLC object |
| i_size | byte size of the object structure |
| psz_type | object type name |
| void vlc_DeinitActions | ( | libvlc_int_t * | , |
| struct vlc_actions * | |||
| ) |
Destroys the key map.
References vlc_actions::global_map, vlc_actions::map, libvlc_int_t::p_hotkeys, tdestroy(), unlikely, var_DelCallback, and vlc_key_to_action().
Referenced by libvlc_InternalCleanup().
| void vlc_ExitDestroy | ( | vlc_exit_t * | ) |
References vlc_exit::lock, and vlc_mutex_destroy().
Referenced by libvlc_InternalDestroy().
| void vlc_ExitInit | ( | vlc_exit_t * | ) |
References vlc_exit::handler, vlc_exit::lock, vlc_exit::opaque, and vlc_mutex_init().
Referenced by libvlc_InternalCreate().
|
read |
Initializes the key map from configuration.
References ACTIONID_JUMP_BACKWARD_EXTRASHORT, ACTIONID_JUMP_FORWARD_EXTRASHORT, ACTIONID_VOL_DOWN, ACTIONID_VOL_UP, ACTIONS_COUNT, vlc_actions::global_map, KEY_MOUSEWHEELDOWN, KEY_MOUSEWHEELLEFT, KEY_MOUSEWHEELRIGHT, KEY_MOUSEWHEELUP, vlc_actions::keys, vlc_actions::map, MAXACTION, msg_Err, action::name, name, libvlc_int_t::p_hotkeys, hotkey::psz_action, unlikely, action::value, var_AddCallback, var_Create, var_InheritInteger, vlc_AddMapping(), vlc_InitAction(), vlc_key_to_action(), VLC_OBJECT, and VLC_VAR_INTEGER.
Referenced by libvlc_InternalInit().
| void vlc_object_kill | ( | vlc_object_t * | ) |
| void vlc_object_set_destructor | ( | vlc_object_t * | , |
| vlc_destructor_t | |||
| ) |
| int vlc_object_set_name | ( | vlc_object_t * | , |
| const char * | |||
| ) |
Assign a name to an object for vlc_object_find_name().
| int vlc_object_waitpipe | ( | vlc_object_t * | obj | ) |
Returns the readable end of a pipe that becomes readable once termination of the object is requested (vlc_object_kill()).
This can be used to wake-up out of a select() or poll() event loop, such typically when doing network I/O.
Note that the pipe will remain the same for the lifetime of the object. DO NOT read the pipe nor close it yourself. Ever.
| obj | object that would be "killed" |
References vlc_object_internals::alive, msg_Dbg, vlc_object_internals::pipes, vlc_internals, vlc_mutex_lock(), vlc_pipe(), vlc_restorecancel(), and vlc_savecancel().
Referenced by httpd_HostCreate(), net_Accept(), net_Connect(), net_Read(), and net_Write().
| int vlc_set_priority | ( | vlc_thread_t | , |
| int | |||
| ) |
< No error
< Unspecified error
< No error
< No error
< Unspecified error
< No error
References rt_offset, rt_priorities, VLC_EGENERIC, and VLC_SUCCESS.
Referenced by Init().
| void vlc_threads_setup | ( | libvlc_int_t * | ) |
References lock, rt_offset, rt_priorities, SelectClockSource(), var_InheritBool, var_InheritInteger, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, and VLC_STATIC_MUTEX.
Referenced by libvlc_InternalInit().
| size_t vlc_towc | ( | const char * | str, |
| uint32_t *restrict | pwc | ||
| ) |
Converts the first character from a UTF-8 sequence into a code point.
| str | an UTF-8 bytes sequence |
References clz8, and unlikely.
Referenced by convert_xml_special_chars(), EnsureUTF8(), IsUTF8(), vlc_str2keycode(), and vlc_strcasestr().
| void vlc_trace | ( | const char * | fn, |
| const char * | file, | ||
| unsigned | line | ||
| ) |
Print a backtrace to the standard error for debugging purpose.
References fsync().
Referenced by vlc_thread_fatal().
| const char psz_vlc_changeset[] |
Referenced by libvlc_InternalInit(), and Version().
1.8.1.2