#include <math.h>
#include <time.h>
#include "global.h"
#include "refbuf.h"
#include "mbuffer.h"
#include "img_luma.h"
#include "img_chroma.h"
#include "intrarefresh.h"
#include "fmo.h"
#include "sei.h"
#include "memalloc.h"
#include "nalu.h"
#include "ratectl.h"
#include "mb_access.h"
#include "md_distortion.h"
#include "output.h"
#include "context_ini.h"
#include "conformance.h"
#include "enc_statistics.h"
#include "q_matrix.h"
#include "q_offsets.h"
#include "quant4x4.h"
#include "quant8x8.h"
#include "wp.h"
#include "input.h"
#include "image.h"
#include "img_distortion.h"
#include "img_dist_snr.h"
#include "img_dist_ssim.h"
#include "img_dist_ms_ssim.h"
#include "cconv_yuv2rgb.h"
Go to the source code of this file.
Functions | |
void | accumulate_metric (float *ave_metric, float cur_metric, int frames) |
void | accumulate_average (DistMetric *metric, int frames) |
void | accumulate_avslice (DistMetric *metric, int slice_type, int frames) |
void | find_distortion (ImageParameters *p_Img, InputParameters *p_Inp, ImageData *imgData) |
void | select_img (ImageParameters *p_Img, InputParameters *p_Inp, ImageStructure *imgSRC, ImageStructure *imgREF, ImageData *imgData) |
void | compute_distortion (ImageParameters *p_Img, InputParameters *p_Inp, ImageData *imgData) |
Definition in file img_distortion.c.
void accumulate_average | ( | DistMetric * | metric, | |
int | frames | |||
) |
Accumulate distortion for all components.
Definition at line 69 of file img_distortion.c.
References accumulate_metric(), distortion_metric::average, and distortion_metric::value.
Referenced by find_ms_ssim(), find_snr(), and find_ssim().
void accumulate_avslice | ( | DistMetric * | metric, | |
int | slice_type, | |||
int | frames | |||
) |
Accumulate distortion for all components for slice_type.
Definition at line 82 of file img_distortion.c.
References accumulate_metric(), distortion_metric::avslice, and distortion_metric::value.
Referenced by find_ms_ssim(), find_snr(), and find_ssim().
void accumulate_metric | ( | float * | ave_metric, | |
float | cur_metric, | |||
int | frames | |||
) |
Metric accumulator.
Definition at line 58 of file img_distortion.c.
Referenced by accumulate_average(), and accumulate_avslice().
void find_distortion | ( | ImageParameters * | p_Img, | |
InputParameters * | p_Inp, | |||
ImageData * | imgData | |||
) |
Find distortion for all three components.
Definition at line 95 of file img_distortion.c.
References compute_SSE(), storable_picture::imgUV, img_par::imgUV_com, storable_picture::imgY, img_par::imgY_com, inp_par_enc::output, img_par::pCurImg, img_par::structure, and YUV400.
Referenced by distortion_fld(), and frame_picture().