1110 |
{ |
{ |
1111 |
int vol_ver_id=1; |
int vol_ver_id=1; |
1112 |
|
|
1113 |
if ( (pParam->m_quarterpel) || (frame->global_flags & XVID_GMC) ) |
if ( pParam->m_quarterpel || (frame->global_flags & XVID_GMC) || |
1114 |
|
(pParam->global & XVID_GLOBAL_REDUCED)) |
1115 |
vol_ver_id = 2; |
vol_ver_id = 2; |
1116 |
|
|
1117 |
// video object_start_code & vo_id |
// video object_start_code & vo_id |
1223 |
if (vol_ver_id != 1) |
if (vol_ver_id != 1) |
1224 |
{ |
{ |
1225 |
BitstreamPutBit(bs, 0); // newpred_enable |
BitstreamPutBit(bs, 0); // newpred_enable |
1226 |
BitstreamPutBit(bs, 0); // reduced_resolution_vop_enabled |
|
1227 |
|
BitstreamPutBit(bs, (pParam->global & XVID_GLOBAL_REDUCED)?1:0); |
1228 |
|
/* reduced_resolution_vop_enabled */ |
1229 |
} |
} |
1230 |
|
|
1231 |
BitstreamPutBit(bs, 0); // scalability |
BitstreamPutBit(bs, 0); // scalability |
1237 |
write vop header |
write vop header |
1238 |
*/ |
*/ |
1239 |
void |
void |
1240 |
BitstreamWriteVopHeader(Bitstream * const bs, |
BitstreamWriteVopHeader( |
1241 |
|
Bitstream * const bs, |
1242 |
const MBParam * pParam, |
const MBParam * pParam, |
1243 |
const FRAMEINFO * const frame, |
const FRAMEINFO * const frame, |
1244 |
int vop_coded) |
int vop_coded) |
1277 |
if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) ) |
if ( (frame->coding_type == P_VOP) || (frame->coding_type == S_VOP) ) |
1278 |
BitstreamPutBits(bs, frame->rounding_type, 1); |
BitstreamPutBits(bs, frame->rounding_type, 1); |
1279 |
|
|
1280 |
|
if ((pParam->global & XVID_GLOBAL_REDUCED)) |
1281 |
|
BitstreamPutBit(bs, (frame->global_flags & XVID_REDUCED)?1:0); |
1282 |
|
|
1283 |
BitstreamPutBits(bs, 0, 3); // intra_dc_vlc_threshold |
BitstreamPutBits(bs, 0, 3); // intra_dc_vlc_threshold |
1284 |
|
|
1285 |
if (frame->global_flags & XVID_INTERLACING) { |
if (frame->global_flags & XVID_INTERLACING) { |