#include "contributors.h"
#include <time.h>
#include <math.h>
#include "global.h"
#include "context_ini.h"
#include "explicit_gop.h"
#include "filehandle.h"
#include "fmo.h"
#include "image.h"
#include "intrarefresh.h"
#include "leaky_bucket.h"
#include "me_epzs.h"
#include "me_epzs_int.h"
#include "output.h"
#include "parset.h"
#include "report.h"
Go to the source code of this file.
Functions | |
void | report_log_mode (ImageParameters *p_Img, InputParameters *p_Inp, StatParameters *p_Stats) |
void | report_frame_statistic (ImageParameters *p_Img, InputParameters *p_Inp) |
double | report_slice_pred_stats (FILE *p_stat, StatParameters *p_Stats, int slice_type, double bit_use, char *slice_name) |
void | report_stats_on_error (void) |
void | report_stats (ImageParameters *p_Img, InputParameters *p_Inp, StatParameters *p_Stats, int64 bit_use[NUM_SLICE_TYPES][2]) |
void | report_log (ImageParameters *p_Img, InputParameters *p_Inp, StatParameters *p_Stats) |
void | report (ImageParameters *p_Img, InputParameters *p_Inp, StatParameters *p_Stats) |
void | information_init (ImageParameters *p_Img, InputParameters *p_Inp, StatParameters *p_Stats) |
Variables | |
static const char | DistortionType [3][20] = {"SAD", "SSE", "Hadamard SAD"} |
Definition in file report.c.
void information_init | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
StatParameters * | p_Stats | |||
) |
Prints the header of the protocol.
Definition at line 864 of file report.c.
References inp_par_enc::B_List0_refs, inp_par_enc::B_List1_refs, inp_par_enc::BRefPictures, EPZSOutputStats(), img_par::height, inp_par_enc::idr_period, inp_par_enc::input_file1, inp_par_enc::intra_period, inp_par_enc::intra_upd, inp_par_enc::LevelIDC, inp_par_enc::MbInterlace, inp_par_enc::no_frm_base, inp_par_enc::num_ref_frames, inp_par_enc::NumberBFrames, inp_par_enc::of_mode, inp_par_enc::outfile, inp_par_enc::output, img_par::p_dec, inp_par_enc::P_List0_refs, PAR_DP_1, PAR_DP_3, PAR_OF_ANNEXB, PAR_OF_RTP, inp_par_enc::partition_mode, inp_par_enc::PicInterlace, inp_par_enc::ProfileIDC, inp_par_enc::qp, inp_par_enc::qpBRSOffset, inp_par_enc::qpsp, inp_par_enc::ReconFile, inp_par_enc::search_range, inp_par_enc::sp_periodicity, inp_par_enc::symbol_mode, and img_par::width.
Referenced by init_encoder().
void report | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
StatParameters * | p_Stats | |||
) |
Reports the gathered information to appropriate outputs.
Currently adding NVB bits on P rate. Maybe additional p_Stats info should be created instead and added in log file
Definition at line 649 of file report.c.
References distortion_metric::average, errortext, ET_SIZE, img_par::max_imgpel_value_comp_sq, inp_par_enc::output, img_par::p_log, report_log_mode(), report_stats(), and inp_par_enc::sp_periodicity.
Referenced by free_encoder_memory().
void report_frame_statistic | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp | |||
) |
Reports frame statistical data to a stats file.
Definition at line 41 of file report.c.
References error(), errortext, ET_SIZE, img_par::frame_num, inp_par_enc::input_file1, inp_par_enc::MbInterlace, inp_par_enc::PicInterlace, and img_par::qp.
Referenced by encode_sequence().
void report_log_mode | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
StatParameters * | p_Stats | |||
) |
Report mode distribution of the sequence to log_mode.dat.
< status file for the last encoding session
Definition at line 1088 of file report.c.
References error(), errortext, ET_SIZE, inp_par_enc::input_file1, and img_par::qp.
Referenced by report().
void report_stats | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
StatParameters * | p_Stats, | |||
int64 | bit_use[NUM_SLICE_TYPES][2] | |||
) |
< status file for the last encoding session
Definition at line 242 of file report.c.
References inp_par_enc::B_List0_refs, inp_par_enc::B_List1_refs, EPZSOutputStats(), error(), errortext, ET_SIZE, inp_par_enc::input_file1, inp_par_enc::intra_upd, inp_par_enc::LevelIDC, inp_par_enc::MbInterlace, inp_par_enc::num_ref_frames, inp_par_enc::output, inp_par_enc::P_List0_refs, inp_par_enc::ProfileIDC, inp_par_enc::search_range, inp_par_enc::StatsFile, and inp_par_enc::symbol_mode.
Referenced by report().
void report_stats_on_error | ( | void | ) |
Terminates and reports statistics on error.
Definition at line 234 of file report.c.
References free_encoder_memory().
Referenced by OpenExplicitSeqFile(), OpenFrameFile(), OpenTiffFile(), ParseTIFFIFD(), ReadCharField(), ReadExplicitSeqFile(), ReadFrameData(), ReadIntField(), ReadTIFFHeader(), ReadTIFFIFDEntry(), and ReadTIFFImage().