ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvs/xvidcore/src/global.h
(Generate patch)

Comparing xvidcore/src/global.h (file contents):
Revision 1.4 by h, Fri Apr 5 14:40:36 2002 UTC vs.
Revision 1.5 by suxen_drol, Sat Apr 13 16:30:01 2002 UTC

# Line 4 | Line 4
4   #include "xvid.h"
5   #include "portab.h"
6  
7 < /* --- macroblock stuff --- */
7 > /* --- macroblock modes --- */
8  
9   #define MODE_INTER              0
10   #define MODE_INTER_Q    1
# Line 14 | Line 14
14   #define MODE_STUFFING   7
15   #define MODE_NOT_CODED  16
16  
17 + /* --- bframe specific --- */
18 +
19 + #define MODE_DIRECT                     0
20 + #define MODE_INTERPOLATE        1
21 + #define MODE_BACKWARD           2
22 + #define MODE_FORWARD            3
23 +
24 +
25   typedef struct
26   {
27          uint32_t bufa;
# Line 54 | Line 62 | typedef struct
62          int dquant;
63          int cbp;
64  
65 +        // bframe stuff
66 +
67 +        VECTOR b_mvs[4];
68 +        VECTOR b_pmvs[4];
69 +
70   } MACROBLOCK;
71  
72   static __inline int8_t get_dc_scaler(int32_t quant, uint32_t lum)
# Line 88 | Line 101 | static __inline int8_t get_dc_scaler(int
101      return dc_scaler;
102   }
103  
104 +
105 + // useful macros
106 +
107 + #define MIN(X, Y) ((X)<(Y)?(X):(Y))
108 + #define MAX(X, Y) ((X)>(Y)?(X):(Y))
109 + #define ABS(X)    (((X)>0)?(X):-(X))
110 + #define SIGN(X)   (((X)>0)?1:-1)
111 +
112 +
113   #endif /* _GLOBAL_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines