[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.17, Sat Feb 15 15:22:19 2003 UTC revision 1.18, Sat Mar 22 14:04:48 2003 UTC
# Line 18  Line 18 
18  #include "../encoder.h"  #include "../encoder.h"
19  #include "../bitstream/bitstream.h"  #include "../bitstream/bitstream.h"
20    
   
   
21  /** MotionEstimation **/  /** MotionEstimation **/
22    
23  bool MotionEstimation(MBParam * const pParam,  bool MotionEstimation(MBParam * const pParam,
# Line 30  Line 28 
28                                            const IMAGE * const pRefHV,                                            const IMAGE * const pRefHV,
29                                            const uint32_t iLimit);                                            const uint32_t iLimit);
30    
   
 bool SMP_MotionEstimation(MBParam * const pParam,  
                                           FRAMEINFO * const current,  
                                           FRAMEINFO * const reference,  
                                           const IMAGE * const pRefH,  
                                           const IMAGE * const pRefV,  
                                           const IMAGE * const pRefHV,  
                                           const uint32_t iLimit);  
   
   
   
31  /** MBMotionCompensation **/  /** MBMotionCompensation **/
32    
33  void  void
# Line 64  Line 51 
51  /** MBTransQuant.c **/  /** MBTransQuant.c **/
52    
53    
54  void MBTransQuantIntra(const MBParam * pParam,  void MBTransQuantIntra(const MBParam * const pParam,
55                                             FRAMEINFO * frame,                                          FRAMEINFO * const frame,
56                                             MACROBLOCK * pMB,                                          MACROBLOCK * const pMB,
                                            const uint32_t x_pos,        /* <-- The x position of the MB to be searched */  
   
                                            const uint32_t y_pos,        /* <-- The y position of the MB to be searched */  
   
                                            int16_t data[6 * 64],        /* <-> the data of the MB to be coded */  
   
                                            int16_t qcoeff[6 * 64]       /* <-> the quantized DCT coefficients */  
         );  
   
   
 void MBTransQuantIntra2(const MBParam * pParam,  
                                            FRAMEINFO * frame,  
                                            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[6 * 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[6 * 64]);        /* <-> the quantized DCT coefficients */
61    
62                                             int16_t qcoeff[6 * 64]       /* <-> the quantized DCT coefficients */  uint8_t MBTransQuantInter(const MBParam * const pParam,
63          );                                                  FRAMEINFO * const frame,
64                                                    MACROBLOCK * const pMB,
   
 uint8_t MBTransQuantInter(const MBParam * pParam,  
                                                   FRAMEINFO * frame,  
                                                   MACROBLOCK * pMB,  
                                                   const uint32_t x_pos,  
                                                   const uint32_t y_pos,  
                                                   int16_t data[6 * 64],  
                                                   int16_t qcoeff[6 * 64]);  
   
   
 uint8_t MBTransQuantInter2(const MBParam * pParam,  
                                                   FRAMEINFO * frame,  
                                                   MACROBLOCK * pMB,  
65                                                    const uint32_t x_pos,                                                    const uint32_t x_pos,
66                                                    const uint32_t y_pos,                                                    const uint32_t y_pos,
67                                                    int16_t data[6 * 64],                                                    int16_t data[6 * 64],
# Line 113  Line 73 
73                                                    int16_t data[6 * 64],                                                    int16_t data[6 * 64],
74                                                    int16_t qcoeff[6 * 64]);                                                    int16_t qcoeff[6 * 64]);
75    
 void MBTrans(const MBParam * pParam,  
                                                   FRAMEINFO * frame,  
                                                   MACROBLOCK * pMB,  
                                                   const uint32_t x_pos,  
                                                   const uint32_t y_pos,  
                                                   int16_t data[6 * 64]);  
   
 void MBfDCT(const MBParam * pParam,  
                         FRAMEINFO * frame,  
                         MACROBLOCK * pMB,  
                         int16_t data[6 * 64]);  
   
 uint8_t MBQuantInter(    const MBParam * pParam,  
                                                  const int iQuant,  
                                                  int16_t data[6 * 64],  
                                                  int16_t qcoeff[6 * 64]);  
   
 void MBQuantDeQuantIntra(const MBParam * pParam,  
                                                  FRAMEINFO * frame,  
                                                  MACROBLOCK *pMB,  
                                                  int16_t qcoeff[6 * 64],  
                                                  int16_t data[6*64]);  
   
 void MBQuantIntra(               const MBParam * pParam,  
                                                  FRAMEINFO * frame,  
                                                  MACROBLOCK *pMB,  
                                                  int16_t qcoeff[6 * 64],  
                                                  int16_t data[6*64]);  
   
 void MBDeQuantIntra(const MBParam * pParam,  
                                         const int iQuant,  
                                         int16_t qcoeff[6 * 64],  
                                         int16_t data[6*64]);  
   
 void MBDeQuantInter(const MBParam * pParam,  
                                         const int iQuant,  
                                         int16_t data[6 * 64],  
                                         int16_t qcoeff[6 * 64],  
                                         const uint8_t cbp);  
   
   
 void MBiDCT(            int16_t data[6 * 64],  
                                         const uint8_t cbp);  
   
   
 void MBTransAdd(        const MBParam * pParam,  
                                         FRAMEINFO * frame,  
                                         MACROBLOCK * pMB,  
                                         const uint32_t x_pos,  
                                         const uint32_t y_pos,  
                                         int16_t data[6 * 64],  
                                         const uint8_t cbp);  
   
   
   
76  /** interlacing **/  /** interlacing **/
77    
78  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 188  Line 93 
93    
94  /** MBCoding.c **/  /** MBCoding.c **/
95    
 /* void MBSkip(Bitstream * bs);  just the bitstream. Since MB is skipped, no info is needed */  
   
   
96  void MBCoding(const FRAMEINFO * const frame,    /* <-- the parameter for coding of the bitstream */  void MBCoding(const FRAMEINFO * const frame,    /* <-- the parameter for coding of the bitstream */
   
97                            MACROBLOCK * pMB,     /* <-- Info of the MB to be coded */                            MACROBLOCK * pMB,     /* <-- Info of the MB to be coded */
   
98                            int16_t qcoeff[6 * 64],       /* <-- the quantized DCT coefficients */                            int16_t qcoeff[6 * 64],       /* <-- the quantized DCT coefficients */
   
99                            Bitstream * bs,       /* <-> the bitstream */                            Bitstream * bs,       /* <-> the bitstream */
100                            Statistics * pStat);    /* <-> statistical data collected for current frame */
                           Statistics * pStat    /* <-> statistical data collected for current frame */  
         );  
101    
102  #endif  #endif

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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