#include <math.h>
#include <limits.h>
#include <float.h>
#include "global.h"
#include "rdopt_coding_state.h"
#include "mb_access.h"
#include "intrarefresh.h"
#include "image.h"
#include "transform8x8.h"
#include "ratectl.h"
#include "mode_decision.h"
#include "fmo.h"
#include "me_umhex.h"
#include "me_umhexsmp.h"
#include "macroblock.h"
#include "mv_search.h"
#include "md_distortion.h"
Go to the source code of this file.
Functions | |
void | setupDistortion (Slice *currSlice) |
int64 | compute_SSE (imgpel **imgRef, imgpel **imgSrc, int xRef, int xSrc, int ySize, int xSize) |
int64 | compute_SSE_cr (imgpel **imgRef, imgpel **imgSrc, int xRef, int xSrc, int ySize, int xSize) |
int64 | compute_SSE16x16 (imgpel **imgRef, imgpel **imgSrc, int xRef, int xSrc) |
int64 | compute_SSE8x8 (imgpel **imgRef, imgpel **imgSrc, int xRef, int xSrc) |
int64 | compute_SSE4x4 (imgpel **imgRef, imgpel **imgSrc, int xRef, int xSrc) |
int64 | distortionSSE (Macroblock *currMB) |
Definition in file md_distortion.c.
int64 compute_SSE | ( | imgpel ** | imgRef, | |
imgpel ** | imgSrc, | |||
int | xRef, | |||
int | xSrc, | |||
int | ySize, | |||
int | xSize | |||
) |
compute generic SSE
Definition at line 46 of file md_distortion.c.
Referenced by find_distortion(), and find_snr().
int64 compute_SSE16x16 | ( | imgpel ** | imgRef, | |
imgpel ** | imgSrc, | |||
int | xRef, | |||
int | xSrc | |||
) |
compute 16x16 SSE
Definition at line 87 of file md_distortion.c.
Referenced by distortionSSE(), min_rdcost_16x16(), and RDCost_for_macroblocks().
int64 compute_SSE4x4 | ( | imgpel ** | imgRef, | |
imgpel ** | imgSrc, | |||
int | xRef, | |||
int | xSrc | |||
) |
compute 4x4 SSE
Definition at line 134 of file md_distortion.c.
Referenced by rdcost_for_4x4_intra_blocks(), and rdcost_for_4x4_intra_blocks_444().
int64 compute_SSE8x8 | ( | imgpel ** | imgRef, | |
imgpel ** | imgSrc, | |||
int | xRef, | |||
int | xSrc | |||
) |
compute 8x8 SSE
Definition at line 110 of file md_distortion.c.
Referenced by rdcost_for_8x8_intra_blocks(), rdcost_for_8x8_intra_blocks_444(), and RDCost_for_8x8blocks().
int64 distortionSSE | ( | Macroblock * | currMB | ) |
SSE distortion calculation for a macroblock.
Definition at line 158 of file md_distortion.c.
References compute_SSE16x16(), storable_picture::imgUV, macroblock::opix_c_y, macroblock::opix_y, storable_picture::p_curr_img, macroblock::p_Img, img_par::pCurImg, macroblock::pix_c_x, macroblock::pix_c_y, macroblock::pix_x, macroblock::pix_y, and YUV400.