STSC en STTS boxes

This commit is contained in:
Erik Zandvliet 2011-01-11 21:21:30 +01:00
parent 9a1de4042e
commit 0fcc1c483d
4 changed files with 129 additions and 0 deletions

23
MP4/box_stts.h Normal file
View file

@ -0,0 +1,23 @@
#include "box.h"
#include <string>
#include <vector>
struct stts_record {
uint32_t SampleCount;
uint32_t SampleDelta;
};//stsc_record
class Box_stts {
public:
Box_stsc( );
~Box_stsc();
Box * GetBox();
void SetReserved( );
void AddEntry( uint32_t SampleCount, uint32_t SampleDelta, uint32_t Offset = 0 );
private:
Box * Container;
void WriteEntries( );
std::vector<stts_record> Entries;
};//Box_ftyp Class