Such style. (Code style unification)
This commit is contained in:
parent
57bcd8f25c
commit
8c01ec8897
57 changed files with 6548 additions and 6437 deletions
26
lib/ogg.h
26
lib/ogg.h
|
@ -8,15 +8,15 @@
|
|||
#include "vorbis.h"
|
||||
#include "json.h"
|
||||
|
||||
namespace OGG{
|
||||
|
||||
enum HeaderType{
|
||||
namespace OGG {
|
||||
|
||||
enum HeaderType {
|
||||
Continued = 1,
|
||||
BeginOfStream = 2,
|
||||
EndOfStream = 4
|
||||
};
|
||||
|
||||
class Page{
|
||||
|
||||
class Page {
|
||||
public:
|
||||
Page();
|
||||
~Page();
|
||||
|
@ -38,30 +38,30 @@ namespace OGG{
|
|||
void setCRCChecksum(long unsigned int newVal);
|
||||
char getPageSegments();
|
||||
inline void setPageSegments(char newVal);
|
||||
char* getSegmentTable();
|
||||
char * getSegmentTable();
|
||||
std::deque<unsigned int> & getSegmentTableDeque();
|
||||
bool setSegmentTable(std::vector<unsigned int> layout);
|
||||
void setSegmentTable(char* newVal, unsigned int length);
|
||||
char* getPage();//returns complete page with header
|
||||
void setSegmentTable(char * newVal, unsigned int length);
|
||||
char * getPage(); //returns complete page with header
|
||||
unsigned long int getPageSize();
|
||||
char* getFullPayload();//returns all segments in the page
|
||||
char * getFullPayload(); //returns all segments in the page
|
||||
int getPayloadSize();
|
||||
std::string toPrettyString(size_t indent = 0);
|
||||
void setInternalCodec(std::string myCodec);
|
||||
long unsigned int calcChecksum();
|
||||
bool clear();
|
||||
bool setPayload(char* newData, unsigned int length);
|
||||
bool setPayload(char * newData, unsigned int length);
|
||||
void readDTSCVector(std::vector <JSON::Value> DTSCVec, unsigned int serial, unsigned int sequence);
|
||||
private:
|
||||
std::deque<unsigned int> segmentTableDeque;
|
||||
char* data;//pointer to the beginning of the Page data
|
||||
char * data; //pointer to the beginning of the Page data
|
||||
unsigned int datasize;//size of the allocated memory
|
||||
unsigned int dataSum;//size of the total segments
|
||||
bool checkDataSize(unsigned int size);
|
||||
std::string codec;//codec in the page
|
||||
};
|
||||
|
||||
class headerPages{
|
||||
|
||||
class headerPages {
|
||||
public:
|
||||
void readDTSCHeader(DTSC::Meta & meta);
|
||||
std::map <long long unsigned int, unsigned int> DTSCID2OGGSerial;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue