MistServer
2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Main Page
Human-readable topics
Data Structures
Files
Source code
File List
Globals
mist
theora.h
Go to the documentation of this file.
1
#pragma once
2
#include<sys/types.h>
3
#include<stdint.h>
4
#include<string>
5
6
namespace
theora
{
7
8
bool
isHeader
(
const
char
* newData,
unsigned
int
length);
9
class
header {
10
public
:
11
~header
();
12
header
(
char
* newData,
unsigned
int
length);
// if managed is true, this class manages the data pointer
13
int
getHeaderType
();
14
char
getVMAJ
();
15
char
getVMIN
();
16
char
getVREV
();
17
short
getFMBW
();
18
short
getFMBH
();
19
long
unsigned
int
getPICW
();
//movie width
20
long
unsigned
int
getPICH
();
//movie height
21
char
getPICX
();
22
char
getPICY
();
23
long
unsigned
int
getFRN
();
//frame rate numerator
24
long
unsigned
int
getFRD
();
//frame rate denominator
25
long
unsigned
int
getPARN
();
26
long
unsigned
int
getPARD
();
27
char
getCS
();
28
long
unsigned
int
getNOMBR
();
29
char
getQUAL
();
30
char
getPF
();
31
char
getKFGShift
();
32
std::string
getVendor
();
33
long
unsigned
int
getNComments
();
34
std::string
getUserComment
(
size_t
index);
35
char
getLFLIMS
(
size_t
index);
36
std::string
toPrettyString
(
size_t
indent = 0);
//update this, it should check (header) type and output relevant stuff only.
37
//long long unsigned int parseGranuleUpper(long long unsigned int granPos);
38
//long long unsigned int parseGranuleLower(long long unsigned int granPos);
40
unsigned
int
datasize
;
41
bool
isHeader
();
42
char
getFTYPE
();
//for frames
43
protected
:
44
uint32_t
getInt32
(
size_t
index);
45
uint32_t
getInt24
(
size_t
index);
46
uint16_t
getInt16
(
size_t
index);
47
uint32_t
commentLen
(
size_t
index);
48
private
:
49
char
*
data
;
50
bool
checkDataSize
(
unsigned
int
size);
51
};
52
/*
53
class frame{ // we don't need this. I hope.
54
public:
55
frame();
56
~frame();
57
bool read(const char* newData, unsigned int length);
58
char getFTYPE();
59
char getNQIS();
60
char getQIS(size_t index);
61
std::string toPrettyString(size_t indent = 0);
62
private:
63
char * data;
64
unsigned int datasize;
65
bool checkDataSize(unsigned int size);
66
};*/
67
}
68
theora::header::getVMIN
char getVMIN()
Definition:
theora.cpp:85
theora::header::getPICH
long unsigned int getPICH()
Definition:
theora.cpp:141
theora::header::header
header(char *newData, unsigned int length)
Definition:
theora.cpp:52
theora::header::isHeader
bool isHeader()
Definition:
theora.cpp:245
theora::header::getKFGShift
char getKFGShift()
Definition:
theora.cpp:127
theora::header::getFRD
long unsigned int getFRD()
Definition:
theora.cpp:155
theora::header::getFRN
long unsigned int getFRN()
Definition:
theora.cpp:134
theora::header::toPrettyString
std::string toPrettyString(size_t indent=0)
Definition:
theora.cpp:249
theora::header::getNComments
long unsigned int getNComments()
Definition:
theora.cpp:211
theora::header::getVREV
char getVREV()
Definition:
theora.cpp:92
theora::header::checkDataSize
bool checkDataSize(unsigned int size)
Definition:
theora.cpp:9
theora::header::getVMAJ
char getVMAJ()
Definition:
theora.cpp:78
theora::header::getLFLIMS
char getLFLIMS(size_t index)
Definition:
theora.cpp:219
theora::header::getInt24
uint32_t getInt24(size_t index)
Definition:
theora.cpp:31
theora::header::commentLen
uint32_t commentLen(size_t index)
Definition:
theora.cpp:45
theora::header::getInt16
uint16_t getInt16(size_t index)
Definition:
theora.cpp:38
theora::header::data
char * data
Definition:
theora.h:49
theora::header::getPARN
long unsigned int getPARN()
Definition:
theora.cpp:162
theora::isHeader
bool isHeader(const char *newData, unsigned int length)
Definition:
theora.cpp:60
theora::header::getFMBH
short getFMBH()
Definition:
theora.cpp:106
theora::header::getInt32
uint32_t getInt32(size_t index)
Definition:
theora.cpp:24
theora::header::datasize
unsigned int datasize
Definition:
theora.h:40
theora::header::getVendor
std::string getVendor()
Definition:
theora.cpp:204
theora::header::getCS
char getCS()
Definition:
theora.cpp:176
theora::header::getQUAL
char getQUAL()
Definition:
theora.cpp:190
theora::header::getPICW
long unsigned int getPICW()
Definition:
theora.cpp:148
theora::header::getPICY
char getPICY()
Definition:
theora.cpp:120
theora::header::getFTYPE
char getFTYPE()
Definition:
theora.cpp:241
theora::header::getUserComment
std::string getUserComment(size_t index)
Definition:
theora.cpp:230
theora::header::getPICX
char getPICX()
Definition:
theora.cpp:113
theora::header::~header
~header()
Definition:
theora.cpp:57
theora::header::getHeaderType
int getHeaderType()
Definition:
theora.cpp:74
theora::header::getPF
char getPF()
Definition:
theora.cpp:197
theora::header::getPARD
long unsigned int getPARD()
Definition:
theora.cpp:169
theora::header::getFMBW
short getFMBW()
Definition:
theora.cpp:99
theora
Definition:
theora.cpp:8
theora::header::getNOMBR
long unsigned int getNOMBR()
Definition:
theora.cpp:183
Generated on Mon Feb 29 2016 18:17:23 for MistServer by
1.8.11