45 lines
No EOL
945 B
C++
45 lines
No EOL
945 B
C++
#ifndef MKVP_BLOCKGROUP_HPP
|
|
#define MKVP_BLOCKGROUP_HPP
|
|
|
|
#include "blockentry.hpp"
|
|
#include "block.hpp"
|
|
|
|
namespace mkvparser
|
|
{
|
|
|
|
class Cluster;
|
|
|
|
class BlockGroup : public BlockEntry
|
|
{
|
|
BlockGroup(const BlockGroup&);
|
|
BlockGroup& operator=(const BlockGroup&);
|
|
|
|
public:
|
|
BlockGroup(
|
|
Cluster*,
|
|
long index,
|
|
long long block_start, //absolute pos of block's payload
|
|
long long block_size, //size of block's payload
|
|
long long prev,
|
|
long long next,
|
|
long long duration);
|
|
|
|
long Parse();
|
|
|
|
Kind GetKind() const;
|
|
const Block* GetBlock() const;
|
|
|
|
long long GetPrevTimeCode() const; //relative to block's time
|
|
long long GetNextTimeCode() const; //as above
|
|
long long GetDurationTimeCode() const;
|
|
|
|
private:
|
|
Block m_block;
|
|
const long long m_prev;
|
|
const long long m_next;
|
|
const long long m_duration;
|
|
};
|
|
|
|
} // namespace mkvparser
|
|
|
|
#endif // MKVP_BLOCKGROUP_HPP
|