First ftyp Box Implementation
This commit is contained in:
parent
e6b0cbe634
commit
fce97a478c
7 changed files with 157 additions and 41 deletions
23
MP4/box_ftyp.cpp
Normal file
23
MP4/box_ftyp.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "box_ftyp.h"
|
||||
|
||||
Box_ftyp::Box_ftyp( uint32_t MajorBrand, uint32_t MinorBrand ) {
|
||||
Container = new Box( 0x66747970 );
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MajorBrand));
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MinorBrand),4);
|
||||
}
|
||||
|
||||
Box_ftyp::~Box_ftyp() {
|
||||
delete Container;
|
||||
}
|
||||
|
||||
Box * Box_ftyp::GetBox() {
|
||||
return Container;
|
||||
}
|
||||
|
||||
void Box_ftyp::SetMajorBrand( uint32_t MajorBrand ) {
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MajorBrand));
|
||||
}
|
||||
|
||||
void Box_ftyp::SetMinorBrand( uint32_t MinorBrand ) {
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(MinorBrand),4);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue