MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
mp4_dash.h
Go to the documentation of this file.
1 #pragma once
2 #include "mp4.h"
3 
4 namespace MP4 {
5  struct sidxReference {
6  bool referenceType;
7  uint32_t referencedSize;
8  uint32_t subSegmentDuration;
9  bool sapStart;
10  uint8_t sapType;
11  uint32_t sapDeltaTime;
12  };
13 
14  class SIDX: public fullBox {
15  public:
16  SIDX();
17  void setReferenceID(uint32_t newReferenceID);
18  uint32_t getReferenceID();
19  void setTimescale(uint32_t newTimescale);
20  uint32_t getTimescale();
21 
22  void setEarliestPresentationTime(uint64_t newEarliestPresentationTime);
23  uint64_t getEarliestPresentationTime();
24  void setFirstOffset(uint64_t newFirstOffset);
25  uint64_t getFirstOffset();
26 
27  uint16_t getReferenceCount();
28  void setReference(sidxReference & newRef, size_t index);
29  sidxReference getReference(size_t index);
30 
31  std::string toPrettyString(uint32_t indent = 0);
32  };
33 
34  class TFDT: public fullBox {
35  public:
36  TFDT();
37  void setBaseMediaDecodeTime(uint64_t newBaseMediaDecodeTime);
38  uint64_t getBaseMediaDecodeTime();
39 
40  std::string toPrettyString(uint32_t indent = 0);
41  };
42 
43  class IODS: public fullBox {
44  public:
45  IODS();
46  void setIODTypeTag(char value);
47  char getIODTypeTag();
48 
49  void setDescriptorTypeLength(char length);
50  char getDescriptorTypeLength();
51 
52  void setODID(short id);
53  short getODID();
54 
55  void setODProfileLevel(char value);
56  char getODProfileLevel();
57 
58  void setODSceneLevel(char value);
59  char getODSceneLevel();
60 
61  void setODAudioLevel(char value);
62  char getODAudioLevel();
63 
64  void setODVideoLevel(char value);
65  char getODVideoLevel();
66 
67  void setODGraphicsLevel(char value);
68  char getODGraphicsLevel();
69 
70  std::string toPrettyString(uint32_t indent = 0);
71  };
72 }
73 
Contains all MP4 format related code.
Definition: mp4.cpp:15
uint32_t subSegmentDuration
Definition: mp4_dash.h:8
bool referenceType
Definition: mp4_dash.h:6
bool sapStart
Definition: mp4_dash.h:9
uint32_t referencedSize
Definition: mp4_dash.h:7
uint8_t sapType
Definition: mp4_dash.h:10
uint32_t sapDeltaTime
Definition: mp4_dash.h:11