STSC en STTS boxes
This commit is contained in:
parent
9a1de4042e
commit
0fcc1c483d
4 changed files with 129 additions and 0 deletions
24
MP4/box_stsc.h
Normal file
24
MP4/box_stsc.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue