42 |
const IMAGE * const pRefV, |
const IMAGE * const pRefV, |
43 |
const IMAGE * const pRefHV, |
const IMAGE * const pRefHV, |
44 |
IMAGE * const pCurrent, |
IMAGE * const pCurrent, |
45 |
int16_t dct_codes[][64], |
int16_t dct_codes[6*64], |
46 |
const uint32_t width, |
const uint32_t width, |
47 |
const uint32_t height, |
const uint32_t height, |
48 |
const uint32_t edged_width, |
const uint32_t edged_width, |
56 |
MACROBLOCK * pMB, |
MACROBLOCK * pMB, |
57 |
const uint32_t x_pos, /* <-- The x position of the MB to be searched */ |
const uint32_t x_pos, /* <-- The x position of the MB to be searched */ |
58 |
const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
59 |
int16_t data[][64], /* <-> the data of the MB to be coded */ |
int16_t data[6*64], /* <-> the data of the MB to be coded */ |
60 |
int16_t qcoeff[][64], /* <-> the quantized DCT coefficients */ |
int16_t qcoeff[6*64], /* <-> the quantized DCT coefficients */ |
61 |
IMAGE * const pCurrent /* <-> the reconstructed image ( function will update one |
IMAGE * const pCurrent /* <-> the reconstructed image */ |
62 |
MB in it with data from data[] ) */ |
/* (function will update one MB in it with data from data[]) */ |
63 |
); |
); |
64 |
|
|
65 |
|
|
68 |
MACROBLOCK * pMB, |
MACROBLOCK * pMB, |
69 |
const uint32_t x_pos, /* <-- The x position of the MB to be searched */ |
const uint32_t x_pos, /* <-- The x position of the MB to be searched */ |
70 |
const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
71 |
int16_t data[][64], /* <-> the data of the MB to be coded */ |
int16_t data[6*64], /* <-> the data of the MB to be coded */ |
72 |
int16_t qcoeff[][64], /* <-> the quantized DCT coefficients */ |
int16_t qcoeff[6*64], /* <-> the quantized DCT coefficients */ |
73 |
IMAGE * const pCurrent /* <-> the reconstructed image ( function will |
IMAGE * const pCurrent /* <-> the reconstructed image ( function will |
74 |
update one MB in it with data from data[] ) */ |
update one MB in it with data from data[] ) */ |
75 |
); |
); |
77 |
|
|
78 |
/** interlacing **/ |
/** interlacing **/ |
79 |
|
|
80 |
uint32_t MBDecideFieldDCT(int16_t data[][64]); /* <- decide whether to use field-based DCT |
uint32_t MBDecideFieldDCT(int16_t data[6*64]); /* <- decide whether to use field-based DCT |
81 |
for interlacing */ |
for interlacing */ |
82 |
|
|
83 |
void MBFrameToField(int16_t data[][64]); /* de-interlace vertical Y blocks */ |
void MBFrameToField(int16_t data[6*64]); /* de-interlace vertical Y blocks */ |
84 |
|
|
85 |
void MBFieldToFrame(int16_t data[][64]); /* re-interlace vertical Y blocks */ |
void MBFieldToFrame(int16_t data[6*64]); /* re-interlace vertical Y blocks */ |
86 |
|
|
87 |
|
|
88 |
/** MBCoding.c **/ |
/** MBCoding.c **/ |
89 |
|
|
90 |
void MBCoding(const MBParam *pParam, /* <-- the parameter for coding of the bitstream */ |
void MBCoding(const MBParam *pParam, /* <-- the parameter for coding of the bitstream */ |
91 |
MACROBLOCK *pMB, /* <-- Info of the MB to be coded */ |
MACROBLOCK *pMB, /* <-- Info of the MB to be coded */ |
92 |
int16_t qcoeff[][64], /* <-- the quantized DCT coefficients */ |
int16_t qcoeff[6*64], /* <-- the quantized DCT coefficients */ |
93 |
Bitstream * bs, /* <-> the bitstream */ |
Bitstream * bs, /* <-> the bitstream */ |
94 |
Statistics * pStat /* <-> statistical data collected for current frame */ |
Statistics * pStat /* <-> statistical data collected for current frame */ |
95 |
); |
); |