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

Diff of /xvidcore/src/global.h

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

revision 1.21.2.8, Sun Jul 13 09:58:26 2003 UTC revision 1.26, Mon Sep 13 07:38:09 2010 UTC
# Line 48  Line 48 
48  #define MODE_DIRECT_NONE_MV     4  #define MODE_DIRECT_NONE_MV     4
49  #define MODE_DIRECT_NO4V        5  #define MODE_DIRECT_NO4V        5
50    
   
51  /*  /*
52   * vop coding types   * vop coding types
53   * intra, prediction, backward, sprite, not_coded   * intra, prediction, backward, sprite, not_coded
# Line 73  Line 72 
72          return xvid_type - 1;          return xvid_type - 1;
73  }  }
74    
   
75  typedef struct  typedef struct
76  {  {
77          int x;          int x;
# Line 81  Line 79 
79  }  }
80  VECTOR;  VECTOR;
81    
   
   
82  typedef struct  typedef struct
83  {  {
84          VECTOR duv[3];          VECTOR duv[3];
# Line 132  Line 128 
128          int dxF, dyF, dxG, dyG;          int dxF, dyF, dxG, dyG;
129          int Fo, Go;          int Fo, Go;
130          int cFo, cGo;          int cFo, cGo;
131  }  } GMC_DATA;
 GMC_DATA;  
132    
133  typedef struct NEW_GMC_DATA NEW_GMC_DATA;  typedef struct _NEW_GMC_DATA
 struct NEW_GMC_DATA  
134  {  {
135    int num_wp;   //  0=none, 1=translation, 2,3 = warping     /*  0=none, 1=translation, 2,3 = warping
136                  //  a value of -1 means: "structure not initialized!"          *  a value of -1 means: "structure not initialized!" */
137    int accuracy;     // {0,1,2,3}  =>   {1/2,1/4,1/8,1/16} pel          int num_wp;
138    
139            /* {0,1,2,3}  =>   {1/2,1/4,1/8,1/16} pel */
140            int accuracy;
141    
142    int sW, sH;   // sprite size * 16          /* sprite size * 16 */
143    int dU[2], dV[2], Uo, Vo, Uco, Vco;   // gradient, calculated from warp points          int sW, sH;
144    
145    void (*predict_16x16)(const NEW_GMC_DATA * const This,          /* gradient, calculated from warp points */
146            int dU[2], dV[2], Uo, Vo, Uco, Vco;
147    
148            void (*predict_16x16)(const struct _NEW_GMC_DATA * const This,
149                          uint8_t *dst, const uint8_t *src,                          uint8_t *dst, const uint8_t *src,
150                          int dststride, int srcstride, int x, int y, int rounding);                          int dststride, int srcstride, int x, int y, int rounding);
151    void (*predict_8x8)  (const NEW_GMC_DATA * const This,          void (*predict_8x8)  (const struct _NEW_GMC_DATA * const This,
152                          uint8_t *uDst, const uint8_t *uSrc,                          uint8_t *uDst, const uint8_t *uSrc,
153                          uint8_t *vDst, const uint8_t *vSrc,                          uint8_t *vDst, const uint8_t *vSrc,
154                          int dststride, int srcstride, int x, int y, int rounding);                          int dststride, int srcstride, int x, int y, int rounding);
155    void (*get_average_mv)(const NEW_GMC_DATA * const Dsp, VECTOR * const mv,          void (*get_average_mv)(const struct _NEW_GMC_DATA * const Dsp, VECTOR * const mv,
156                           int x, int y, int qpel);                           int x, int y, int qpel);
157  };  } NEW_GMC_DATA;
158    
159  typedef struct  typedef struct
160  {  {
# Line 164  Line 164 
164  }  }
165  IMAGE;  IMAGE;
166    
   
167  typedef struct  typedef struct
168  {  {
169          uint32_t bufa;          uint32_t bufa;
# Line 178  Line 177 
177  }  }
178  Bitstream;  Bitstream;
179    
   
180  #define MBPRED_SIZE  15  #define MBPRED_SIZE  15
181    
   
182  typedef struct  typedef struct
183  {  {
184          /* decoder/encoder */          /* decoder/encoder */
# Line 200  Line 197 
197    
198          /* encoder specific */          /* encoder specific */
199    
         VECTOR mv16;  
200          VECTOR pmvs[4];          VECTOR pmvs[4];
201          VECTOR qmvs[4];                         /* mvs in quarter pixel resolution */          VECTOR qmvs[4];                         /* mvs in quarter pixel resolution */
202    
# Line 210  Line 206 
206          int dquant;          int dquant;
207          int cbp;          int cbp;
208    
209            /* lambda for these blocks */
210            int lambda[6];
211    
212          /* bframe stuff */          /* bframe stuff */
213    
214          VECTOR b_mvs[4];          VECTOR b_mvs[4];
215          VECTOR b_qmvs[4];          VECTOR b_qmvs[4];
216    
         int mb_type;  
   
         /*  
          * stuff for block based ME (needed for Qpel ME)  
          * backup of last integer ME vectors/sad  
          */  
   
217          VECTOR amv; /* average motion vectors from GMC  */          VECTOR amv; /* average motion vectors from GMC  */
218          int32_t mcsel;          int32_t mcsel;
219    
220            VECTOR  mvs_avg;      //CK average of field motion vectors
221    
222  /* This structure has become way to big! What to do? Split it up?   */  /* This structure has become way to big! What to do? Split it up?   */
223    
224  }  }

Legend:
Removed from v.1.21.2.8  
changed lines
  Added in v.1.26

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