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 |
|
|
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 |
|
BitstreamPad(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 |
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); |