mistserver/MP4/box_stsc.h
2011-01-11 21:21:30 +01:00

24 lines
509 B
C++

#include "box.h"
#include <string>
#include <vector>
struct stsc_record {
uint32_t FirstChunk;
uint32_t SamplesPerChunk;
uint32_t SampleDescIndex;
};//stsc_record
class Box_stsc {
public:
Box_stsc( );
~Box_stsc();
Box * GetBox();
void SetReserved( );
void AddEntry( uint32_t FirstChunk, uint32_t SamplesPerChunk, uint32_t SampleDescIndex, uint32_t Offset = 0 );
private:
Box * Container;
void WriteEntries( );
std::vector<stsc_record> Entries;
};//Box_ftyp Class