tagparser/ogg/oggstream.h

46 lines
772 B
C
Raw Normal View History

2015-04-22 19:22:01 +02:00
#ifndef MEDIA_OGGSTREAM_H
#define MEDIA_OGGSTREAM_H
2015-09-06 19:57:33 +02:00
#include "./oggpage.h"
#include "../abstracttrack.h"
2015-04-22 19:22:01 +02:00
namespace Media {
class OggContainer;
class OggIterator;
2016-08-29 15:43:05 +02:00
class TAG_PARSER_EXPORT OggStream : public AbstractTrack
2015-04-22 19:22:01 +02:00
{
friend class OggContainer;
public:
OggStream(OggContainer &container, std::vector<OggPage>::size_type startPage);
~OggStream();
TrackType type() const;
2016-03-22 22:52:36 +01:00
std::size_t startPage() const;
2015-04-22 19:22:01 +02:00
protected:
void internalParseHeader();
private:
2016-03-22 22:52:36 +01:00
std::size_t m_startPage;
2015-04-22 19:22:01 +02:00
OggContainer &m_container;
2016-01-17 19:32:58 +01:00
uint32 m_currentSequenceNumber;
2015-04-22 19:22:01 +02:00
};
2016-03-22 22:52:36 +01:00
inline std::size_t OggStream::startPage() const
{
return m_startPage;
}
2015-04-22 19:22:01 +02:00
inline TrackType OggStream::type() const
{
return TrackType::OggStream;
}
}
#endif // MEDIA_OGGSTREAM_H