Tussentijdse commit, SetWidth en SetHeight aan interface toegevoegd, default value voor hdlr_soun en hdlr_vide toegevoegd, default value voor mvhd->NextTrackID() aangepast zodat deze geldig is

This commit is contained in:
Erik Zandvliet 2011-01-23 20:13:13 +01:00
parent c646e99270
commit 7474b19df0
7 changed files with 60 additions and 11 deletions

View file

@ -70,12 +70,14 @@ void Box_tkhd::SetTrackID( uint32_t TrackID ) {
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(TrackID),12);
}
void Box_tkhd::SetWidth( uint32_t Width ) {
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(Width),72);
void Box_tkhd::SetWidth( uint16_t Width ) {
uint32_t ResultWidth = ( Width << 16 );
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(ResultWidth),72);
}
void Box_tkhd::SetHeight( uint32_t Height ) {
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(Height),76);
void Box_tkhd::SetHeight( uint16_t Height ) {
uint32_t ResultHeight = ( Height << 16 );
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(ResultHeight),76);
}
void Box_tkhd::SetDefaults() {