me_fullfast.c File Reference

Motion Estimation using Full Search Fast. More...

#include "contributors.h"
#include <limits.h>
#include "global.h"
#include "image.h"
#include "memalloc.h"
#include "mb_access.h"
#include "refbuf.h"
#include "me_distortion.h"
#include "me_fullsearch.h"
#include "me_fullfast.h"
#include "conformance.h"
#include "mv_search.h"

Include dependency graph for me_fullfast.c:

Go to the source code of this file.

Defines

#define ADD_UP_BLOCKS()   _o=*_bo; _i=*_bi; _j=*_bj; for(pos=0;pos<max_pos;pos++) _o[pos] = _i[pos] + _j[pos];
#define INCREMENT(inc)   _bo+=inc; _bi+=inc; _bj+=inc;

Functions

void InitializeFastFullIntegerSearch (ImageParameters *p_Img, InputParameters *p_Inp)
void ClearFastFullIntegerSearch (ImageParameters *p_Img)
void ResetFastFullIntegerSearch (ImageParameters *p_Img)
void SetupLargerBlocks (MEFullFast *p_ffast_me, int list, int refindex, int max_pos)
void SetupFastFullPelSearch (Macroblock *currMB, MEBlock *mv_block, int list)
int FastFullPelBlockMotionSearch (Macroblock *currMB, MotionVector *pred_mv, MEBlock *mv_block, int min_mcost, int lambda_factor)


Detailed Description

Motion Estimation using Full Search Fast.

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file me_fullfast.c.


Function Documentation

void ClearFastFullIntegerSearch ( ImageParameters p_Img  ) 

function for deleting the arrays for fast integer motion estimation

Definition at line 135 of file me_fullfast.c.

References img_par::max_num_references.

Referenced by Clear_Motion_Search_Module().

int FastFullPelBlockMotionSearch ( Macroblock currMB,
MotionVector pred_mv,
MEBlock *  mv_block,
int  min_mcost,
int  lambda_factor 
)

Fast Full pixel block motion search.

Definition at line 621 of file me_fullfast.c.

References macroblock::p_Img, and SetupFastFullPelSearch().

Referenced by init_ME_engine().

Here is the call graph for this function:

void InitializeFastFullIntegerSearch ( ImageParameters p_Img,
InputParameters p_Inp 
)

Full pixel block motion search.

function creating arrays for fast integer motion estimation

Definition at line 48 of file me_fullfast.c.

References img_par::max_num_references, no_mem_exit(), and inp_par_enc::search_range.

Referenced by Init_Motion_Search_Module().

Here is the call graph for this function:

void ResetFastFullIntegerSearch ( ImageParameters p_Img  ) 

function resetting flags for fast integer motion estimation (have to be called in start_macroblock())

Definition at line 183 of file me_fullfast.c.

References img_par::max_num_references.

Referenced by start_macroblock().

void SetupFastFullPelSearch ( Macroblock currMB,
MEBlock *  mv_block,
int  list 
)

void SetupLargerBlocks ( MEFullFast *  p_ffast_me,
int  list,
int  refindex,
int  max_pos 
)

calculation of SAD for larger blocks on the basis of 4x4 blocks

Definition at line 196 of file me_fullfast.c.

Referenced by SetupFastFullPelSearch().


Documentation generated with DoxyGen