42 |
|
|
43 |
|
|
44 |
/** MBMotionCompensation **/ |
/** MBMotionCompensation **/ |
45 |
void MBMotionCompensation(MACROBLOCK * const pMB, |
|
46 |
const uint32_t j, |
void |
47 |
|
MBMotionCompensation(MACROBLOCK * const mb, |
48 |
const uint32_t i, |
const uint32_t i, |
49 |
const IMAGE * const pRef, |
const uint32_t j, |
50 |
const IMAGE * const pRefH, |
const IMAGE * const ref, |
51 |
const IMAGE * const pRefV, |
const IMAGE * const refh, |
52 |
const IMAGE * const pRefHV, |
const IMAGE * const refv, |
53 |
IMAGE * const pCurrent, |
const IMAGE * const refhv, |
54 |
int16_t dct_codes[6 * 64], |
const IMAGE * const refGMC, |
55 |
|
IMAGE * const cur, |
56 |
|
int16_t * dct_codes, |
57 |
const uint32_t width, |
const uint32_t width, |
58 |
const uint32_t height, |
const uint32_t height, |
59 |
const uint32_t edged_width, |
const uint32_t edged_width, |
60 |
const uint32_t rounding); |
const int32_t quarterpel, |
61 |
|
const int reduced_resolution, |
62 |
|
const int32_t rounding); |
63 |
|
|
64 |
/** MBTransQuant.c **/ |
/** MBTransQuant.c **/ |
65 |
|
|
110 |
uint8_t MBTransQuantInterBVOP(const MBParam * pParam, |
uint8_t MBTransQuantInterBVOP(const MBParam * pParam, |
111 |
FRAMEINFO * frame, |
FRAMEINFO * frame, |
112 |
MACROBLOCK * pMB, |
MACROBLOCK * pMB, |
|
const uint32_t x_pos, |
|
|
const uint32_t y_pos, |
|
113 |
int16_t data[6 * 64], |
int16_t data[6 * 64], |
114 |
int16_t qcoeff[6 * 64]); |
int16_t qcoeff[6 * 64]); |
115 |
|
|
173 |
uint32_t MBDecideFieldDCT(int16_t data[6 * 64]); /* <- decide whether to use field-based DCT |
uint32_t MBDecideFieldDCT(int16_t data[6 * 64]); /* <- decide whether to use field-based DCT |
174 |
for interlacing */ |
for interlacing */ |
175 |
|
|
176 |
|
typedef uint32_t (MBFIELDTEST) (int16_t data[6 * 64]); /* function pointer for field test */ |
177 |
|
typedef MBFIELDTEST *MBFIELDTEST_PTR; |
178 |
|
|
179 |
|
/* global field test pointer for xvid.c */ |
180 |
|
extern MBFIELDTEST_PTR MBFieldTest; |
181 |
|
|
182 |
|
/* field test implementations */ |
183 |
|
MBFIELDTEST MBFieldTest_c; |
184 |
|
MBFIELDTEST MBFieldTest_mmx; |
185 |
|
|
186 |
void MBFrameToField(int16_t data[6 * 64]); /* de-interlace vertical Y blocks */ |
void MBFrameToField(int16_t data[6 * 64]); /* de-interlace vertical Y blocks */ |
187 |
|
|
188 |
|
|
189 |
/** MBCoding.c **/ |
/** MBCoding.c **/ |
190 |
|
|
191 |
void MBSkip(Bitstream * bs); /* just the bitstream. Since MB is skipped, no info is needed */ |
/* void MBSkip(Bitstream * bs); just the bitstream. Since MB is skipped, no info is needed */ |
192 |
|
|
193 |
|
|
194 |
void MBCoding(const FRAMEINFO * frame, /* <-- the parameter for coding of the bitstream */ |
void MBCoding(const FRAMEINFO * const frame, /* <-- the parameter for coding of the bitstream */ |
195 |
|
|
196 |
MACROBLOCK * pMB, /* <-- Info of the MB to be coded */ |
MACROBLOCK * pMB, /* <-- Info of the MB to be coded */ |
197 |
|
|