me_epzs_common.h File Reference

Headerfile for common functions for the EPZS motion estimation. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  EPZSColocParams
struct  SPoint
struct  epzs_struct
struct  epzs_params

Typedefs

typedef struct epzs_struct EPZSStructure
typedef struct epzs_params EPZSParameters

Enumerations

enum  EPZSPatterns {
  SDIAMOND = 0, SQUARE = 1, EDIAMOND = 2, LDIAMOND = 3,
  SBDIAMOND = 4
}

Functions

void EPZSBlockTypePredictorsMB (Slice *currSlice, MEBlock *mv_block, SPoint *point, int *prednum)
short EPZSSpatialPredictors (EPZSParameters *p_EPZS, PixelPos *block, int list, int list_offset, short ref, char **refPic, short ***tmp_mv)
void EPZSTemporalPredictors (Macroblock *currMB, StorablePicture *ref_picture, EPZSParameters *p_EPZS, MEBlock *mv_block, int *prednum, int stopCriterion, int min_mcost)
void EPZSBlockTypePredictors (Slice *currSlice, MEBlock *mv_block, SPoint *point, int *prednum)
void EPZSWindowPredictors (MotionVector *mv, EPZSStructure *predictor, int *prednum, EPZSStructure *windowPred)
void EPZSSpatialMemPredictors (EPZSParameters *p_EPZS, MEBlock *mv_block, int list, int *prednum, int img_width)
int EPZSDetermineStopCriterion (EPZSParameters *p_EPZS, int *prevSad, MEBlock *mv_block, int lambda_dist)
void EPZSDelete (ImageParameters *p_Img)
void EPZSStructDelete (Slice *currSlice)
void EPZSSliceInit (Slice *currSlice)
int EPZSInit (ImageParameters *p_Img)
int EPZSStructInit (Slice *currSlice)
void EPZSOutputStats (InputParameters *p_Inp, FILE *stat, short stats_file)
static int add_predictor (MotionVector *cur_mv, MotionVector prd_mv, int mvScale, int shift_mv)
static void scale_mv (MotionVector *out_mv, int scale, short *mv, int shift_mv)
static void compute_scaled (MotionVector *MotionVector0, MotionVector *MotionVector1, int tempmv_scale[2], short *mv, int invmv_precision)


Detailed Description

Headerfile for common functions for the EPZS motion estimation.

me_epzs_common.h

Author:
Alexis Michael Tourapis <alexis.tourapis@dolby.com>
Date:
11. August 2006

Definition in file me_epzs_common.h.


Function Documentation

static int add_predictor ( MotionVector cur_mv,
MotionVector  prd_mv,
int  mvScale,
int  shift_mv 
) [inline, static]

Add Predictor/normalize function Returns if succesfully added (i.e. if not 0).

Definition at line 128 of file me_epzs_common.h.

Referenced by EPZSTemporalPredictors().

void EPZSBlockTypePredictors ( Slice currSlice,
MEBlock *  mv_block,
SPoint *  point,
int *  prednum 
)

EPZS Block Type Predictors.

Definition at line 1541 of file me_epzs_common.c.

References slice::all_mv, and BLOCK_PARENT.

Referenced by EPZSIntPelBlockMotionSearchSubMB(), and EPZSPelBlockMotionSearchSubMB().

void EPZSBlockTypePredictorsMB ( Slice currSlice,
MEBlock *  mv_block,
SPoint *  point,
int *  prednum 
)

EPZS Block Type Predictors.

Definition at line 1156 of file me_epzs_common.c.

References slice::all_mv, and BLOCK_PARENT.

Referenced by EPZSIntPelBlockMotionSearch(), and EPZSPelBlockMotionSearch().

void EPZSDelete ( ImageParameters p_Img  ) 

Delete EPZS Alocated memory.

Definition at line 207 of file me_epzs_common.c.

References freeEPZSpattern().

Referenced by free_global_buffers().

Here is the call graph for this function:

int EPZSDetermineStopCriterion ( EPZSParameters *  p_EPZS,
int *  prevSad,
MEBlock *  mv_block,
int  lambda_dist 
)

int EPZSInit ( ImageParameters p_Img  ) 

EPZS Global Initialization.

