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

Diff of /xvidcore/src/motion/motion.h

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

revision 1.20.2.1, Thu Mar 27 17:09:59 2003 UTC revision 1.20.2.4, Sat Jun 28 15:51:18 2003 UTC
# Line 36  Line 36 
36  #include "../portab.h"  #include "../portab.h"
37  #include "../global.h"  #include "../global.h"
38    
39  // fast ((A)/2)*2  /* fast ((A)/2)*2 */
40  #define EVEN(A)         (((A)<0?(A)+1:(A)) & ~1)  #define EVEN(A)         (((A)<0?(A)+1:(A)) & ~1)
41    
42  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )  #define MVzero(A) ( ((A).x)==(0) && ((A).y)==(0) )
# Line 87  Line 87 
87    
88  void MotionEstimationBVOP(MBParam * const pParam,  void MotionEstimationBVOP(MBParam * const pParam,
89                                                  FRAMEINFO * const frame,                                                  FRAMEINFO * const frame,
90                                                  // forward (past) reference                                                  /* forward (past) reference */
91                                                  const int32_t time_bp,                                                  const int32_t time_bp,
92                                                  const int32_t time_pp,                                                  const int32_t time_pp,
93                                                  const MACROBLOCK * const f_mbs,                                                  const MACROBLOCK * const f_mbs,
# Line 95  Line 95 
95                                                  const IMAGE * const f_refH,                                                  const IMAGE * const f_refH,
96                                                  const IMAGE * const f_refV,                                                  const IMAGE * const f_refV,
97                                                  const IMAGE * const f_refHV,                                                  const IMAGE * const f_refHV,
98                                                  // backward (future) reference                                                  /* backward (future) reference */
99                                                  const FRAMEINFO * const b_reference,                                                  const FRAMEINFO * const b_reference,
100                                                  const IMAGE * const b_ref,                                                  const IMAGE * const b_ref,
101                                                  const IMAGE * const b_refH,                                                  const IMAGE * const b_refH,
# Line 117  Line 117 
117                                                          const IMAGE * const b_refhv,                                                          const IMAGE * const b_refhv,
118                                                          int16_t * dct_codes);                                                          int16_t * dct_codes);
119    
   
 /* GMC stuff. Maybe better put it into a separate file */  
   
 void  
 generate_GMCparameters( const int num_wp,                               // [input]: number of warppoints  
                                                 const int res,                                  // [input]: resolution  
                                                 const WARPPOINTS *const warp,   // [input]: warp points  
                                                 const int width, const int height,      // [input]: without edges!  
                                                 GMC_DATA *const gmc);           // [output] precalculated parameters  
   
 void  
 generate_GMCimage(      const GMC_DATA *const gmc_data,         // [input] precalculated data  
                                         const IMAGE *const pRef,                        // [input]  
                                         const int mb_width,  
                                         const int mb_height,  
                                         const int stride,  
                                         const int stride2,  
                                         const int fcode,                                        // [input] some parameters...  
                                         const int32_t quarterpel,                       // [input] for rounding avgMV  
                                         const int reduced_resolution,           // [input] ignored  
                                         const int32_t rounding,                 // [input] for rounding image data  
                                         MACROBLOCK *const pMBs,         // [output] average motion vectors  
                                         IMAGE *const pGMC);                     // [output] full warped image  
   
 VECTOR generate_GMCimageMB(     const GMC_DATA *const gmc_data,         /* [input] all precalc data */  
                                                         const IMAGE *const pRef,                        // [input]  
                                                         const int mi, const int mj,             /* [input] MB position */  
                                                         const int stride,                                       /* [input] Lumi stride */  
                                                         const int stride2,                                      /* [input] chroma stride */  
                                                         const int quarterpel,                           /* [input] for rounding of AvgMV */  
                                                         const int rounding,  
                                                         IMAGE *const pGMC);                                     /* [outut] generate image */  
   
120  int  int
121  MEanalysis(     const IMAGE * const pRef,  MEanalysis(     const IMAGE * const pRef,
122                          const FRAMEINFO * const Current,                          const FRAMEINFO * const Current,

Legend:
Removed from v.1.20.2.1  
changed lines
  Added in v.1.20.2.4

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