[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.1, Fri Mar 8 02:44:58 2002 UTC revision 1.17.2.2, Sun Mar 30 13:16:42 2003 UTC
# Line 2  Line 2 
2   *   *
3   *  Modifications:   *  Modifications:
4   *   *
5     *  29.03.2002 removed MBFieldToFrame - no longer used (transfers instead)
6     *  26.03.2002 interlacing support
7   *  02.12.2001 motion estimation/compensation split   *  02.12.2001 motion estimation/compensation split
8   *  16.11.2001 const/uint32_t changes to MBMotionEstComp()   *  16.11.2001 const/uint32_t changes to MBMotionEstComp()
9   *  26.08.2001 added inter4v_mode parameter to MBMotionEstComp()   *  26.08.2001 added inter4v_mode parameter to MBMotionEstComp()
# Line 16  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(  bool MotionEstimation(MBParam * const pParam,
24                          MACROBLOCK * const pMBs,                                          FRAMEINFO * const current,
25                          MBParam * const pParam,                                          FRAMEINFO * const reference,
                     const IMAGE * const pRef,  
26                          const IMAGE * const pRefH,                          const IMAGE * const pRefH,
27                      const IMAGE * const pRefV,                      const IMAGE * const pRefV,
28                          const IMAGE * const pRefHV,                          const IMAGE * const pRefHV,
                     IMAGE * const pCurrent,  
29                          const uint32_t iLimit);                          const uint32_t iLimit);
30    
   
31  /** MBMotionCompensation **/  /** MBMotionCompensation **/
32  void MBMotionCompensation(  
33                          MACROBLOCK * const pMB,  void
34                      const uint32_t j,  MBMotionCompensation(MACROBLOCK * const mb,
35                          const uint32_t i,                          const uint32_t i,
36                      const IMAGE * const pRef,                                          const uint32_t j,
37                          const IMAGE * const pRefH,                                          const IMAGE * const ref,
38                      const IMAGE * const pRefV,                                          const IMAGE * const refh,
39                          const IMAGE * const pRefHV,                                          const IMAGE * const refv,
40                      IMAGE * const pCurrent,                                          const IMAGE * const refhv,
41                      int16_t dct_codes[][64],                                          const IMAGE * const refGMC,
42                                            IMAGE * const cur,
43                                            int16_t * dct_codes,
44                          const uint32_t width,                          const uint32_t width,
45                          const uint32_t height,                          const uint32_t height,
46                          const uint32_t edged_width,                          const uint32_t edged_width,
47                          const uint32_t rounding);                                          const int32_t quarterpel,
48                                            const int reduced_resolution,
49                                            const int32_t rounding);
50    
51  /** MBTransQuant.c **/  /** MBTransQuant.c **/
52    
53    
54  void MBTransQuantIntra(const MBParam *pParam,  void MBTransQuantIntra(const MBParam * const pParam,
55                                            FRAMEINFO * const frame,
56                                            MACROBLOCK * const 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[][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[][64],     /* <-> the quantized DCT coefficients */                                          int16_t qcoeff[6 * 64]);        /* <-> the quantized DCT coefficients */
                        IMAGE * const pCurrent         /* <-> the reconstructed image ( function will update one  
                                                                             MB in it with data from data[] ) */  
 );  
61    
62    uint8_t MBTransQuantInter(const MBParam * const pParam,
63                                                    FRAMEINFO * const frame,
64                                                    MACROBLOCK * const pMB,
65                                                    const uint32_t x_pos,
66                                                    const uint32_t y_pos,
67                                                    int16_t data[6 * 64],
68                                                    int16_t qcoeff[6 * 64]);
69    
70    uint8_t MBTransQuantInterBVOP(const MBParam * pParam,
71                                                      FRAMEINFO * frame,
72                                                      MACROBLOCK * pMB,
73                                                      const uint32_t x_pos,
74                                                      const uint32_t y_pos,
75                                                      int16_t data[6 * 64],
76                                                      int16_t qcoeff[6 * 64]);
77    
78    
79    typedef uint32_t (MBFIELDTEST) (int16_t data[6 * 64]);  /* function pointer for field test */
80    typedef MBFIELDTEST *MBFIELDTEST_PTR;
81    
82    /* global field test pointer for xvid.c */
83    extern MBFIELDTEST_PTR MBFieldTest;
84    
85    /* field test implementations */
86    MBFIELDTEST MBFieldTest_c;
87    MBFIELDTEST MBFieldTest_mmx;
88    
89  uint8_t MBTransQuantInter(const MBParam *pParam, /* <-- the parameter for DCT transformation  void MBFrameToField(int16_t data[6 * 64]);      /* de-interlace vertical Y blocks */
                                                                                                    and Quantization */  
                            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[][64],   /* <-> the data of the MB to be coded */  
                            int16_t qcoeff[][64], /* <-> the quantized DCT coefficients */  
                            IMAGE * const pCurrent                /* <-> the reconstructed image ( function will  
                                                                     update one MB in it with data from data[] ) */  
 );  
90    
91    
92  /** MBCoding.c **/  /** MBCoding.c **/
93    
94  void MBCoding(const MBParam *pParam,             /* <-- the parameter for coding of the bitstream */  void MBCoding(const FRAMEINFO * const frame,    /* <-- the parameter for coding of the bitstream */
95                MACROBLOCK *pMB,           /* <-- Info of the MB to be coded */                MACROBLOCK *pMB,           /* <-- Info of the MB to be coded */
96                int16_t qcoeff[][64],              /* <-- the quantized DCT coefficients */                          int16_t qcoeff[6 * 64], /* <-- the quantized DCT coefficients */
97                Bitstream * bs,                    /* <-> the bitstream */                Bitstream * bs,                    /* <-> the bitstream */
98                Statistics * pStat                 /* <-> statistical data collected for current frame */                          Statistics * pStat);    /* <-> statistical data collected for current frame */
     );  
99    
100  #endif  #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.17.2.2

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