1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
namespace TagLib.Mpeg4
{
public class IsoSampleDescriptionBox : FullBox
{
//////////////////////////////////////////////////////////////////////////
// private properties
//////////////////////////////////////////////////////////////////////////
private uint entry_count;
//////////////////////////////////////////////////////////////////////////
// public methods
//////////////////////////////////////////////////////////////////////////
public IsoSampleDescriptionBox (BoxHeader header, Box parent) : base (header, parent)
{
File.Seek (base.DataPosition);
// This box just contains a number saying how many of the first boxes
// will be SampleEntries, since they can be named whatever they want to
// be.
entry_count = File.ReadBlock (4).ToUInt ();
}
//////////////////////////////////////////////////////////////////////////
// public properties
//////////////////////////////////////////////////////////////////////////
public uint EntryCount {get {return entry_count;}}
// This box contains no data and has children.
public override bool HasChildren {get {return true;}}
public override ByteVector Data
{
get {return null;}
set {}
}
// Offset for those bytes.
protected override long DataPosition {get {return base.DataPosition + 4;}}
protected override ulong DataSize {get {return base.DataSize - 4;}}
}
}
|