SMHD en NMHD boxes finished
This commit is contained in:
parent
c180f2695b
commit
d30caedaf1
4 changed files with 61 additions and 0 deletions
18
MP4/box_nmhd.cpp
Normal file
18
MP4/box_nmhd.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "box_nmhd.h"
|
||||
|
||||
Box_nmhd::Box_nmhd( ) {
|
||||
Container = new Box( 0x6E6D6864 );
|
||||
SetReserved();
|
||||
}
|
||||
|
||||
Box_nmhd::~Box_nmhd() {
|
||||
delete Container;
|
||||
}
|
||||
|
||||
Box * Box_nmhd::GetBox() {
|
||||
return Container;
|
||||
}
|
||||
|
||||
void Box_nmhd::SetReserved( ) {
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0));
|
||||
}
|
12
MP4/box_nmhd.h
Normal file
12
MP4/box_nmhd.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "box.h"
|
||||
|
||||
class Box_nmhd {
|
||||
public:
|
||||
Box_nmhd( );
|
||||
~Box_nmhd();
|
||||
Box * GetBox();
|
||||
private:
|
||||
Box * Container;
|
||||
void SetReserved( );
|
||||
};//Box_ftyp Class
|
||||
|
19
MP4/box_smhd.cpp
Normal file
19
MP4/box_smhd.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include "box_smhd.h"
|
||||
|
||||
Box_smhd::Box_smhd( ) {
|
||||
Container = new Box( 0x736D6864 );
|
||||
SetReserved();
|
||||
}
|
||||
|
||||
Box_smhd::~Box_smhd() {
|
||||
delete Container;
|
||||
}
|
||||
|
||||
Box * Box_smhd::GetBox() {
|
||||
return Container;
|
||||
}
|
||||
|
||||
void Box_smhd::SetReserved( ) {
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0),4);
|
||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0));
|
||||
}
|
12
MP4/box_smhd.h
Normal file
12
MP4/box_smhd.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "box.h"
|
||||
|
||||
class Box_smhd {
|
||||
public:
|
||||
Box_smhd( );
|
||||
~Box_smhd();
|
||||
Box * GetBox();
|
||||
private:
|
||||
Box * Container;
|
||||
void SetReserved( );
|
||||
};//Box_ftyp Class
|
||||
|
Loading…
Add table
Reference in a new issue