[cvs] / xvidcore / src / utils / mbfunctions.h Repository:
ViewVC logotype

Annotation of /xvidcore/src/utils/mbfunctions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10.2.3 - (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 : Isibaar 1.10.2.2 const uint32_t quarterpel,
58 : edgomez 1.6 const uint32_t rounding);
59 : Isibaar 1.1
60 :    
61 :     /** MBTransQuant.c **/
62 :    
63 :    
64 : edgomez 1.6 void MBTransQuantIntra(const MBParam * pParam,
65 :     FRAMEINFO * frame,
66 :     MACROBLOCK * pMB,
67 :     const uint32_t x_pos, /* <-- The x position of the MB to be searched */
68 : Isibaar 1.1
69 : edgomez 1.6 const uint32_t y_pos, /* <-- The y position of the MB to be searched */
70 :    
71 :     int16_t data[6 * 64], /* <-> the data of the MB to be coded */
72 :    
73 :     int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */
74 :     );
75 :    
76 :    
77 : chl 1.9 void MBTransQuantIntra2(const MBParam * pParam,
78 :     FRAMEINFO * frame,
79 :     MACROBLOCK * pMB,
80 :     const uint32_t x_pos, /* <-- The x position of the MB to be searched */
81 : Isibaar 1.1
82 : chl 1.9 const uint32_t y_pos, /* <-- The y position of the MB to be searched */
83 :    
84 :     int16_t data[6 * 64], /* <-> the data of the MB to be coded */
85 :    
86 :     int16_t qcoeff[6 * 64] /* <-> the quantized DCT coefficients */
87 :     );
88 :    
89 :    
90 :     uint8_t MBTransQuantInter(const MBParam * pParam,
91 :     FRAMEINFO * frame,
92 :     MACROBLOCK * pMB,
93 :     const uint32_t x_pos,
94 :     const uint32_t y_pos,
95 :     int16_t data[6 * 64],
96 :     int16_t qcoeff[6 * 64]);
97 :    
98 :    
99 :     uint8_t MBTransQuantInter2(const MBParam * pParam,
100 :     FRAMEINFO * frame,
101 :     MACROBLOCK * pMB,
102 :     const uint32_t x_pos,
103 :     const uint32_t y_pos,
104 :     int16_t data[6 * 64],
105 :     int16_t qcoeff[6 * 64]);
106 :    
107 :     uint8_t MBTransQuantInterBVOP(const MBParam * pParam,
108 : suxen_drol 1.5 FRAMEINFO * frame,
109 : edgomez 1.6 MACROBLOCK * pMB,
110 : chl 1.9 int16_t data[6 * 64],
111 :     int16_t qcoeff[6 * 64]);
112 : edgomez 1.6
113 : chl 1.9 void MBTrans(const MBParam * pParam,
114 :     FRAMEINFO * frame,
115 :     MACROBLOCK * pMB,
116 :     const uint32_t x_pos,
117 :     const uint32_t y_pos,
118 :     int16_t data[6 * 64]);
119 :    
120 :     void MBfDCT(const MBParam * pParam,
121 :     FRAMEINFO * frame,
122 :     MACROBLOCK * pMB,
123 :     int16_t data[6 * 64]);
124 :    
125 :     uint8_t MBQuantInter( const MBParam * pParam,
126 :     const int iQuant,
127 :     int16_t data[6 * 64],
128 :     int16_t qcoeff[6 * 64]);
129 :    
130 :     void MBQuantDeQuantIntra(const MBParam * pParam,
131 :     FRAMEINFO * frame,
132 :     MACROBLOCK *pMB,
133 :     int16_t qcoeff[6 * 64],
134 :     int16_t data[6*64]);
135 :    
136 :     void MBQuantIntra( const MBParam * pParam,
137 :     FRAMEINFO * frame,
138 :     MACROBLOCK *pMB,
139 :     int16_t qcoeff[6 * 64],
140 :     int16_t data[6*64]);
141 : edgomez 1.6
142 : chl 1.9 void MBDeQuantIntra(const MBParam * pParam,
143 :     const int iQuant,
144 :     int16_t qcoeff[6 * 64],
145 :     int16_t data[6*64]);
146 :    
147 :     void MBDeQuantInter(const MBParam * pParam,
148 :     const int iQuant,
149 :     int16_t data[6 * 64],
150 :     int16_t qcoeff[6 * 64],
151 :     const uint8_t cbp);
152 :    
153 :    
154 :     void MBiDCT( int16_t data[6 * 64],
155 :     const uint8_t cbp);
156 :    
157 :    
158 :     void MBTransAdd( const MBParam * pParam,
159 :     FRAMEINFO * frame,
160 :     MACROBLOCK * pMB,
161 :     const uint32_t x_pos,
162 :     const uint32_t y_pos,
163 :     int16_t data[6 * 64],
164 :     const uint8_t cbp);
165 : edgomez 1.6
166 : h 1.2
167 :    
168 :     /** interlacing **/
169 :    
170 : edgomez 1.6 uint32_t MBDecideFieldDCT(int16_t data[6 * 64]); /* <- decide whether to use field-based DCT
171 :     for interlacing */
172 : h 1.2
173 : h 1.10.2.1 typedef uint32_t (MBFIELDTEST) (int16_t data[6 * 64]); /* function pointer for field test */
174 :     typedef MBFIELDTEST *MBFIELDTEST_PTR;
175 :    
176 :     /* global field test pointer for xvid.c */
177 :     extern MBFIELDTEST_PTR MBFieldTest;
178 :    
179 :     /* field test implementations */
180 :     MBFIELDTEST MBFieldTest_c;
181 :     MBFIELDTEST MBFieldTest_mmx;
182 :    
183 : edgomez 1.6 void MBFrameToField(int16_t data[6 * 64]); /* de-interlace vertical Y blocks */
184 : Isibaar 1.1
185 :    
186 :     /** MBCoding.c **/
187 :    
188 : chl 1.8 void MBSkip(Bitstream * bs); /* just the bitstream. Since MB is skipped, no info is needed */
189 :    
190 :    
191 : chl 1.10.2.3 void MBCoding(const FRAMEINFO * const frame, /* <-- the parameter for coding of the bitstream */
192 : edgomez 1.6
193 :     MACROBLOCK * pMB, /* <-- Info of the MB to be coded */
194 :    
195 :     int16_t qcoeff[6 * 64], /* <-- the quantized DCT coefficients */
196 :    
197 :     Bitstream * bs, /* <-> the bitstream */
198 :    
199 :     Statistics * pStat /* <-> statistical data collected for current frame */
200 :     );
201 : Isibaar 1.1
202 :     #endif

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4