Parent Directory | Revision Log
Revision 1.10 - (view) (download)
1 : | Isibaar | 1.1 | /************************************************************************** |
2 : | * | ||
3 : | * Modifications: | ||
4 : | * | ||
5 : | h | 1.4 | * 29.03.2002 removed MBFieldToFrame - no longer used (transfers instead) |
6 : | h | 1.2 | * 26.03.2002 interlacing support |
7 : | Isibaar | 1.1 | * 02.12.2001 motion estimation/compensation split |
8 : | * 16.11.2001 const/uint32_t changes to MBMotionEstComp() | ||
9 : | * 26.08.2001 added inter4v_mode parameter to MBMotionEstComp() | ||
10 : | * | ||
11 : | * Michael Militzer <isibaar@videocoding.de> | ||
12 : | * | ||
13 : | **************************************************************************/ | ||
14 : | |||
15 : | #ifndef _ENCORE_BLOCK_H | ||
16 : | #define _ENCORE_BLOCK_H | ||
17 : | |||
18 : | #include "../encoder.h" | ||
19 : | #include "../bitstream/bitstream.h" | ||
20 : | |||
21 : | |||
22 : | |||
23 : | /** MotionEstimation **/ | ||
24 : | |||
25 : | edgomez | 1.6 | bool MotionEstimation(MBParam * const pParam, |
26 : | FRAMEINFO * const current, | ||
27 : | FRAMEINFO * const reference, | ||
28 : | const IMAGE * const pRefH, | ||
29 : | const IMAGE * const pRefV, | ||
30 : | const IMAGE * const pRefHV, | ||
31 : | const uint32_t iLimit); | ||
32 : | Isibaar | 1.1 | |
33 : | |||
34 : | chl | 1.7 | bool SMP_MotionEstimation(MBParam * const pParam, |
35 : | FRAMEINFO * const current, | ||
36 : | FRAMEINFO * const reference, | ||
37 : | const IMAGE * const pRefH, | ||
38 : | const IMAGE * const pRefV, | ||
39 : | const IMAGE * const pRefHV, | ||
40 : | const uint32_t iLimit); | ||
41 : | |||
42 : | |||
43 : | |||
44 : | Isibaar | 1.1 | /** MBMotionCompensation **/ |
45 : | edgomez | 1.6 | void MBMotionCompensation(MACROBLOCK * const pMB, |
46 : | const uint32_t j, | ||
47 : | const uint32_t i, | ||
48 : | const IMAGE * const pRef, | ||
49 : | const IMAGE * const pRefH, | ||
50 : | const IMAGE * const pRefV, | ||
51 : | const IMAGE * const pRefHV, | ||
52 : | IMAGE * const pCurrent, | ||
53 : | int16_t dct_codes[6 * 64], | ||
54 : | const uint32_t width, | ||
55 : | const uint32_t height, | ||
56 : | const uint32_t edged_width, | ||
57 : | const uint32_t rounding); | ||
58 : | Isibaar | 1.1 | |
59 : | |||
60 : | /** MBTransQuant.c **/ | ||
61 : | |||
62 : | |||
63 : | edgomez | 1.6 | void MBTransQuantIntra(const MBParam * pParam, |
64 : | FRAMEINFO * frame, | ||
65 : | MACROBLOCK * pMB, | ||
66 : | const uint32_t x_pos, /* <-- The x position of the MB to be searched */ | ||
67 : | Isibaar | 1.1 | |
68 : | edgomez | 1.6 | const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
69 : | |||
70 : | int16_t data[6 * 64], /* <-> the data of the MB to be coded */ | ||
71 : | |||
72 : | int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */ | ||
73 : | ); | ||
74 : | |||
75 : | |||
76 : | chl | 1.9 | void MBTransQuantIntra2(const MBParam * pParam, |
77 : | FRAMEINFO * frame, | ||
78 : | MACROBLOCK * pMB, | ||
79 : | const uint32_t x_pos, /* <-- The x position of the MB to be searched */ | ||
80 : | Isibaar | 1.1 | |
81 : | chl | 1.9 | const uint32_t y_pos, /* <-- The y position of the MB to be searched */ |
82 : | |||
83 : | int16_t data[6 * 64], /* <-> the data of the MB to be coded */ | ||
84 : | |||
85 : | int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */ | ||
86 : | ); | ||
87 : | |||
88 : | |||
89 : | uint8_t MBTransQuantInter(const MBParam * pParam, | ||
90 : | FRAMEINFO * frame, | ||
91 : | MACROBLOCK * pMB, | ||
92 : | const uint32_t x_pos, | ||
93 : | const uint32_t y_pos, | ||
94 : | int16_t data[6 * 64], | ||
95 : | int16_t qcoeff[6 * 64]); | ||
96 : | |||
97 : | |||
98 : | uint8_t MBTransQuantInter2(const MBParam * pParam, | ||
99 : | FRAMEINFO * frame, | ||
100 : | MACROBLOCK * pMB, | ||
101 : | const uint32_t x_pos, | ||
102 : | const uint32_t y_pos, | ||
103 : | int16_t data[6 * 64], | ||
104 : | int16_t qcoeff[6 * 64]); | ||
105 : | |||
106 : | uint8_t MBTransQuantInterBVOP(const MBParam * pParam, | ||
107 : | suxen_drol | 1.5 | FRAMEINFO * frame, |
108 : | edgomez | 1.6 | MACROBLOCK * pMB, |
109 : | chl | 1.9 | int16_t data[6 * 64], |
110 : | int16_t qcoeff[6 * 64]); | ||
111 : | edgomez | 1.6 | |
112 : | chl | 1.9 | void MBTrans(const MBParam * pParam, |
113 : | FRAMEINFO * frame, | ||
114 : | MACROBLOCK * pMB, | ||
115 : | const uint32_t x_pos, | ||
116 : | const uint32_t y_pos, | ||
117 : | int16_t data[6 * 64]); | ||
118 : | |||
119 : | void MBfDCT(const MBParam * pParam, | ||
120 : | FRAMEINFO * frame, | ||
121 : | MACROBLOCK * pMB, | ||
122 : | int16_t data[6 * 64]); | ||
123 : | |||
124 : | uint8_t MBQuantInter( const MBParam * pParam, | ||
125 : | const int iQuant, | ||
126 : | int16_t data[6 * 64], | ||
127 : | int16_t qcoeff[6 * 64]); | ||
128 : | |||
129 : | void MBQuantDeQuantIntra(const MBParam * pParam, | ||
130 : | FRAMEINFO * frame, | ||
131 : | MACROBLOCK *pMB, | ||
132 : | int16_t qcoeff[6 * 64], | ||
133 : | int16_t data[6*64]); | ||
134 : | |||
135 : | void MBQuantIntra( const MBParam * pParam, | ||
136 : | FRAMEINFO * frame, | ||
137 : | MACROBLOCK *pMB, | ||
138 : | int16_t qcoeff[6 * 64], | ||
139 : | int16_t data[6*64]); | ||
140 : | edgomez | 1.6 | |
141 : | chl | 1.9 | void MBDeQuantIntra(const MBParam * pParam, |
142 : | const int iQuant, | ||
143 : | int16_t qcoeff[6 * 64], | ||
144 : | int16_t data[6*64]); | ||
145 : | |||
146 : | void MBDeQuantInter(const MBParam * pParam, | ||
147 : | const int iQuant, | ||
148 : | int16_t data[6 * 64], | ||
149 : | int16_t qcoeff[6 * 64], | ||
150 : | const uint8_t cbp); | ||
151 : | |||
152 : | |||
153 : | void MBiDCT( int16_t data[6 * 64], | ||
154 : | const uint8_t cbp); | ||
155 : | |||
156 : | |||
157 : | void MBTransAdd( const MBParam * pParam, | ||
158 : | FRAMEINFO * frame, | ||
159 : | MACROBLOCK * pMB, | ||
160 : | const uint32_t x_pos, | ||
161 : | const uint32_t y_pos, | ||
162 : | int16_t data[6 * 64], | ||
163 : | const uint8_t cbp); | ||
164 : | edgomez | 1.6 | |
165 : | h | 1.2 | |
166 : | |||
167 : | /** interlacing **/ | ||
168 : | |||
169 : | edgomez | 1.6 | uint32_t MBDecideFieldDCT(int16_t data[6 * 64]); /* <- decide whether to use field-based DCT |
170 : | for interlacing */ | ||
171 : | h | 1.2 | |
172 : | edgomez | 1.6 | void MBFrameToField(int16_t data[6 * 64]); /* de-interlace vertical Y blocks */ |
173 : | Isibaar | 1.1 | |
174 : | |||
175 : | /** MBCoding.c **/ | ||
176 : | |||
177 : | chl | 1.8 | void MBSkip(Bitstream * bs); /* just the bitstream. Since MB is skipped, no info is needed */ |
178 : | |||
179 : | |||
180 : | edgomez | 1.6 | void MBCoding(const FRAMEINFO * frame, /* <-- the parameter for coding of the bitstream */ |
181 : | |||
182 : | MACROBLOCK * pMB, /* <-- Info of the MB to be coded */ | ||
183 : | |||
184 : | int16_t qcoeff[6 * 64], /* <-- the quantized DCT coefficients */ | ||
185 : | |||
186 : | Bitstream * bs, /* <-> the bitstream */ | ||
187 : | |||
188 : | Statistics * pStat /* <-> statistical data collected for current frame */ | ||
189 : | ); | ||
190 : | Isibaar | 1.1 | |
191 : | #endif |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |