[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.4, Thu Apr 10 13:05:54 2003 UTC revision 1.21.2.5, Mon Jun 9 01:16:46 2003 UTC
# Line 24  Line 24 
24  #define MODE_DIRECT_NO4V        5  #define MODE_DIRECT_NO4V        5
25    
26    
27  // vop coding types  /*
28  // intra, prediction, backward, sprite, not_coded   * vop coding types
29     * intra, prediction, backward, sprite, not_coded
30     */
31  #define I_VOP   0  #define I_VOP   0
32  #define P_VOP   1  #define P_VOP   1
33  #define B_VOP   2  #define B_VOP   2
# Line 71  Line 73 
73    
74  typedef struct  typedef struct
75  {  {
76          int num_wp;             //      [input]: 0=none, 1=translation, 2,3 = warping          int num_wp;             /* [input]: 0=none, 1=translation, 2,3 = warping */
77                                                          //  a value of -1 means: "structure not initialized!"                                                          /* a value of -1 means: "structure not initialized!" */
78          int s;                                  //  [input]: calc is done with 1/s pel resolution          int s;                                  /* [input]: calc is done with 1/s pel resolution */
79    
80          int W;          int W;
81          int H;          int H;
# Line 137  Line 139 
139    
140  typedef struct  typedef struct
141  {  {
142          // decoder/encoder          /* decoder/encoder */
143          VECTOR mvs[4];          VECTOR mvs[4];
144    
145          short int pred_values[6][MBPRED_SIZE];          short int pred_values[6][MBPRED_SIZE];
146          int acpred_directions[6];          int acpred_directions[6];
147    
148          int mode;          int mode;
149          int quant;                                      // absolute quant          int quant;                                      /* absolute quant */
150    
151          int field_dct;          int field_dct;
152          int field_pred;          int field_pred;
153          int field_for_top;          int field_for_top;
154          int field_for_bot;          int field_for_bot;
155    
156          // encoder specific          /* encoder specific */
157    
158          VECTOR mv16;          VECTOR mv16;
159          VECTOR pmvs[4];          VECTOR pmvs[4];
160          VECTOR qmvs[4];                         // mvs in quarter pixel resolution          VECTOR qmvs[4];                         /* mvs in quarter pixel resolution */
161    
162          int32_t sad8[4];                        // SAD values for inter4v-VECTORs          int32_t sad8[4];                        /* SAD values for inter4v-VECTORs */
163          int32_t sad16;                          // SAD value for inter-VECTOR          int32_t sad16;                          /* SAD value for inter-VECTOR */
164    
165          int dquant;          int dquant;
166          int cbp;          int cbp;
167    
168          // bframe stuff          /* bframe stuff */
169    
170          VECTOR b_mvs[4];          VECTOR b_mvs[4];
171          VECTOR b_qmvs[4];          VECTOR b_qmvs[4];
172    
173          int mb_type;          int mb_type;
174    
175          // stuff for block based ME (needed for Qpel ME)          /*
176          // backup of last integer ME vectors/sad           * stuff for block based ME (needed for Qpel ME)
177             * backup of last integer ME vectors/sad
178             */
179    
180          VECTOR amv; // average motion vectors from GMC          VECTOR amv; /* average motion vectors from GMC  */
181          int32_t mcsel;          int32_t mcsel;
182    
183  /* 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?   */
# Line 203  Line 207 
207                  return quant - 6;                  return quant - 6;
208  }  }
209    
210  // useful macros  /* useful macros */
211    
212  #define MIN(X, Y) ((X)<(Y)?(X):(Y))  #define MIN(X, Y) ((X)<(Y)?(X):(Y))
213  #define MAX(X, Y) ((X)>(Y)?(X):(Y))  #define MAX(X, Y) ((X)>(Y)?(X):(Y))

Legend:
Removed from v.1.21.2.4  
changed lines
  Added in v.1.21.2.5

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