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

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