[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.16, Sat Jan 11 14:59:24 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 1326  Line 1333 
1333                          int k;                          int k;
1334                          for (k=0;k<2;k++)                          for (k=0;k<2;k++)
1335                          {                          {
                         if (pParam->m_quarterpel)  
                                 bs_put_spritetrajectory(bs, frame->warp.duv[k].x/2 ); // du[k]  
                         else  
1336                                  bs_put_spritetrajectory(bs, frame->warp.duv[k].x ); // du[k]                                  bs_put_spritetrajectory(bs, frame->warp.duv[k].x ); // du[k]
1337                          WRITE_MARKER();                          WRITE_MARKER();
1338    
                         if (pParam->m_quarterpel)  
                                 bs_put_spritetrajectory(bs, frame->warp.duv[k].y/2 ); // dv[k]  
                         else  
1339                                  bs_put_spritetrajectory(bs, frame->warp.duv[k].y ); // dv[k]                                  bs_put_spritetrajectory(bs, frame->warp.duv[k].y ); // dv[k]
1340                          WRITE_MARKER();                          WRITE_MARKER();
1341    
# Line 1348  Line 1349 
1349                          }                          }
1350                          }                          }
1351                  }                  }
 /* GMC is halfpel in bitstream, even though GMC_MV was pseudo-qpel (2*halfpel) */  
   
                 // no support for brightness_change!  
1352          }          }
1353    
1354    
# Line 1373  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.16  
changed lines
  Added in v.1.28.2.18

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