Backported various little edits from Pro edition.
This commit is contained in:
parent
ef9938da0c
commit
4c9c6fa7ba
78 changed files with 2334 additions and 1266 deletions
|
@ -22,6 +22,7 @@ namespace TS {
|
|||
public:
|
||||
//Constructors and fillers
|
||||
Packet();
|
||||
Packet(const Packet & rhs);
|
||||
~Packet();
|
||||
bool FromPointer(const char * data);
|
||||
bool FromFile(FILE * data);
|
||||
|
@ -83,6 +84,7 @@ namespace TS {
|
|||
|
||||
class ProgramAssociationTable : public Packet {
|
||||
public:
|
||||
ProgramAssociationTable & operator = (const Packet & rhs);
|
||||
char getOffset() const;
|
||||
char getTableId() const;
|
||||
short getSectionLength() const;
|
||||
|
@ -105,11 +107,14 @@ namespace TS {
|
|||
operator bool() const;
|
||||
|
||||
int getStreamType() const;
|
||||
void setStreamType(int newType);
|
||||
std::string getCodec() const;
|
||||
std::string getStreamTypeString() const;
|
||||
int getElementaryPid() const;
|
||||
void setElementaryPid(int newElementaryPid);
|
||||
int getESInfoLength() const;
|
||||
char * getESInfo() const;
|
||||
const char * getESInfo() const;
|
||||
void setESInfo(const std::string & newInfo);
|
||||
void advance();
|
||||
private:
|
||||
char* data;
|
||||
|
@ -119,6 +124,7 @@ namespace TS {
|
|||
class ProgramMappingTable : public Packet {
|
||||
public:
|
||||
ProgramMappingTable();
|
||||
ProgramMappingTable & operator = (const Packet & rhs);
|
||||
char getOffset() const;
|
||||
void setOffset(char newVal);
|
||||
char getTableId() const;
|
||||
|
@ -139,15 +145,7 @@ namespace TS {
|
|||
void setPCRPID(short newVal);
|
||||
short getProgramInfoLength() const;
|
||||
void setProgramInfoLength(short newVal);
|
||||
short getProgramCount() const;
|
||||
void setProgramCount(short newVal);
|
||||
ProgramMappingEntry getEntry(int index) const;
|
||||
void setStreamType(char newVal, short index);
|
||||
char getStreamType(short index) const;
|
||||
void setElementaryPID(short newVal, short index);
|
||||
short getElementaryPID(short index) const;
|
||||
void setESInfoLength(short newVal,short index);
|
||||
short getESInfoLength(short index) const;
|
||||
int getCRC() const;
|
||||
void calcCRC();
|
||||
std::string toPrettyString(size_t indent) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue