5 class MFHD:
public Box {
14 class MOOF:
public containerBox {
20 class TRAF:
public Box {
23 uint32_t getContentCount();
24 void setContent(
Box & newContent, uint32_t no);
25 Box & getContent(uint32_t no);
30 struct trunSampleInformation {
31 uint32_t sampleDuration;
34 uint32_t sampleOffset;
59 void setFlags(uint32_t newFlags);
61 void setDataOffset(uint32_t newOffset);
62 uint32_t getDataOffset();
63 void setFirstSampleFlags(uint32_t newSampleFlags);
64 uint32_t getFirstSampleFlags();
65 uint32_t getSampleInformationCount();
82 void setFlags(uint32_t newFlags);
84 void setTrackID(uint32_t newID);
85 uint32_t getTrackID();
86 void setBaseDataOffset(uint64_t newOffset);
87 uint64_t getBaseDataOffset();
88 void setSampleDescriptionIndex(uint32_t newIndex);
89 uint32_t getSampleDescriptionIndex();
90 void setDefaultSampleDuration(uint32_t newDuration);
91 uint32_t getDefaultSampleDuration();
92 void setDefaultSampleSize(uint32_t newSize);
93 uint32_t getDefaultSampleSize();
94 void setDefaultSampleFlags(uint32_t newFlags);
95 uint32_t getDefaultSampleFlags();
103 void setVersion(uint32_t newVersion);
104 uint32_t getVersion();
105 void setProfile(uint32_t newProfile);
106 uint32_t getProfile();
107 void setCompatibleProfiles(uint32_t newCompatibleProfiles);
108 uint32_t getCompatibleProfiles();
109 void setLevel(uint32_t newLevel);
111 void setSPSNumber(uint32_t newSPSNumber);
112 uint32_t getSPSNumber();
113 void setSPS(std::string newSPS);
114 uint32_t getSPSLen();
116 void setPPSNumber(uint32_t newPPSNumber);
117 uint32_t getPPSNumber();
118 void setPPS(std::string newPPS);
119 uint32_t getPPSLen();
121 std::string asAnnexB();
122 void setPayload(std::string newPayload);
127 char arrayCompleteness;
129 std::deque<std::string> nalUnits;
135 void setConfigurationVersion(
char newVersion);
136 char getConfigurationVersion();
137 void setGeneralProfileSpace(
char newGeneral);
138 char getGeneralProfileSpace();
139 void setGeneralTierFlag(
char newGeneral);
140 char getGeneralTierFlag();
141 void setGeneralProfileIdc(
char newGeneral);
142 char getGeneralProfileIdc();
143 void setGeneralProfileCompatibilityFlags(
unsigned long newGeneral);
144 unsigned long getGeneralProfileCompatibilityFlags();
145 void setGeneralConstraintIndicatorFlags(
unsigned long long newGeneral);
146 unsigned long long getGeneralConstraintIndicatorFlags();
147 void setGeneralLevelIdc(
char newGeneral);
148 char getGeneralLevelIdc();
149 void setMinSpatialSegmentationIdc(
short newIdc);
150 short getMinSpatialSegmentationIdc();
151 void setParallelismType(
char newType);
152 char getParallelismType();
153 void setChromaFormat(
char newFormat);
154 char getChromaFormat();
155 void setBitDepthLumaMinus8(
char newBitDepthLumaMinus8);
156 char getBitDepthLumaMinus8();
157 void setBitDepthChromaMinus8(
char newBitDepthChromaMinus8);
158 char getBitDepthChromaMinus8();
159 void setAverageFramerate(
short newFramerate);
160 short getAverageFramerate();
161 void setConstantFramerate(
char newFramerate);
162 char getConstantFramerate();
163 void setNumberOfTemporalLayers(
char newNumber);
164 char getNumberOfTemporalLayers();
165 void setTemporalIdNested(
char newNested);
166 char getTemporalIdNested();
167 void setLengthSizeMinus1(
char newLengthSizeMinus1);
168 char getLengthSizeMinus1();
170 void setArrays(std::deque<HVCCArrayEntry> & arrays);
171 std::deque<HVCCArrayEntry> getArrays();
172 std::string asAnnexB();
173 void setPayload(std::string newPayload);
180 Descriptor(
const char* pointer,
const unsigned long length,
const bool master =
false);
183 unsigned long getDataSize();
184 unsigned long getFullSize();
185 void resize(
unsigned long t);
197 DSDescriptor (
const char* pointer,
const unsigned long length,
const bool master =
false);
199 std::string toString();
205 DCDescriptor (
const char* pointer,
const unsigned long length,
const bool master =
false);
207 std::string getCodec();
215 ESDescriptor (
const char* pointer,
const unsigned long length,
const bool master =
false);
232 std::string getCodec();
233 std::string getInitData();
239 DAC3(
unsigned int rate,
unsigned int channels);
240 char getSampleRateCode();
241 void setSampleRateCode(
char newVal);
242 char getBitStreamIdentification();
243 void setBitStreamIdentification(
char newVal);
244 char getBitStreamMode();
245 void setBitStreamMode(
char newVal);
246 char getAudioConfigMode();
247 void setAudioConfigMode(
char newVal);
248 bool getLowFrequencyEffectsChannelOn();
249 void setLowFrequencyEffectsChannelOn(
bool newVal);
250 char getFrameSizeCode();
251 void setFrameSizeCode(
char newVal);
257 FTYP(
bool fillDefaults =
true);
258 void setMajorBrand(
const char * newMajorBrand);
259 std::string getMajorBrand();
260 void setMinorVersion(
const char * newMinorVersion);
261 std::string getMinorVersion();
262 size_t getCompatibleBrandsCount();
263 void setCompatibleBrands(
const char * newCompatibleBrand,
size_t index);
264 std::string getCompatibleBrands(
size_t index);
270 STYP(
bool fillDefaults =
true);
286 TREX(
unsigned int trackId = 0);
287 void setTrackID(uint32_t newTrackID);
288 uint32_t getTrackID();
289 void setDefaultSampleDescriptionIndex(uint32_t newDefaultSampleDescriptionIndex);
290 uint32_t getDefaultSampleDescriptionIndex();
291 void setDefaultSampleDuration(uint32_t newDefaultSampleDuration);
292 uint32_t getDefaultSampleDuration();
293 void setDefaultSampleSize(uint32_t newDefaultSampleSize);
294 uint32_t getDefaultSampleSize();
295 void setDefaultSampleFlags(uint32_t newDefaultSampleFlags);
296 uint32_t getDefaultSampleFlags();
329 void setSize(uint32_t newSize);
336 HDLR(std::string & type, std::string name);
337 void setHandlerType(
const char * newHandlerType);
338 std::string getHandlerType();
339 void setName(std::string newName);
340 std::string getName();
347 void setGraphicsMode(uint16_t newGraphicsMode);
348 uint16_t getGraphicsMode();
349 uint32_t getOpColorCount();
350 void setOpColor(uint16_t newOpColor,
size_t index);
351 uint16_t getOpColor(
size_t index);
358 void setBalance(int16_t newBalance);
359 int16_t getBalance();
366 void setMaxPDUSize(uint16_t newMaxPDUSize);
367 uint16_t getMaxPDUSize();
368 void setAvgPDUSize(uint16_t newAvgPDUSize);
369 uint16_t getAvgPDUSize();
370 void setMaxBitRate(uint32_t newMaxBitRate);
371 uint32_t getMaxBitRate();
372 void setAvgBitRate(uint32_t newAvgBitRate);
373 uint32_t getAvgBitRate();
386 void setFragmentDuration(uint64_t newFragmentDuration);
387 uint64_t getFragmentDuration();
399 void setLocation(std::string newLocation);
400 std::string getLocation();
407 void setName(std::string newName);
408 std::string getName();
409 void setLocation(std::string newLocation);
410 std::string getLocation();
417 uint32_t getEntryCount();
418 void setDataEntry(
fullBox & newDataEntry,
size_t index);
419 Box & getDataEntry(
size_t index);
425 MVHD(
long long unsigned int duration);
426 void setCreationTime(uint64_t newCreationTime);
427 uint64_t getCreationTime();
428 void setModificationTime(uint64_t newModificationTime);
429 uint64_t getModificationTime();
430 void setTimeScale(uint32_t newTimeScale);
431 uint32_t getTimeScale();
432 void setDuration(uint64_t newDuration);
433 uint64_t getDuration();
434 void setRate(uint32_t newRate);
436 void setVolume(uint16_t newVolume);
437 uint16_t getVolume();
438 uint32_t getMatrixCount();
439 void setMatrix(int32_t newMatrix,
size_t index);
440 int32_t getMatrix(
size_t index);
441 void setTrackID(uint32_t newTrackID);
442 uint32_t getTrackID();
451 uint32_t sampleNumber;
457 void setTrackID(uint32_t newTrackID);
458 uint32_t getTrackID();
459 void setLengthSizeOfTrafNum(
char newVal);
460 char getLengthSizeOfTrafNum();
461 void setLengthSizeOfTrunNum(
char newVal);
462 char getLengthSizeOfTrunNum();
463 void setLengthSizeOfSampleNum(
char newVal);
464 char getLengthSizeOfSampleNum();
465 void setNumberOfEntry(uint32_t newNumberOfEntry);
466 uint32_t getNumberOfEntry();
467 void setTFRAEntry(
TFRAEntry newTFRAEntry, uint32_t no);
469 uint32_t getTFRAEntrySize();
475 TKHD(uint32_t trackId, uint64_t duration, uint32_t width, uint32_t height);
478 void setCreationTime(uint64_t newCreationTime);
479 uint64_t getCreationTime();
480 void setModificationTime(uint64_t newModificationTime);
481 uint64_t getModificationTime();
482 void setTrackID(uint32_t newTrackID);
483 uint32_t getTrackID();
484 void setDuration(uint64_t newDuration);
485 uint64_t getDuration();
487 void setLayer(uint16_t newLayer);
489 void setAlternateGroup(uint16_t newAlternateGroup);
490 uint16_t getAlternateGroup();
492 void setVolume(uint16_t newVolume);
493 uint16_t getVolume();
494 uint32_t getMatrixCount();
495 void setMatrix(int32_t newMatrix,
size_t index);
496 int32_t getMatrix(
size_t index);
498 void setWidth(
double newWidth);
500 void setHeight(
double newHeight);
509 MDHD(uint64_t duration);
510 void setCreationTime(uint64_t newCreationTime);
511 uint64_t getCreationTime();
512 void setModificationTime(uint64_t newModificationTime);
513 uint64_t getModificationTime();
514 void setTimeScale(uint32_t newTimeScale);
515 uint32_t getTimeScale();
516 void setDuration(uint64_t newDuration);
517 uint64_t getDuration();
519 void setLanguage(uint16_t newLanguage);
520 uint16_t getLanguage();
525 uint32_t sampleCount;
526 uint32_t sampleDelta;
531 STTS(
char v = 1, uint32_t f = 0);
532 void setEntryCount(uint32_t newEntryCount);
533 uint32_t getEntryCount();
534 void setSTTSEntry(
STTSEntry newSTTSEntry, uint32_t no);
540 uint32_t sampleCount;
541 uint32_t sampleOffset;
547 void setEntryCount(uint32_t newEntryCount);
548 uint32_t getEntryCount();
549 void setCTTSEntry(
CTTSEntry newCTTSEntry, uint32_t no);
556 STSCEntry(
unsigned int _first = 0,
unsigned int _count = 0,
unsigned int _index = 0);
558 uint32_t samplesPerChunk;
559 uint32_t sampleDescriptionIndex;
564 STSC(
char v = 1, uint32_t f = 0);
565 void setEntryCount(uint32_t newEntryCount);
566 uint32_t getEntryCount();
567 void setSTSCEntry(
STSCEntry newSTSCEntry, uint32_t no);
574 STCO(
char v = 1, uint32_t f = 0);
575 void setEntryCount(uint32_t newEntryCount);
576 uint32_t getEntryCount();
577 void setChunkOffset(uint32_t newChunkOffset, uint32_t no);
578 uint32_t getChunkOffset(uint32_t no);
584 CO64(
char v = 1, uint32_t f = 0);
585 void setEntryCount(uint32_t newEntryCount);
586 uint32_t getEntryCount();
587 void setChunkOffset(uint64_t newChunkOffset, uint32_t no);
588 uint64_t getChunkOffset(uint32_t no);
594 STSZ(
char v = 1, uint32_t f = 0);
595 void setSampleSize(uint32_t newSampleSize);
596 uint32_t getSampleSize();
597 void setSampleCount(uint32_t newSampleCount);
598 uint32_t getSampleCount();
599 void setEntrySize(uint32_t newEntrySize, uint32_t no);
600 uint32_t getEntrySize(uint32_t no);
607 void setDataReferenceIndex(uint16_t newDataReferenceIndex);
608 uint16_t getDataReferenceIndex();
609 std::string toPrettySampleString(uint32_t index);
615 void setCleanApertureWidthN(uint32_t newVal);
616 uint32_t getCleanApertureWidthN();
617 void setCleanApertureWidthD(uint32_t newVal);
618 uint32_t getCleanApertureWidthD();
619 void setCleanApertureHeightN(uint32_t newVal);
620 uint32_t getCleanApertureHeightN();
621 void setCleanApertureHeightD(uint32_t newVal);
622 uint32_t getCleanApertureHeightD();
623 void setHorizOffN(uint32_t newVal);
624 uint32_t getHorizOffN();
625 void setHorizOffD(uint32_t newVal);
626 uint32_t getHorizOffD();
627 void setVertOffN(uint32_t newVal);
628 uint32_t getVertOffN();
629 void setVertOffD(uint32_t newVal);
630 uint32_t getVertOffD();
637 void setHSpacing(uint32_t newVal);
638 uint32_t getHSpacing();
639 void setVSpacing(uint32_t newVal);
640 uint32_t getVSpacing();
650 void setCodec(
const char * newCodec);
651 void setWidth(uint16_t newWidth);
653 void setHeight(uint16_t newHeight);
654 uint16_t getHeight();
655 void setHorizResolution(uint32_t newHorizResolution);
656 uint32_t getHorizResolution();
657 void setVertResolution(uint32_t newVertResolution);
658 uint32_t getVertResolution();
659 void setFrameCount(uint16_t newFrameCount);
660 uint16_t getFrameCount();
661 void setCompressorName(std::string newCompressorName);
662 std::string getCompressorName();
663 void setDepth(uint16_t newDepth);
666 void setCLAP(
Box & clap);
668 void setPASP(
Box & pasp);
669 std::string toPrettyVisualString(uint32_t index = 0, std::string =
"");
678 void setCodec(
const char * newCodec);
679 void setChannelCount(uint16_t newChannelCount);
680 uint16_t getChannelCount();
681 void setSampleSize(uint16_t newSampleSize);
682 uint16_t getSampleSize();
683 void setPreDefined(uint16_t newPreDefined);
684 uint16_t getPreDefined();
685 void setSampleRate(uint32_t newSampleRate);
686 uint16_t toAACInit();
687 uint32_t getSampleRate();
688 void setCodecBox(
Box & newBox);
691 std::string toPrettyAudioString(uint32_t indent = 0, std::string name =
"");
727 void setTotal(
char newTotal);
729 void setOrder(
char newOrder);
736 STSD(
char v = 1, uint32_t f = 0);
737 void setEntryCount(uint32_t newEntryCount);
738 uint32_t getEntryCount();
739 void setEntry(
Box & newContent, uint32_t no);
740 Box & getEntry(uint32_t no);
766 STSS(
char v = 1, uint32_t f = 0);
767 void setEntryCount(uint32_t newVal);
768 uint32_t getEntryCount();
769 void setSampleNumber(uint32_t newVal, uint32_t index);
770 uint32_t getSampleNumber(uint32_t index);
783 void setCount(uint32_t newVal);
785 void setSegmentDuration(uint64_t newVal);
786 uint64_t getSegmentDuration();
787 void setMediaTime(uint64_t newVal);
788 uint64_t getMediaTime();
789 void setMediaRateInteger(uint16_t newVal);
790 uint16_t getMediaRateInteger();
791 void setMediaRateFraction(uint16_t newVal);
792 uint16_t getMediaRateFraction();
Definition: mp4_generic.h:446
Definition: mp4_generic.h:524
Definition: ts_stream.h:12
Definition: mp4_generic.h:539
std::string toPrettyString(uint32_t indent=0)
Definition: mp4_generic.cpp:18
Definition: mp4_generic.h:334
Definition: mp4_generic.h:50
Definition: ts_stream.h:13
Definition: mp4_generic.h:37
Definition: mp4_generic.h:700
Definition: mp4_generic.h:672
Definition: mp4_generic.h:473
Definition: mp4_generic.h:79
Class for storage of track data.
Definition: dtsc.h:285
Contains all MP4 format related code.
Definition: mp4.cpp:15
std::string prettySampleFlags(uint32_t flag)
Definition: mp4_generic.cpp:288
Definition: mp4_generic.h:396
Definition: mp4_generic.h:712
Definition: mp4_generic.h:268
Definition: mp4_generic.h:38
Definition: mp4_generic.h:694
Definition: mp4_generic.h:321
Definition: mp4_generic.h:344
Definition: mp4_generic.h:48
Definition: mp4_generic.h:644
Definition: mp4_generic.h:132
Implements ISO 14496-1 DecoderConfigDescrTag.
Definition: mp4_generic.h:203
Definition: mp4_generic.h:391
Definition: mp4_generic.h:40
Definition: mp4_generic.h:529
void setSequenceNumber(uint32_t newSequenceNumber)
Definition: mp4_generic.cpp:10
Definition: mp4_generic.h:39
Definition: mp4_generic.h:604
Stream Metadata.
Definition: dtsc.h:28
Definition: mp4_generic.h:780
Definition: mp4_generic.h:592
Definition: mp4_generic.h:52
Definition: mp4_generic.h:759
Definition: mp4_generic.h:572
Definition: mp4_generic.h:414
Definition: mp4_generic.h:279
Box(char *datapointer=0, bool manage=true)
Creates a new box, optionally using the indicated pointer for storage.
Definition: mp4.cpp:21
Definition: mp4_generic.h:53
uint32_t getSequenceNumber()
Definition: mp4_generic.cpp:14
Definition: mp4_generic.h:706
Definition: mp4_generic.h:744
Definition: mp4_generic.h:255
Definition: mp4_generic.h:76
Definition: mp4_generic.h:75
Definition: mp4_generic.h:316
Definition: mp4_generic.h:74
Definition: mp4_generic.h:73
Definition: mp4_generic.h:363
Definition: mp4_generic.h:404
Implements ISO 14496-1 DecSpecificInfoTag.
Definition: mp4_generic.h:195
Definition: mp4_generic.h:126
Definition: mp4_generic.h:237
Definition: mp4_generic.h:226
Canvas prototype resize
Definition: jquery.flot.min.js:1
tfhdflags
Definition: mp4_generic.h:71
Definition: mp4_generic.h:41
Implements ISO 14496-1 SLConfigDescrTag.
Definition: mp4_generic.h:223
Definition: mp4_generic.h:754
Definition: mp4_generic.h:326
Definition: mp4_generic.h:724
Definition: mp4_generic.h:77
Definition: mp4_generic.h:301
Definition: mp4_generic.h:544
Definition: mp4_generic.h:284
Definition: mp4_generic.h:554
Definition: mp4_generic.h:51
Definition: mp4_generic.h:46
Definition: mp4_generic.h:764
char * data
Holds the data of this box.
Definition: mp4.h:62
function init(plot)
Definition: jquery.flot.time.min.js:1
Definition: mp4_generic.h:562
Definition: mp4_generic.h:582
Definition: mp4_generic.h:274
Definition: mp4_generic.h:718
Definition: mp4_generic.h:612
Definition: mp4_generic.h:72
Definition: mp4_generic.h:56
Definition: mp4_generic.h:47
Definition: mp4_generic.h:423
Definition: mp4_generic.h:306
MFHD()
Definition: mp4_generic.cpp:5
Definition: mp4_generic.h:383
Definition: mp4_generic.h:507
Definition: mp4_generic.h:454
trunflags
Definition: mp4_generic.h:36
Definition: mp4_generic.h:311
Implements ISO 14496-1 ES_DescrTag.
Definition: mp4_generic.h:213
Definition: mp4_generic.h:734
Definition: mp4_generic.h:634
Definition: mp4_generic.h:42
Definition: mp4_generic.h:355
Definition: mp4_generic.h:177
Definition: mp4_generic.h:49
Definition: mp4_generic.h:100
Definition: mp4_generic.h:377
sampleflags
Definition: mp4_generic.h:44
Definition: mp4_generic.h:45
Definition: mp4_generic.h:749