ABST Box Edit
This commit is contained in:
parent
02c7ea516b
commit
d261bca44a
1 changed files with 9 additions and 1 deletions
|
@ -29,6 +29,7 @@ class Box_abst {
|
||||||
void AddQualityEntry( std::string Quality = "", uint32_t Offset = 0 );
|
void AddQualityEntry( std::string Quality = "", uint32_t Offset = 0 );
|
||||||
void AddSegmentRunTable( Box * newSegment, uint32_t Offset = 0 );
|
void AddSegmentRunTable( Box * newSegment, uint32_t Offset = 0 );
|
||||||
void AddFragmentRunTable( Box * newFragment, uint32_t Offset = 0 );
|
void AddFragmentRunTable( Box * newFragment, uint32_t Offset = 0 );
|
||||||
|
void SetVersion( bool NewVersion = 0 );
|
||||||
void WriteContent( );
|
void WriteContent( );
|
||||||
private:
|
private:
|
||||||
void SetDefaults( );
|
void SetDefaults( );
|
||||||
|
@ -37,6 +38,7 @@ class Box_abst {
|
||||||
uint8_t curProfile;
|
uint8_t curProfile;
|
||||||
bool isLive;
|
bool isLive;
|
||||||
bool isUpdate;
|
bool isUpdate;
|
||||||
|
bool Version;
|
||||||
uint32_t curTimeScale;
|
uint32_t curTimeScale;
|
||||||
uint32_t curMediatime;//write as uint64_t
|
uint32_t curMediatime;//write as uint64_t
|
||||||
uint32_t curSMPTE;//write as uint64_t
|
uint32_t curSMPTE;//write as uint64_t
|
||||||
|
@ -52,6 +54,7 @@ class Box_abst {
|
||||||
|
|
||||||
Box_abst::Box_abst( ) {
|
Box_abst::Box_abst( ) {
|
||||||
Container = new Box( 0x61627374 );
|
Container = new Box( 0x61627374 );
|
||||||
|
SetDefaults( );
|
||||||
}
|
}
|
||||||
|
|
||||||
Box_abst::~Box_abst() {
|
Box_abst::~Box_abst() {
|
||||||
|
@ -136,7 +139,6 @@ void Box_abst::AddFragmentRunTable( Box * newFragment, uint32_t Offset ) {
|
||||||
FragmentRunTables[Offset] = newFragment;
|
FragmentRunTables[Offset] = newFragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Box_abst::SetDefaults( ) {
|
void Box_abst::SetDefaults( ) {
|
||||||
SetProfile( );
|
SetProfile( );
|
||||||
SetLive( );
|
SetLive( );
|
||||||
|
@ -147,8 +149,14 @@ void Box_abst::SetDefaults( ) {
|
||||||
SetMovieIdentifier( );
|
SetMovieIdentifier( );
|
||||||
SetDRM( );
|
SetDRM( );
|
||||||
SetMetaData( );
|
SetMetaData( );
|
||||||
|
SetVersion( );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SetVersion( bool NewVersion) {
|
||||||
|
Version = NewVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Box_abst::SetReserved( ) {
|
void Box_abst::SetReserved( ) {
|
||||||
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0));
|
Container->SetPayload((uint32_t)4,Box::uint32_to_uint8(0));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue