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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5, Thu Apr 25 06:55:00 2002 UTC revision 1.9, Fri Aug 9 19:58:42 2002 UTC
# Line 22  Line 22 
22    
23  /** MotionEstimation **/  /** MotionEstimation **/
24    
25  bool MotionEstimation(  bool MotionEstimation(MBParam * const pParam,
         MBParam * const pParam,  
26          FRAMEINFO * const current,          FRAMEINFO * const current,
27          FRAMEINFO * const reference,          FRAMEINFO * const reference,
28          const IMAGE * const pRefH,          const IMAGE * const pRefH,
# Line 32  Line 31 
31          const uint32_t iLimit);          const uint32_t iLimit);
32    
33    
34    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  /** MBMotionCompensation **/  /** MBMotionCompensation **/
45  void MBMotionCompensation(  void MBMotionCompensation(MACROBLOCK * const pMB,
         MACROBLOCK * const pMB,  
46          const uint32_t j,          const uint32_t j,
47          const uint32_t i,          const uint32_t i,
48          const IMAGE * const pRef,          const IMAGE * const pRef,
# Line 56  Line 64 
64                             FRAMEINFO * frame,                             FRAMEINFO * frame,
65                         MACROBLOCK * pMB,                         MACROBLOCK * pMB,
66                         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 */
67    
68                         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 */
69    
70                         int16_t data[6*64],       /* <-> the data of the MB to be coded */                         int16_t data[6*64],       /* <-> the data of the MB to be coded */
71    
72                         int16_t qcoeff[6*64]     /* <-> the quantized DCT coefficients */                         int16_t qcoeff[6*64]     /* <-> the quantized DCT coefficients */
73  );  );
74    
75    
76  uint8_t MBTransQuantInter(const MBParam *pParam, /* <-- the parameter for DCT transformation and Quantization */  void MBTransQuantIntra2(const MBParam * pParam,
77                                                    FRAMEINFO * frame,                                                    FRAMEINFO * frame,
78                            MACROBLOCK * pMB,                            MACROBLOCK * pMB,
79                            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 */
80    
81                            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 */
82    
83                            int16_t data[6*64],    /* <-> the data of the MB to be coded */                            int16_t data[6*64],    /* <-> the data of the MB to be coded */
84    
85                            int16_t qcoeff[6*64]  /* <-> the quantized DCT coefficients */                            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                                                      FRAMEINFO * frame,
108                                                      MACROBLOCK * pMB,
109                                                      const uint32_t x_pos,
110                                                      const uint32_t y_pos,
111                                                      int16_t data[6 * 64],
112                                                      int16_t qcoeff[6 * 64]);
113    
114    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    
143    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    
167    
168    
169  /** interlacing **/  /** interlacing **/
170    
171  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
# Line 82  Line 176 
176    
177  /** MBCoding.c **/  /** MBCoding.c **/
178    
179    void MBSkip(Bitstream * bs);  /* just the bitstream. Since MB is skipped, no info is needed */
180    
181    
182  void MBCoding(const FRAMEINFO *frame, /* <-- the parameter for coding of the bitstream */  void MBCoding(const FRAMEINFO *frame, /* <-- the parameter for coding of the bitstream */
183    
184                MACROBLOCK *pMB,       /* <-- Info of the MB to be coded */                MACROBLOCK *pMB,       /* <-- Info of the MB to be coded */
185    
186                int16_t qcoeff[6*64],  /* <-- the quantized DCT coefficients */                int16_t qcoeff[6*64],  /* <-- the quantized DCT coefficients */
187    
188                Bitstream * bs,        /* <-> the bitstream */                Bitstream * bs,        /* <-> the bitstream */
189    
190                Statistics * pStat     /* <-> statistical data collected for current frame */                Statistics * pStat     /* <-> statistical data collected for current frame */
191      );      );
192    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9

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