1 #ifndef TAG_PARSER_FLACMETADATAHEADER_H 2 #define TAG_PARSER_FLACMETADATAHEADER_H 6 #include <c++utilities/conversion/types.h> 21 return lhs ==
static_cast<byte
>(type);
26 return lhs !=
static_cast<byte
>(type);
33 void parseHeader(
const char *buffer);
34 void makeHeader(std::ostream &outputStream);
37 void setLast(byte last);
40 uint32 dataSize()
const;
41 void setDataSize(uint32 dataSize);
90 m_type =
static_cast<byte
>(
type);
114 void parse(
const char *buffer);
116 uint16 minBlockSize()
const;
117 uint16 maxBlockSize()
const;
118 uint32 minFrameSize()
const;
119 uint32 maxFrameSize()
const;
120 uint32 samplingFrequency()
const;
122 byte bitsPerSample()
const;
123 uint64 totalSampleCount()
const;
124 const char *md5Sum()
const;
127 uint16 m_minBlockSize;
128 uint16 m_maxBlockSize;
129 uint32 m_minFrameSize;
130 uint32 m_maxFrameSize;
131 uint32 m_samplingFrequency;
133 byte m_bitsPerSample;
134 uint64 m_totalSampleCount;
146 , m_samplingFrequency(0)
149 , m_totalSampleCount(0)
159 return m_minBlockSize;
169 return m_maxBlockSize;
179 return m_minFrameSize;
189 return m_maxFrameSize;
200 return m_samplingFrequency;
210 return m_channelCount;
222 return m_bitsPerSample;
235 return m_totalSampleCount;
253 void parse(std::istream &inputStream, uint32 maxSize);
254 uint32 requiredSize()
const;
255 void make(std::ostream &outputStream);
257 uint32 pictureType()
const;
258 void setPictureType(uint32 pictureType);
262 uint32 m_pictureType;
284 return m_pictureType;
305 #endif // TAG_PARSER_FLACMETADATAHEADER_H TAG_PARSER_EXPORT byte channelCount(byte config)
Returns the channel count for the specified MPEG-4 channel config.
constexpr bool operator==(byte lhs, FlacMetaDataBlockType type)
constexpr bool operator!=(byte lhs, FlacMetaDataBlockType type)
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.
FlacMetaDataBlockType
The FlacMetaDataBlockType enum specifies the type of FlacMetaDataBlockHeader.