MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
nal.h
Go to the documentation of this file.
1 #pragma once
2 #include <deque>
3 #include <string>
4 #include <cstdio>
5 #include <deque>
6 #include "dtsc.h"
7 
8 namespace nalu {
9  struct nalData {
10  unsigned char nalType;
11  unsigned long nalSize;
12  };
13 
14  std::deque<int> parseNalSizes(DTSC::Packet & pack);
15  std::string removeEmulationPrevention(const std::string & data);
16 
17  unsigned long toAnnexB(const char * data, unsigned long dataSize, char *& result);
18  unsigned long fromAnnexB(const char * data, unsigned long dataSize, char *& result);
19 }
Definition: nal.h:9
unsigned char nalType
Definition: nal.h:10
std::string removeEmulationPrevention(const std::string &data)
Definition: nal.cpp:25
unsigned long toAnnexB(const char *data, unsigned long dataSize, char *&result)
Definition: nal.cpp:49
Definition: nal.cpp:10
unsigned long nalSize
Definition: nal.h:11
std::deque< int > parseNalSizes(DTSC::Packet &pack)
Definition: nal.cpp:11
unsigned long fromAnnexB(const char *data, unsigned long dataSize, char *&result)
Definition: nal.cpp:69
DTSC::Packets can currently be three types: DTSC_HEAD packets are the "DTSC" header string...
Definition: dtsc.h:100