Definition of pottential EPZS patterns. It is possible to also define other patterns, or even use resizing patterns (such as the PMVFAST scheme. These patterns are only shown here as reference, while the same also holds for this implementation (i.e. new conditions could be added on adapting predictors, or thresholds etc. Note that search could also be performed on subpel positions directly while pattern needs not be restricted on integer positions only.

Allocate memory and assign search patterns

Definition at line 169 of file me_epzs_common.c.

References allocEPZSpattern(), and assignEPZSpattern().

Referenced by init_global_buffers().

Here is the call graph for this function:

void EPZSOutputStats ( InputParameters p_Inp,
FILE *  stat,
short  stats_file 
)

Report function for EPZS Fast ME AMT/HYC.

Definition at line 1726 of file me_epzs_common.c.

Referenced by information_init(), and report_stats().

void EPZSSliceInit ( Slice currSlice  ) 

For ME purposes restricting the co-located partition is not necessary.

EPZS Slice Level Initialization

Assign frame buffers for field MBs Check whether we should use top or bottom field mvs. Depending on the assigned poc values.

Generate field MVs from Frame MVs

Use inference flag to remap mvs/references Frame with field co-located

Definition at line 528 of file me_epzs_common.c.

References pic_motion_params::field_frame, storable_picture::motion, pic_motion_params::mv, pic_motion_params::ref_id, and slice::slice_type.

Referenced by init_slice().

void EPZSSpatialMemPredictors ( EPZSParameters *  p_EPZS,
MEBlock *  mv_block,
int  list,
int *  prednum,
int  img_width 
)

Spatial Predictors AMT/HYC.

Parameters:
p_EPZS EPZS Parameters
mv_block Motion estimation structure
list Current list
prednum predictor position
img_width image width

Definition at line 1611 of file me_epzs_common.c.

Referenced by EPZSIntPelBlockMotionSearch(), EPZSIntPelBlockMotionSearchSubMB(), EPZSPelBlockMotionSearch(), and EPZSPelBlockMotionSearchSubMB().

short EPZSSpatialPredictors ( EPZSParameters *  p_EPZS,
PixelPos block,
int  list,
int  list_offset,
short  ref,
char **  refPic,
short ***  tmp_mv 
)

void EPZSStructDelete ( Slice currSlice  ) 

Delete EPZS Alocated memory.

Definition at line 489 of file me_epzs_common.c.

References inp_par_enc::BiPredMotionEstimation, free_mem2Dshort(), free_mem3Dint(), free_mem4Dmv(), free_mem5Dmv(), freeEPZScolocated(), and freeEPZSpattern().

Referenced by terminate_slice().

Here is the call graph for this function:

int EPZSStructInit ( Slice currSlice  ) 

EPZS Global Initialization.

In this implementation we keep threshold limits fixed. However one could adapt these limits based on lagrangian optimization considerations (i.e. qp), while also allow adaptation of the limits themselves based on content or complexity.

Allocate and assign window based predictors. Other window types could also be used, while method could be made a bit more adaptive (i.e. patterns could be assigned based on neighborhood

Also assing search predictor memory

Finally assign memory for all other elements (distortion, EPZSMap, and temporal predictors)

Definition at line 367 of file me_epzs_common.c.

References allocEPZScolocated(), allocEPZSpattern(), inp_par_enc::BiPredMESearchRange, inp_par_enc::BiPredMotionEstimation, EPZSWindowPredictorInit(), get_mem2Dshort(), get_mem3Dint(), get_mem4Dmv(), get_mem5Dmv(), img_par::height, img_par::height_cr, img_par::max_num_references, img_par::MbaffFrameFlag, RoundLog2(), inp_par_enc::search_range, img_par::width, and img_par::width_cr.

Referenced by init_slice().

Here is the call graph for this function:

void EPZSTemporalPredictors ( Macroblock currMB,
StorablePicture ref_picture,
EPZSParameters *  p_EPZS,
MEBlock *  mv_block,
int *  prednum,
int  stopCriterion,
int  min_mcost 
)

Temporal Predictors AMT/HYC.

Parameters:
currMB Currrent Macroblock
ref_picture Current reference picture
p_EPZS EPZS structure
mv_block motion estimation information block
prednum Pointer to first empty position in EPZS predictor list
stopCriterion EPZS thresholding criterion for temporal predictor considerations
min_mcost Current minimum distortion for block

Definition at line 1460 of file me_epzs_common.c.

References add_predictor().

Referenced by EPZSIntPelBlockMotionSearch(), and EPZSPelBlockMotionSearch().

Here is the call graph for this function:

void EPZSWindowPredictors ( MotionVector mv,
EPZSStructure *  predictor,
int *  prednum,
EPZSStructure *  windowPred 
)

EPZS Window Based Predictors.

Definition at line 1590 of file me_epzs_common.c.

Referenced by EPZSIntPelBlockMotionSearch(), and EPZSPelBlockMotionSearch().


Documentation generated with DoxyGen