#include <config.h>
#include <assert.h>
#include <time.h>
#include <string.h>
#include "lame.h"
#include "main.h"
#include "lametime.h"
#include "timestatus.h"
#include "console.h"
Include dependency graph for timestatus.c:
Go to the source code of this file.
Classes | |
struct | timestatus_t |
Defines | |
#define | SPEED_CHAR "x" |
#define | SPEED_MULT 1. |
Functions | |
static void | ts_calc_times (timestatus_t *const tstime, const int sample_freq, const int frameNum, const int totalframes, const int framesize) |
static void | ts_time_decompose (const unsigned long time_in_sec, const char padded_char) |
static void | timestatus (const lame_global_flags *const gfp) |
static void | timestatus_finish (void) |
void | encoder_progress_begin (lame_global_flags const *gf, char const *inPath, char const *outPath) |
void | encoder_progress (lame_global_flags const *gf) |
void | encoder_progress_end (lame_global_flags const *gf) |
void | decoder_progress (const mp3data_struct *const mp3data) |
void | decoder_progress_finish () |
#define SPEED_CHAR "x" |
#define SPEED_MULT 1. |
void decoder_progress | ( | const mp3data_struct *const | mp3data | ) |
Definition at line 304 of file timestatus.c.
References mp3data_struct::bitrate, console_printf(), mp3data_struct::framenum, JOINT_STEREO, mp3data_struct::mode, mp3data_struct::mode_ext, and mp3data_struct::totalframes.
Referenced by lame_decoder().
Here is the call graph for this function:
void decoder_progress_finish | ( | ) |
Definition at line 333 of file timestatus.c.
References console_printf().
Referenced by lame_decoder().
Here is the call graph for this function:
void encoder_progress | ( | lame_global_flags const * | gf | ) |
Definition at line 245 of file timestatus.c.
References brhist, brhist_disp(), brhist_jump_back(), console_flush(), GetRealTime(), lame_get_frameNum(), silent, timestatus(), and update_interval.
Referenced by lame_encoder().
Here is the call graph for this function:
void encoder_progress_begin | ( | lame_global_flags const * | gf, | |
char const * | inPath, | |||
char const * | outPath | |||
) |
Definition at line 193 of file timestatus.c.
References console_printf(), lame_get_brate(), lame_get_compression_ratio(), lame_get_force_ms(), lame_get_mode(), lame_get_out_samplerate(), lame_get_quality(), lame_get_VBR(), lame_get_VBR_mean_bitrate_kbps(), lame_get_VBR_q(), lame_get_version(), lame_print_config(), lame_print_internals(), silent, vbr_abr, vbr_mt, vbr_mtrh, and vbr_rh.
Referenced by lame_encoder().
Here is the call graph for this function:
void encoder_progress_end | ( | lame_global_flags const * | gf | ) |
Definition at line 281 of file timestatus.c.
References brhist, brhist_disp(), brhist_disp_total(), brhist_jump_back(), silent, timestatus(), and timestatus_finish().
Referenced by lame_encoder().
Here is the call graph for this function:
static void timestatus | ( | const lame_global_flags *const | gfp | ) | [static] |
Definition at line 111 of file timestatus.c.
References console_printf(), timestatus_t::elapsed_time, timestatus_t::estimated_time, GetCPUTime(), GetRealTime(), gfp, lame_get_frameNum(), lame_get_framesize(), lame_get_out_samplerate(), lame_get_totalframes(), timestatus_t::last_time, SPEED_CHAR, timestatus_t::speed_index, SPEED_MULT, ts_calc_times(), and ts_time_decompose().
Referenced by encoder_progress(), and encoder_progress_end().
Here is the call graph for this function:
static void timestatus_finish | ( | void | ) | [static] |
Definition at line 186 of file timestatus.c.
References console_printf().
Referenced by encoder_progress_end().
Here is the call graph for this function:
static void ts_calc_times | ( | timestatus_t *const | tstime, | |
const int | sample_freq, | |||
const int | frameNum, | |||
const int | totalframes, | |||
const int | framesize | |||
) | [static] |
Definition at line 73 of file timestatus.c.
References timestatus_t::elapsed_time, timestatus_t::estimated_time, and timestatus_t::speed_index.
Referenced by timestatus().
static void ts_time_decompose | ( | const unsigned long | time_in_sec, | |
const char | padded_char | |||
) | [static] |
Definition at line 96 of file timestatus.c.
References console_printf().
Referenced by timestatus().
Here is the call graph for this function: