47 |
|
|
48 |
#define BITS_MULT 16 |
#define BITS_MULT 16 |
49 |
|
|
50 |
#define INITIAL_SKIP_THRESH 5 |
#define INITIAL_SKIP_THRESH 6 |
51 |
#define FINAL_SKIP_THRESH 50 |
#define FINAL_SKIP_THRESH 50 |
52 |
#define MAX_SAD00_FOR_SKIP 20 |
#define MAX_SAD00_FOR_SKIP 20 |
53 |
#define MAX_CHROMA_SAD_FOR_SKIP 22 |
#define MAX_CHROMA_SAD_FOR_SKIP 22 |
102 |
const uint8_t * b_RefP[6]; /* backward reference pictures - N, V, H, HV, cU, cV */ |
const uint8_t * b_RefP[6]; /* backward reference pictures - N, V, H, HV, cU, cV */ |
103 |
VECTOR bpredMV; /* backward prediction - used interpolate mode only */ |
VECTOR bpredMV; /* backward prediction - used interpolate mode only */ |
104 |
uint32_t bFcode; /* backward fcode - used as above */ |
uint32_t bFcode; /* backward fcode - used as above */ |
105 |
|
int b_chromaX, b_chromaY; |
106 |
|
|
107 |
/* fields for direct mode */ |
/* fields for direct mode */ |
108 |
VECTOR directmvF[4]; /* scaled reference vectors */ |
VECTOR directmvF[4]; /* scaled reference vectors */ |
116 |
unsigned int cbp[2]; /* CBP of the best vector found so far + cbp for inter4v search */ |
unsigned int cbp[2]; /* CBP of the best vector found so far + cbp for inter4v search */ |
117 |
const uint16_t * scan_table; /* current scan table */ |
const uint16_t * scan_table; /* current scan table */ |
118 |
const uint16_t * mpeg_quant_matrices; /* current MPEG quantization matrices */ |
const uint16_t * mpeg_quant_matrices; /* current MPEG quantization matrices */ |
119 |
|
int lambda[6]; /* R-D lambdas for all 6 blocks */ |
120 |
|
|
121 |
} SearchData; |
} SearchData; |
122 |
|
|
150 |
MainSearchFunc xvid_me_DiamondSearch, xvid_me_AdvDiamondSearch, xvid_me_SquareSearch; |
MainSearchFunc xvid_me_DiamondSearch, xvid_me_AdvDiamondSearch, xvid_me_SquareSearch; |
151 |
|
|
152 |
void |
void |
153 |
xvid_me_SubpelRefine(SearchData * const data, CheckFunc * const CheckCandidate, int dir); |
xvid_me_SubpelRefine(VECTOR centerMV, SearchData * const data, CheckFunc * const CheckCandidate, int dir); |
154 |
|
|
155 |
void |
void |
156 |
FullRefine_Fast(SearchData * data, CheckFunc * CheckCandidate, int direction); |
FullRefine_Fast(SearchData * data, CheckFunc * CheckCandidate, int direction); |
183 |
const IMAGE * const vGMC, |
const IMAGE * const vGMC, |
184 |
const int coding_type); |
const int coding_type); |
185 |
|
|
186 |
|
void |
187 |
|
ModeDecision_BVOP_RD(SearchData * const Data_d, |
188 |
|
SearchData * const Data_b, |
189 |
|
SearchData * const Data_f, |
190 |
|
SearchData * const Data_i, |
191 |
|
MACROBLOCK * const pMB, |
192 |
|
const MACROBLOCK * const b_mb, |
193 |
|
VECTOR * f_predMV, |
194 |
|
VECTOR * b_predMV, |
195 |
|
const uint32_t MotionFlags, |
196 |
|
const MBParam * const pParam, |
197 |
|
int x, int y); |
198 |
|
|
199 |
|
|
200 |
#endif /* _ESTIMATION_H_ */ |
#endif /* _ESTIMATION_H_ */ |