tagparser/avc/avcconfiguration.h

35 lines
619 B
C
Raw Normal View History

2015-04-22 19:22:01 +02:00
#ifndef AVCCONFIGURATION_H
#define AVCCONFIGURATION_H
2015-09-06 19:57:33 +02:00
#include "./avcinfo.h"
2015-04-22 19:22:01 +02:00
#include <vector>
namespace Media {
2016-02-17 20:19:05 +01:00
class MediaFormat;
2015-04-22 19:22:01 +02:00
struct LIB_EXPORT AvcConfiguration
{
AvcConfiguration();
2016-02-17 20:19:05 +01:00
byte profileIndication;
2015-04-22 19:22:01 +02:00
byte profileCompat;
2016-02-17 20:19:05 +01:00
byte levelIndication;
2015-04-22 19:22:01 +02:00
byte naluSizeLength;
std::vector<SpsInfo> spsInfos;
std::vector<PpsInfo> ppsInfos;
2016-02-17 20:19:05 +01:00
void parse(IoUtilities::BinaryReader &reader, uint64 maxSize);
2015-04-22 19:22:01 +02:00
};
inline AvcConfiguration::AvcConfiguration() :
2016-02-17 20:19:05 +01:00
profileIndication(0),
2015-04-22 19:22:01 +02:00
profileCompat(0),
2016-02-17 20:19:05 +01:00
levelIndication(0),
2015-04-22 19:22:01 +02:00
naluSizeLength(0)
{}
}
#endif // AVCCONFIGURATION_H