Theora headers 1 and 2 working in analyser

This commit is contained in:
Erik Zandvliet 2013-06-24 09:36:27 +02:00
parent 4ea8fe0327
commit a2f088ad80
4 changed files with 324 additions and 107 deletions

View file

@ -1,7 +1,9 @@
#pragma once
#include<string>
#include<vector>
#include<deque>
#include"dtsc.h"
#include "theora.h"
namespace OGG{
class Page{
@ -30,17 +32,19 @@ namespace OGG{
void setSegmentTable(char* newVal, unsigned int length);
unsigned long int getPageSize();
char* getFullPayload();
char* getSegment(long unsigned int);
int getPayloadSize();
bool typeBOS();
bool typeEOS();
bool typeContinue();
bool typeNone();
std::string toPrettyString();
std::string toPrettyString(size_t indent = 0);
void setInternalCodec(std::string myCodec);
private:
long unsigned int calcChecksum();
char* data;
unsigned int datasize;
unsigned int dataSum;
bool checkDataSize(unsigned int size);
std::string codec;
};
}