md_distortion.c File Reference

Main macroblock mode decision functions and helpers. More...

#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"

Include dependency graph for md_distortion.c:

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)


Detailed Description

Main macroblock mode decision functions and helpers.

Definition in file md_distortion.c.


Function Documentation

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  ) 


Documentation generated with DoxyGen