Library code style update + some minor backports from Pro edition

This commit is contained in:
Erik Zandvliet 2018-12-03 23:51:48 +01:00 committed by Thulinma
parent 593b291e85
commit 2607113727
68 changed files with 4538 additions and 4665 deletions

View file

@ -74,6 +74,7 @@ namespace MP4 {
tfhdSampleSize = 0x000010,
tfhdSampleFlag = 0x000020,
tfhdNoDuration = 0x010000,
tfhdBaseIsMoof = 0x020000,
};
class TFHD: public Box {
public:
@ -92,6 +93,7 @@ namespace MP4 {
uint32_t getDefaultSampleSize();
void setDefaultSampleFlags(uint32_t newFlags);
uint32_t getDefaultSampleFlags();
bool getDefaultBaseIsMoof();
std::string toPrettyString(uint32_t indent = 0);
};
@ -111,6 +113,7 @@ namespace MP4 {
void setSPSCount(uint32_t _count);
uint32_t getSPSCount();
void setSPS(std::string newSPS, size_t index = 0);
void setSPS(const char * data, size_t len, size_t index = 0);
uint32_t getSPSLen(size_t index = 0);
char * getSPS(size_t index = 0);
std::string hexSPS(size_t index = 0);
@ -119,11 +122,16 @@ namespace MP4 {
void setPPSCount(uint32_t _count);
uint32_t getPPSCount();
void setPPS(std::string newPPS, size_t index = 0);
void setPPS(const char * data, size_t len, size_t index = 0);
uint32_t getPPSLen(size_t index = 0);
char * getPPS(size_t index = 0);
std::string hexPPS(size_t index = 0);
std::string asAnnexB();
void setPayload(std::string newPayload);
void setPayload(const char * data, size_t len);
bool sanitize();
std::string toPrettyString(uint32_t indent = 0);
};
@ -587,7 +595,7 @@ namespace MP4 {
class PASP: public Box { //PixelAspectRatioBox
public:
PASP();
PASP(uint32_t hSpacing = 1, uint32_t vSpacing = 1);
void setHSpacing(uint32_t newVal);
uint32_t getHSpacing();
void setVSpacing(uint32_t newVal);
@ -620,6 +628,11 @@ namespace MP4 {
void setCLAP(Box & clap);
Box & getPASP();
void setPASP(Box & pasp);
size_t getBoxEntryCount();
Box & getBoxEntry(size_t index);
void setBoxEntry(size_t index, Box & box);
std::string toPrettyVisualString(uint32_t index = 0, std::string = "");
};