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-08-23 23:19:44 +02:00
|
|
|
class Diagnostics;
|
2016-02-17 20:19:05 +01:00
|
|
|
|
2018-03-07 01:17:50 +01:00
|
|
|
struct TAG_PARSER_EXPORT AvcConfiguration {
|
2015-04-22 19:22:01 +02:00
|
|
|
AvcConfiguration();
|
2019-03-13 19:06:42 +01:00
|
|
|
std::uint8_t profileIndication;
|
|
|
|
std::uint8_t profileCompat;
|
|
|
|
std::uint8_t levelIndication;
|
|
|
|
std::uint8_t naluSizeLength;
|
2015-04-22 19:22:01 +02:00
|
|
|
std::vector<SpsInfo> spsInfos;
|
|
|
|
std::vector<PpsInfo> ppsInfos;
|
2016-02-17 20:19:05 +01:00
|
|
|
|
2019-06-10 22:49:11 +02:00
|
|
|
void parse(CppUtilities::BinaryReader &reader, std::uint64_t maxSize, Diagnostics &diag);
|
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
|