49 #ifndef TSADAPTATIONFIELD_H_
50 #define TSADAPTATIONFIELD_H_
52 #define MAX_ADAPTATION_FIELD_SIZE 183
53 #define MAX_PRIVATE_DATA_SIZE 255
55 #include "system/time/Stc.h"
56 using namespace ::br::pucrio::telemidia::ginga::core::system::time;
70 char adapFieldStream[MAX_ADAPTATION_FIELD_SIZE];
71 char* privateDataStream;
79 unsigned char adaptationFieldLength;
80 unsigned char discontinuityIndicator;
81 unsigned char randomAccessIndicator;
82 unsigned char elementaryStreamPriorityIndicator;
83 unsigned char pcrFlag;
84 unsigned char oPCRFlag;
85 unsigned char splicingPointFlag;
86 unsigned char transportPrivateDataFlag;
87 unsigned char adaptationFieldExtensionFlag;
89 uint64_t pcrExtension;
90 uint64_t originalPcrBase;
91 uint64_t originalPcrExtension;
93 unsigned char transportPrivateDataLength;
94 unsigned char adaptationFieldExtensionLength;
95 unsigned char ltwFlag;
96 unsigned char piecewiseRateFlag;
97 unsigned char seamlessSpliceFlag;
98 unsigned char ltwValidFlag;
99 unsigned int ltwOffset;
100 unsigned int piecewiseRate;
101 unsigned char spliceType;
112 void releasePrivateDataStream();
115 unsigned char getAdaptationFieldLength();
116 void setAdaptationFieldLength(
unsigned char afl);
118 unsigned char getDiscontinuityIndicator();
119 void setDiscontinuityIndicator(
unsigned char di);
120 unsigned char getRandomAccessIndicator();
121 void setRandomAccessIndicator(
unsigned char rai);
122 unsigned char getElementaryStreamPriorityIndicator();
123 void setElementaryStreamPriorityIndicator(
unsigned char espi);
124 unsigned char getPcrFlag();
125 void setPcrFlag(
unsigned char pf);
126 unsigned char getOPcrFlag();
127 void setOPcrFlag(
unsigned char opf);
128 unsigned char getSplicingPointFlag();
129 void setSplicingPointFlag(
unsigned char spf);
130 unsigned char getTransportPrivateDataFlag();
131 void setTransportPrivateDataFlag(
unsigned char tpdf);
132 unsigned char getAdaptationFieldExtensionFlag();
133 void setAdaptationFieldExtensionFlag(
unsigned char afef);
134 uint64_t getPcrBase();
135 void setPcrBase(uint64_t pb);
136 uint64_t getPcrExtension();
137 void setPcrExtension(uint64_t pe);
138 uint64_t getOriginalPcrBase();
139 void setOriginalPcrBase(uint64_t opb);
140 uint64_t getOriginalPcrExtension();
141 void setOriginalPcrExtension(uint64_t ope);
142 char getSpliceCountdown();
143 void setSpliceCountdown(
char sc);
144 unsigned char getTransportPrivateDataLength();
145 void setTransportPrivateDataLength(
unsigned char tpdl);
146 unsigned char getAdaptationFieldExtensionLength();
147 void setAdaptationFieldExtensionLength(
unsigned char afel);
148 unsigned char getLtwFlag();
149 void setLtwFlag(
unsigned char lf);
150 unsigned char getPiecewiseRateFlag();
151 void setPiecewiseRateFlag(
unsigned char prf);
152 unsigned char getSeamlessSpliceFlag();
153 void setSeamlessSpliceFlag(
unsigned char ssf);
154 unsigned char getLtwValidFlag();
155 void setLtwValidFlag(
unsigned char lvf);
156 unsigned int getLtwOffset();
157 void setLtwOffset(
unsigned int lo);
158 unsigned int getPiecewiseRate();
159 void setPiecewiseRate(
unsigned int pr);
160 unsigned char getSpliceType();
161 void setSpliceType(
unsigned char st);
162 uint64_t getDtsNextAU();
163 void setDtsNextAU(uint64_t dna);
164 void setTransportPrivateDataStream(
char* stream,
unsigned char length);
165 int getTransportPrivateDataStream(
char** stream);
167 int getStream(
char stream[MAX_ADAPTATION_FIELD_SIZE]);
Definition: TSAdaptationField.h:68