36 |
* support for EXTENDED API |
* support for EXTENDED API |
37 |
* - 22.08.2001 fixed bug in iDQtab |
* - 22.08.2001 fixed bug in iDQtab |
38 |
* |
* |
39 |
* $Id: encoder.h,v 1.15 2002-07-19 14:56:00 chl Exp $ |
* $Id: encoder.h,v 1.18.2.6 2002-12-04 12:31:18 suxen_drol Exp $ |
40 |
* |
* |
41 |
****************************************************************************/ |
****************************************************************************/ |
42 |
|
|
70 |
{ |
{ |
71 |
I_VOP = 0, |
I_VOP = 0, |
72 |
P_VOP = 1, |
P_VOP = 1, |
73 |
B_VOP = 2 |
B_VOP = 2, |
74 |
|
S_VOP = 3 |
75 |
} |
} |
76 |
VOP_TYPE; |
VOP_TYPE; |
77 |
|
|
97 |
int num_threads; |
int num_threads; |
98 |
#endif |
#endif |
99 |
|
|
|
#ifdef BFRAMES |
|
100 |
int max_bframes; |
int max_bframes; |
|
#endif |
|
101 |
|
|
102 |
/* rounding type; alternate 0-1 after each interframe */ |
/* rounding type; alternate 0-1 after each interframe */ |
103 |
/* 1 <= fixed_code <= 4 |
/* 1 <= fixed_code <= 4 |
108 |
uint32_t m_quant_type; |
uint32_t m_quant_type; |
109 |
uint32_t m_rounding_type; |
uint32_t m_rounding_type; |
110 |
uint32_t m_fcode; |
uint32_t m_fcode; |
111 |
|
uint32_t m_quarterpel; |
112 |
|
|
113 |
HINTINFO *hint; |
HINTINFO *hint; |
114 |
|
|
115 |
#ifdef BFRAMES |
int64_t m_stamp; |
|
uint32_t m_seconds; |
|
|
uint32_t m_ticks; |
|
|
#endif |
|
|
|
|
116 |
} |
} |
117 |
MBParam; |
MBParam; |
118 |
|
|
119 |
|
|
120 |
typedef struct |
typedef struct |
121 |
{ |
{ |
122 |
|
int iTextBits; |
123 |
|
int iMvSum; |
124 |
|
int iMvCount; |
125 |
|
int kblks; |
126 |
|
int mblks; |
127 |
|
int ublks; |
128 |
|
} |
129 |
|
Statistics; |
130 |
|
|
131 |
|
|
132 |
|
typedef struct |
133 |
|
{ |
134 |
uint32_t quant; |
uint32_t quant; |
135 |
uint32_t motion_flags; |
uint32_t motion_flags; |
136 |
uint32_t global_flags; |
uint32_t global_flags; |
137 |
|
|
138 |
VOP_TYPE coding_type; |
VOP_TYPE coding_type; |
139 |
uint32_t rounding_type; |
uint32_t rounding_type; |
140 |
|
uint32_t quarterpel; |
141 |
uint32_t fcode; |
uint32_t fcode; |
142 |
uint32_t bcode; |
uint32_t bcode; |
143 |
|
|
|
#ifdef BFRAMES |
|
144 |
uint32_t seconds; |
uint32_t seconds; |
145 |
uint32_t ticks; |
uint32_t ticks; |
146 |
#endif |
int64_t stamp; |
147 |
|
|
148 |
IMAGE image; |
IMAGE image; |
149 |
|
|
150 |
MACROBLOCK *mbs; |
MACROBLOCK *mbs; |
151 |
|
VECTOR GMC_MV; |
152 |
|
|
153 |
|
Statistics sStat; |
154 |
} |
} |
155 |
FRAMEINFO; |
FRAMEINFO; |
156 |
|
|
|
typedef struct |
|
|
{ |
|
|
int iTextBits; |
|
|
float fMvPrevSigma; |
|
|
int iMvSum; |
|
|
int iMvCount; |
|
|
int kblks; |
|
|
int mblks; |
|
|
int ublks; |
|
|
} |
|
|
Statistics; |
|
|
|
|
157 |
|
|
158 |
|
|
159 |
typedef struct |
typedef struct |
178 |
IMAGE vInterHV; |
IMAGE vInterHV; |
179 |
IMAGE vInterHVf; |
IMAGE vInterHVf; |
180 |
|
|
|
#ifdef BFRAMES |
|
181 |
/* constants */ |
/* constants */ |
182 |
int global; |
int global; |
183 |
int bquant_ratio; |
int bquant_ratio; |
184 |
|
int bquant_offset; |
185 |
|
int frame_drop_ratio; |
186 |
|
|
187 |
/* image queue */ |
/* image queue */ |
188 |
int queue_head; |
int queue_head; |
201 |
IMAGE f_refhv; |
IMAGE f_refhv; |
202 |
int bframenum_dx50bvop; |
int bframenum_dx50bvop; |
203 |
|
|
|
int last_pframe; |
|
|
int time_pp; |
|
204 |
int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ |
int m_framenum; /* debug frame num counter; unlike iFrameNum, does not reset at ivop */ |
|
#endif |
|
205 |
|
|
|
Statistics sStat; |
|
206 |
RateControl rate_control; |
RateControl rate_control; |
207 |
|
|
208 |
|
float fMvPrevSigma; |
209 |
} |
} |
210 |
Encoder; |
Encoder; |
211 |
|
|