MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
mp4_ms.h
Go to the documentation of this file.
1 #pragma once
2 #include "mp4.h"
3 
4 namespace MP4 {
5  class SDTP: public Box {
6  public:
7  SDTP();
8  void setVersion(uint32_t newVersion);
9  uint32_t getVersion();
10  void setValue(uint32_t newValue, size_t index);
11  uint32_t getValue(size_t index);
12  std::string toPrettyString(uint32_t indent = 0);
13  };
14 
15  class UUID: public Box {
16  public:
17  UUID();
18  std::string getUUID();
19  void setUUID(const std::string & uuid_string);
20  void setUUID(const char * raw_uuid);
21  std::string toPrettyString(uint32_t indent = 0);
22  };
23 
24  class UUID_TrackFragmentReference: public UUID {
25  public:
26  UUID_TrackFragmentReference();
27  void setVersion(uint32_t newVersion);
28  uint32_t getVersion();
29  void setFlags(uint32_t newFlags);
30  uint32_t getFlags();
31  void setFragmentCount(uint32_t newCount);
32  uint32_t getFragmentCount();
33  void setTime(size_t num, uint64_t newTime);
34  uint64_t getTime(size_t num);
35  void setDuration(size_t num, uint64_t newDuration);
36  uint64_t getDuration(size_t num);
37  std::string toPrettyString(uint32_t indent = 0);
38  };
39 
40  class UUID_TFXD: public UUID {
41  public:
42  UUID_TFXD();
43  void setVersion(uint32_t newVersion);
44  uint32_t getVersion();
45  void setFlags(uint32_t newFlags);
46  uint32_t getFlags();
47  void setTime(uint64_t newTime);
48  uint64_t getTime();
49  void setDuration(uint64_t newDuration);
50  uint64_t getDuration();
51  std::string toPrettyString(uint32_t indent = 0);
52  };
53 }
uint32_t getValue(size_t index)
Definition: mp4_ms.cpp:30
Contains all MP4 format related code.
Definition: mp4.cpp:15
std::string toPrettyString(uint32_t indent=0)
Definition: mp4_ms.cpp:34
uint32_t getVersion()
Definition: mp4_ms.cpp:22
Box(char *datapointer=0, bool manage=true)
Creates a new box, optionally using the indicated pointer for storage.
Definition: mp4.cpp:21
SDTP()
Definition: mp4_ms.cpp:14
void setVersion(uint32_t newVersion)
Definition: mp4_ms.cpp:18
void setValue(uint32_t newValue, size_t index)
Definition: mp4_ms.cpp:26