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

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

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

revision 1052, Mon Jun 2 11:47:30 2003 UTC revision 1053, Mon Jun 9 01:25:19 2003 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.3.2.7 2003-05-14 20:23:02 edgomez Exp $   *  $Id: motion_est.h,v 1.3.2.8 2003-06-09 01:22:18 edgomez Exp $
30   *   *
31   ***************************************************************************/   ***************************************************************************/
32    
# Line 39  Line 39 
39    
40  /* hard coded motion search parameters for motion_est and smp_motion_est */  /* hard coded motion search parameters for motion_est and smp_motion_est */
41    
42  // very large value  /* very large value */
43  #define MV_MAX_ERROR    (4096 * 256)  #define MV_MAX_ERROR    (4096 * 256)
44    
45  /* INTER bias for INTER/INTRA decision; mpeg4 spec suggests 2*nb */  /* INTER bias for INTER/INTRA decision; mpeg4 spec suggests 2*nb */
# Line 91  Line 91 
91          (int)(21.2656*NEIGH_TEND_8X8 + 0.5), (int)(24.8580*NEIGH_TEND_8X8 + 0.5),          (int)(21.2656*NEIGH_TEND_8X8 + 0.5), (int)(24.8580*NEIGH_TEND_8X8 + 0.5),
92          (int)(29.6436*NEIGH_TEND_8X8 + 0.5), (int)(36.4949*NEIGH_TEND_8X8 + 0.5)        };          (int)(29.6436*NEIGH_TEND_8X8 + 0.5), (int)(36.4949*NEIGH_TEND_8X8 + 0.5)        };
93    
94  // mv.length table  /* mv.length table */
95  static const int mvtab[64] = {  static const int mvtab[64] = {
96                  1, 2, 3, 4, 6, 7, 7, 7,                  1, 2, 3, 4, 6, 7, 7, 7,
97                  9, 9, 9, 10, 10, 10, 10, 10,                  9, 9, 9, 10, 10, 10, 10, 10,
# Line 109  Line 109 
109    
110  typedef struct  typedef struct
111  {  {
112  // general fields          /* general fields */
113          int max_dx, min_dx, max_dy, min_dy;          int max_dx, min_dx, max_dy, min_dy;
114          uint32_t rounding;          uint32_t rounding;
115          VECTOR predMV;          VECTOR predMV;
116          VECTOR * currentMV;          VECTOR * currentMV;
117          VECTOR * currentQMV;          VECTOR * currentQMV;
118          int32_t * iMinSAD;          int32_t * iMinSAD;
119          const uint8_t * RefP[6]; // N, V, H, HV, cU, cV          const uint8_t * RefP[6]; /* N, V, H, HV, cU, cV */
120          const uint8_t * CurU;          const uint8_t * CurU;
121          const uint8_t * CurV;          const uint8_t * CurV;
122          uint8_t * RefQ;          uint8_t * RefQ;
# Line 129  Line 129 
129          int qpel, qpel_precision;          int qpel, qpel_precision;
130          int chroma;          int chroma;
131          int rrv;          int rrv;
132  //fields for interpolate and direct modes  
133          const uint8_t * b_RefP[6]; // N, V, H, HV, cU, cV          /* fields for interpolate and direct modes */
134            const uint8_t * b_RefP[6]; /* N, V, H, HV, cU, cV */
135          VECTOR bpredMV;          VECTOR bpredMV;
136          uint32_t bFcode;          uint32_t bFcode;
137  // fields for direct mode  
138            /* fields for direct mode */
139          VECTOR directmvF[4];          VECTOR directmvF[4];
140          VECTOR directmvB[4];          VECTOR directmvB[4];
141          const VECTOR * referencemv;          const VECTOR * referencemv;
142  // BITS/R-D stuff  
143            /* BITS/R-D stuff */
144          int16_t * dctSpace;          int16_t * dctSpace;
145          uint32_t iQuant;          uint32_t iQuant;
146          uint32_t quant_type;          uint32_t quant_type;

Legend:
Removed from v.1052  
changed lines
  Added in v.1053

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