128 |
int BitstreamReadHeaders(Bitstream * bs, |
int BitstreamReadHeaders(Bitstream * bs, |
129 |
DECODER * dec, |
DECODER * dec, |
130 |
uint32_t * rounding, |
uint32_t * rounding, |
|
uint32_t * reduced_resolution, |
|
131 |
uint32_t * quant, |
uint32_t * quant, |
132 |
uint32_t * fcode_forward, |
uint32_t * fcode_forward, |
133 |
uint32_t * fcode_backward, |
uint32_t * fcode_backward, |
136 |
|
|
137 |
|
|
138 |
void BitstreamWriteVolHeader(Bitstream * const bs, |
void BitstreamWriteVolHeader(Bitstream * const bs, |
139 |
const MBParam * pParam); |
const MBParam * pParam, |
140 |
|
const FRAMEINFO * const frame); |
141 |
|
|
142 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
143 |
const MBParam * pParam, |
const MBParam * pParam, |
144 |
const FRAMEINFO * const frame, |
const FRAMEINFO * const frame, |
145 |
int vop_coded, |
int vop_coded, |
146 |
int quant); |
unsigned int quant); |
147 |
|
|
148 |
void BitstreamWriteUserData(Bitstream * const bs, |
void BitstreamWriteUserData(Bitstream * const bs, |
149 |
uint8_t * data, |
const char *data, |
150 |
const int length); |
const unsigned int length); |
151 |
|
|
152 |
|
void |
153 |
|
BitstreamWriteEndOfSequence(Bitstream * const bs); |
154 |
|
|
155 |
|
void |
156 |
|
BitstreamWriteGroupOfVopHeader(Bitstream * const bs, |
157 |
|
const MBParam * pParam, |
158 |
|
uint32_t is_closed_gov); |
159 |
|
|
160 |
|
void write_video_packet_header(Bitstream * const bs, |
161 |
|
const MBParam * pParam, |
162 |
|
const FRAMEINFO * const frame, |
163 |
|
int mbnum); |
164 |
|
|
165 |
/* initialise bitstream structure */ |
/* initialise bitstream structure */ |
166 |
|
|
193 |
#endif |
#endif |
194 |
bs->bufb = tmp; |
bs->bufb = tmp; |
195 |
|
|
|
bs->buf = 0; |
|
196 |
bs->pos = bs->initpos = bitpos*8; |
bs->pos = bs->initpos = bitpos*8; |
197 |
|
/* preserve the intervening bytes */ |
198 |
|
if (bs->initpos > 0) |
199 |
|
bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos)); |
200 |
|
else |
201 |
|
bs->buf = 0; |
202 |
bs->length = length; |
bs->length = length; |
203 |
} |
} |
204 |
|
|
224 |
#endif |
#endif |
225 |
bs->bufb = tmp; |
bs->bufb = tmp; |
226 |
|
|
227 |
|
/* preserve the intervening bytes */ |
228 |
|
if (bs->initpos > 0) |
229 |
|
bs->buf = bs->bufa & (0xffffffff << (32 - bs->initpos)); |
230 |
|
else |
231 |
bs->buf = 0; |
bs->buf = 0; |
232 |
bs->pos = bs->initpos; |
bs->pos = bs->initpos; |
233 |
} |
} |