[cvs] / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28.2.17, Sat Jan 11 20:37:13 2003 UTC revision 1.28.2.18, Mon Jan 13 14:33:24 2003 UTC
# Line 1131  Line 1131 
1131                  profile = 0xf3; /* advanced simple profile/level 2 */                  profile = 0xf3; /* advanced simple profile/level 2 */
1132    
1133          // visual_object_sequence_start_code          // visual_object_sequence_start_code
1134          BitstreamPad(bs);  //      BitstreamPad(bs);
1135    /* no padding here, anymore. You have to make sure that you are
1136       byte aligned, and that always 1-8 padding bits have been written */
1137    
1138          BitstreamPutBits(bs, VISOBJSEQ_START_CODE, 32);          BitstreamPutBits(bs, VISOBJSEQ_START_CODE, 32);
1139          BitstreamPutBits(bs, profile, 8);          BitstreamPutBits(bs, profile, 8);
1140    
1141          // visual_object_start_code          // visual_object_start_code
1142          BitstreamPad(bs);          BitstreamPadAlways(bs);
1143          BitstreamPutBits(bs, VISOBJ_START_CODE, 32);          BitstreamPutBits(bs, VISOBJ_START_CODE, 32);
1144          BitstreamPutBits(bs, 0, 1);             // is_visual_object_identifier          BitstreamPutBits(bs, 0, 1);             // is_visual_object_identifier
1145          BitstreamPutBits(bs, VISOBJ_TYPE_VIDEO, 4);             // visual_object_type          BitstreamPutBits(bs, VISOBJ_TYPE_VIDEO, 4);             // visual_object_type
1146    
1147          // video object_start_code & vo_id          // video object_start_code & vo_id
1148          BitstreamPad(bs);          BitstreamPadAlways(bs);
1149          BitstreamPutBits(bs, VIDOBJ_START_CODE|(vo_id&0x5), 32);          BitstreamPutBits(bs, VIDOBJ_START_CODE|(vo_id&0x5), 32);
1150    
1151          // video_object_layer_start_code & vol_id          // video_object_layer_start_code & vol_id
1152            BitstreamPadAlways(bs);
1153          BitstreamPutBits(bs, VIDOBJLAY_START_CODE|(vol_id&0x4), 32);          BitstreamPutBits(bs, VIDOBJLAY_START_CODE|(vol_id&0x4), 32);
1154    
1155          BitstreamPutBit(bs, 0);         // random_accessible_vol          BitstreamPutBit(bs, 0);         // random_accessible_vol
# Line 1279  Line 1283 
1283  {  {
1284          uint32_t i;          uint32_t i;
1285    
1286          BitstreamPad(bs);  //      BitstreamPad(bs);
1287    /* no padding here, anymore. You have to make sure that you are
1288       byte aligned, and that always 1-8 padding bits have been written */
1289    
1290          BitstreamPutBits(bs, VOP_START_CODE, 32);          BitstreamPutBits(bs, VOP_START_CODE, 32);
1291    
1292          BitstreamPutBits(bs, frame->coding_type, 2);          BitstreamPutBits(bs, frame->coding_type, 2);
# Line 1364  Line 1371 
1371  {  {
1372          int i;          int i;
1373    
1374          BitstreamPad(bs);          BitstreamPadAlways(bs);
1375          BitstreamPutBits(bs, USERDATA_START_CODE, 32);          BitstreamPutBits(bs, USERDATA_START_CODE, 32);
1376    
1377          for (i = 0; i < length; i++) {          for (i = 0; i < length; i++) {

Legend:
Removed from v.1.28.2.17  
changed lines
  Added in v.1.28.2.18

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4