Added several TS and NAL convenience functions

This commit is contained in:
Ramoe 2017-05-12 12:02:27 +02:00 committed by Thulinma
parent 45022f36c9
commit ae448d6e8a
4 changed files with 74 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <algorithm>
#include "dtsc.h"
#include "checksum.h"
#include <fstream>
/// Holds all TS processing related code.
namespace TS {
@ -26,6 +27,7 @@ namespace TS {
~Packet();
bool FromPointer(const char * data);
bool FromFile(FILE * data);
bool FromStream(std::istream & data);
//Base properties
void setPID(int NewPID);