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 |
|
|
27 |
|
// vop coding types |
28 |
|
// intra, prediction, backward, sprite, not_coded |
29 |
|
#define I_VOP 0 |
30 |
|
#define P_VOP 1 |
31 |
|
#define B_VOP 2 |
32 |
|
#define S_VOP 3 |
33 |
|
#define N_VOP 4 |
34 |
|
|
35 |
|
/* convert mpeg-4 coding type i/p/b/s_VOP to XVID_TYPE_xxx */ |
36 |
|
static __inline int |
37 |
|
coding2type(int coding_type) |
38 |
|
{ |
39 |
|
return coding_type + 1; |
40 |
|
} |
41 |
|
|
42 |
|
/* convert XVID_TYPE_xxx to bitstream coding type i/p/b/s_VOP */ |
43 |
|
static __inline int |
44 |
|
type2coding(int xvid_type) |
45 |
|
{ |
46 |
|
return xvid_type - 1; |
47 |
|
} |
48 |
|
|
49 |
|
|
50 |
|
typedef struct |
51 |
|
{ |
52 |
|
int x; |
53 |
|
int y; |
54 |
|
} |
55 |
|
VECTOR; |
56 |
|
|
57 |
|
|
58 |
|
|
59 |
typedef struct |
typedef struct |
60 |
{ |
{ |
61 |
VECTOR duv[3]; |
VECTOR duv[3]; |
168 |
VECTOR b_qmvs[4]; |
VECTOR b_qmvs[4]; |
169 |
|
|
170 |
int mb_type; |
int mb_type; |
|
int dbquant; |
|
171 |
|
|
172 |
// stuff for block based ME (needed for Qpel ME) |
// stuff for block based ME (needed for Qpel ME) |
173 |
// backup of last integer ME vectors/sad |
// backup of last integer ME vectors/sad |