VLC 4.0.0-dev
|
Functions | |
static void | input_rate_Init (input_rate_t *rate) |
Create a statistics counter. More... | |
static float | stats_GetRate (const input_rate_t *rate) |
struct input_stats * | input_stats_Create (void) |
void | input_stats_Destroy (struct input_stats *stats) |
void | input_stats_Compute (struct input_stats *stats, input_stats_t *st) |
void | input_rate_Add (input_rate_t *counter, uintmax_t val) |
Update a counter element with new values. More... | |
void input_rate_Add | ( | input_rate_t * | counter, |
uintmax_t | 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, |
References input_rate_t::date, input_rate_t::lock, input_rate_t::samples, input_rate_t::updates, input_rate_t::value, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_TICK_FROM_SEC, VLC_TICK_INVALID, and vlc_tick_now().
Referenced by AStreamReadBlock(), AStreamReadStream(), and EsOutSend().
|
static |
Create a statistics counter.
References input_rate_t::date, input_rate_t::lock, input_rate_t::samples, input_rate_t::updates, input_rate_t::value, vlc_mutex_init(), and VLC_TICK_INVALID.
Referenced by input_stats_Create().
void input_stats_Compute | ( | struct input_stats * | stats, |
input_stats_t * | st | ||
) |
References input_stats::decoded_audio, input_stats::decoded_video, input_stats::demux_bitrate, input_stats::demux_corrupted, input_stats::demux_discontinuity, input_stats::displayed_pictures, input_stats_t::f_demux_bitrate, input_stats_t::f_input_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_late_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::input_bitrate, input_stats::late_pictures, input_rate_t::lock, input_stats::lost_abuffers, input_stats::lost_pictures, input_stats::played_abuffers, stats_GetRate(), input_rate_t::updates, input_rate_t::value, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by End(), and MainLoopStatistics().
struct input_stats * input_stats_Create | ( | void | ) |
References input_stats::decoded_audio, input_stats::decoded_video, input_stats::demux_bitrate, input_stats::demux_corrupted, input_stats::demux_discontinuity, input_stats::displayed_pictures, input_stats::input_bitrate, input_rate_Init(), input_stats::late_pictures, input_stats::lost_abuffers, input_stats::lost_pictures, input_stats::played_abuffers, and unlikely.
Referenced by input_Create().
void input_stats_Destroy | ( | struct input_stats * | stats | ) |
Referenced by Destroy().
|
static |
References input_rate_t::date, input_rate_t::samples, input_rate_t::value, and VLC_TICK_INVALID.
Referenced by input_stats_Compute().