[svn] / branches / dev-api-3 / xvidcore / src / motion / motion_est.h Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/motion/motion_est.h

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

revision 601, Thu Oct 17 13:50:23 2002 UTC revision 663, Wed Nov 20 15:29:07 2002 UTC
# Line 26  Line 26 
26   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
27   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
28   *   *
29   *  $Id: motion_est.h,v 1.1.2.6 2002-10-17 13:50:23 syskin Exp $   *  $Id: motion_est.h,v 1.1.2.8 2002-11-20 15:29:07 syskin Exp $
30   *   *
31   ***************************************************************************/   ***************************************************************************/
32    
# Line 44  Line 44 
44  /* INTER bias for INTER/INTRA decision; mpeg4 spec suggests 2*nb */  /* INTER bias for INTER/INTRA decision; mpeg4 spec suggests 2*nb */
45  #define MV16_INTER_BIAS 512  #define MV16_INTER_BIAS 512
46    
47    /* vector map (vlc delta size) smoother parameters ! float !*/
48    #define NEIGH_TEND_16X16        10.5
49    #define NEIGH_TEND_8X8          4.0
50    #define NEIGH_8X8_BIAS          30
51    
52  /* Parameters which control inter/inter4v decision */  /* Parameters which control inter/inter4v decision */
53  #define IMV16X16                        2  #define IMV16X16                        2
54    
 /* vector map (vlc delta size) smoother parameters ! float !*/  
 #define NEIGH_TEND_16X16        4.0  
 #define NEIGH_TEND_8X8          6.0  
   
55  static const int lambda_vec16[32] =  static const int lambda_vec16[32] =
56          {     0    ,(int)(1.00235 * NEIGH_TEND_16X16 + 0.5),          {     0    ,(int)(1.00235 * NEIGH_TEND_16X16 + 0.5),
57          (int)(1.15582*NEIGH_TEND_16X16 + 0.5), (int)(1.31976*NEIGH_TEND_16X16 + 0.5),          (int)(1.15582*NEIGH_TEND_16X16 + 0.5), (int)(1.31976*NEIGH_TEND_16X16 + 0.5),
# Line 106  Line 107 
107                  int max_dx, min_dx, max_dy, min_dy;                  int max_dx, min_dx, max_dy, min_dy;
108                  uint32_t rounding;                  uint32_t rounding;
109                  VECTOR predMV;                  VECTOR predMV;
                 VECTOR predQMV;  
110                  VECTOR *currentMV;                  VECTOR *currentMV;
111                  VECTOR *currentQMV;                  VECTOR *currentQMV;
112                  int32_t *iMinSAD;                  int32_t *iMinSAD;
# Line 114  Line 114 
114                  const uint8_t * RefH;                  const uint8_t * RefH;
115                  const uint8_t * RefV;                  const uint8_t * RefV;
116                  const uint8_t * RefHV;                  const uint8_t * RefHV;
117                  const uint8_t * RefQ;                  const uint8_t * RefCU;
118                    const uint8_t * RefCV;
119                    const uint8_t * CurU;
120                    const uint8_t * CurV;
121                    uint8_t * RefQ;
122                  const uint8_t * Cur;                  const uint8_t * Cur;
123                  uint32_t lambda16; //weights of motion vectors                  uint32_t lambda16;
124                  uint32_t lambda8;                  uint32_t lambda8;
125                  uint32_t iEdgedWidth;                  uint32_t iEdgedWidth;
126                  uint32_t iFcode;                  uint32_t iFcode;
127                  int * temp;                  int * temp;
128                    int qpel, qpel_precision;
129                    int chroma;
130  //fields for interpolate and direct mode  //fields for interpolate and direct mode
131                  const uint8_t *bRef;                  const uint8_t *bRef;
132                  const uint8_t *bRefH;                  const uint8_t *bRefH;
# Line 204  Line 210 
210                                   const uint32_t iLimit);                                   const uint32_t iLimit);
211    
212  static void  static void
213  SearchP(const uint8_t * const pRef,  SearchP(const IMAGE * const pRef,
214                  const uint8_t * const pRefH,                  const uint8_t * const pRefH,
215                  const uint8_t * const pRefV,                  const uint8_t * const pRefV,
216                  const uint8_t * const pRefHV,                  const uint8_t * const pRefHV,
                 const uint8_t * const pRefQ,  
217                  const IMAGE * const pCur,                  const IMAGE * const pCur,
218                  const int x,                  const int x,
219                  const int y,                  const int y,

Legend:
Removed from v.601  
changed lines
  Added in v.663

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