2018-03-06 23:09:15 +01:00
|
|
|
#ifndef TAG_PARSER_AVCCONFIGURATION_H
|
|
|
|
#define TAG_PARSER_AVCCONFIGURATION_H
|
2015-04-22 19:22:01 +02:00
|
|
|
|
2015-09-06 19:57:33 +02:00
|
|
|
#include "./avcinfo.h"
|
2015-04-22 19:22:01 +02:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2018-03-06 23:09:15 +01:00
|
|
|
namespace TagParser {
|
2015-04-22 19:22:01 +02:00
|
|
|
|
2016-02-17 20:19:05 +01:00
|
|
|
class MediaFormat;
|
|
|
|
|
2018-03-07 01:17:50 +01:00
|
|
|
struct TAG_PARSER_EXPORT AvcConfiguration {
|
2015-04-22 19:22:01 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2016-08-04 00:16:19 +02:00
|
|
|
/*!
|
|
|
|
* \brief Constructs an empty AVC configuration.
|
|
|
|
*/
|
2018-03-07 01:17:50 +01:00
|
|
|
inline AvcConfiguration::AvcConfiguration()
|
|
|
|
: profileIndication(0)
|
|
|
|
, profileCompat(0)
|
|
|
|
, levelIndication(0)
|
|
|
|
, naluSizeLength(0)
|
|
|
|
{
|
2015-04-22 19:22:01 +02:00
|
|
|
}
|
|
|
|
|
2018-03-07 01:17:50 +01:00
|
|
|
} // namespace TagParser
|
|
|
|
|
2018-03-06 23:09:15 +01:00
|
|
|
#endif // TAG_PARSER_AVCCONFIGURATION_H
|