Bijna klaar!

This commit is contained in:
Thulinma 2011-02-16 21:42:40 +01:00
parent 5ca7a72b86
commit a3fd7a5a43
84 changed files with 879 additions and 969 deletions

39
util/MP4/box_mfhd.cpp Normal file
View file

@ -0,0 +1,39 @@
#include "box.cpp"
class Box_mfhd {
public:
Box_mfhd( );
~Box_mfhd();
Box * GetBox();
void SetSequenceNumber( uint32_t SequenceNumber = 1 );
private:
void SetDefaults( );
void SetReserved( );
Box * Container;
};//Box_ftyp Class
Box_mfhd::Box_mfhd( ) {
Container = new Box( 0x6D666864 );
SetDefaults( );
SetReserved( );
}
Box_mfhd::~Box_mfhd() {
delete Container;
}
Box * Box_mfhd::GetBox() {
return Container;
}
void Box_mfhd::SetDefaults( ) {
SetSequenceNumber( );
}
void Box_mfhd::SetReserved( ) {
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0));
}
void Box_mfhd::SetSequenceNumber( uint32_t SequenceNumber ) {
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(SequenceNumber),4);
}