[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.13.2.3, Tue Nov 19 13:03:57 2002 UTC revision 1.13.2.7, Sat Jan 4 06:14:32 2003 UTC
# Line 11  Line 11 
11  #define MODE_INTER4V    2  #define MODE_INTER4V    2
12  #define MODE_INTRA              3  #define MODE_INTRA              3
13  #define MODE_INTRA_Q    4  #define MODE_INTRA_Q    4
 #define MODE_STUFFING   7  
14  #define MODE_NOT_CODED  16  #define MODE_NOT_CODED  16
15    #define MODE_NOT_CODED_GMC      17
16    
17  /* --- bframe specific --- */  /* --- bframe specific --- */
18    
# Line 23  Line 23 
23  #define MODE_DIRECT_NONE_MV     4  #define MODE_DIRECT_NONE_MV     4
24  #define MODE_DIRECT_NO4V        5  #define MODE_DIRECT_NO4V        5
25    
26    typedef struct
27    {
28            uint8_t *y;
29            uint8_t *u;
30            uint8_t *v;
31    }
32    IMAGE;
33    
34    
35  typedef struct  typedef struct
36  {  {
# Line 123  Line 131 
131  #define MAX(X, Y) ((X)>(Y)?(X):(Y))  #define MAX(X, Y) ((X)>(Y)?(X):(Y))
132  #define ABS(X)    (((X)>0)?(X):-(X))  #define ABS(X)    (((X)>0)?(X):-(X))
133  #define SIGN(X)   (((X)>0)?1:-1)  #define SIGN(X)   (((X)>0)?1:-1)
134    #define CLIP(X,AMIN,AMAX)   (((X)<(AMIN)) ? (AMIN) : ((X)>(AMAX)) ? (AMAX) : (X))
135    #define DIV_DIV(a,b)    (((a)>0) ? ((a)+((b)>>1))/(b) : ((a)-((b)>>1))/(b))
136    
137    
138  #endif                                                  /* _GLOBAL_H_ */  #endif                                                  /* _GLOBAL_H_ */

Legend:
Removed from v.1.13.2.3  
changed lines
  Added in v.1.13.2.7

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