Пример #1
0
        public Mp4StsdBox(Mp4SampleTable sampleTable) : base(12, Mp4BoxType.STSD)
        {
            this.Entries = new List <Mp4Box>();
            this.Size   += 4;
            int sampleDescriptionCount = sampleTable.SampleDescriptionCount;

            for (int i = 0; i < sampleDescriptionCount; i++)
            {
                Mp4SampleEntry sampleDescription = sampleTable.GetSampleDescription(i);
                this.Entries.Add(sampleDescription);
                this.Size += sampleDescription.Size;
            }
        }
Пример #2
0
 public virtual void AddSampleDescription(Mp4SampleEntry description)
 {
     this.AddSampleDescription(description, true);
 }
Пример #3
0
 public virtual void AddSampleDescription(Mp4SampleEntry description, bool transferOwnership)
 {
     this.sampleDescriptions.Add(new SampleDescriptionHolder(description, transferOwnership));
 }
Пример #4
0
 public SampleDescriptionHolder(Mp4SampleEntry description, bool isOwned)
 {
     this.SampleDescription = description;
     this.IsOwned           = isOwned;
 }