00001
00016 #ifndef _ERC_DO_H_
00017 #define _ERC_DO_H_
00018
00019
00020 #include "erc_api.h"
00021
00022 void ercPixConcealIMB (ImageParameters *p_Img, imgpel *currFrame, int row, int column, int predBlocks[], int frameWidth, int mbWidthInBlocks);
00023
00024 int ercCollect8PredBlocks( int predBlocks[], int currRow, int currColumn, int *condition,
00025 int maxRow, int maxColumn, int step, byte fNoCornerNeigh );
00026 int ercCollectColumnBlocks( int predBlocks[], int currRow, int currColumn, int *condition, int maxRow, int maxColumn, int step );
00027
00028 #define isSplitted(object_list,currMBNum) \
00029 ((object_list+((currMBNum)<<2))->regionMode >= REGMODE_SPLITTED)
00030
00031
00032 #define isBlock(object_list,currMBNum,comp,regMode) \
00033 (isSplitted(object_list,currMBNum) ? \
00034 ((object_list+((currMBNum)<<2)+(comp))->regionMode == REGMODE_##regMode##_8x8) : \
00035 ((object_list+((currMBNum)<<2))->regionMode == REGMODE_##regMode))
00036
00037
00038 #define getParam(object_list,currMBNum,comp,param) \
00039 (isSplitted(object_list,currMBNum) ? \
00040 ((object_list+((currMBNum)<<2)+(comp))->param) : \
00041 ((object_list+((currMBNum)<<2))->param))
00042
00043 #endif
00044