TrackReferenceBox.cs 935 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6. namespace MatrixIO.IO.Bmff.Boxes
  7. {
  8. /// <summary>
  9. /// Track Reference Box ("tref")
  10. /// </summary>
  11. [Box("tref", "Track Reference Box")]
  12. public class TrackReferenceBox : Box, ISuperBox
  13. {
  14. public TrackReferenceBox() : base() { }
  15. public TrackReferenceBox(Stream stream) : base(stream) { }
  16. public int EntryCount { get { return _Children.Count; } }
  17. private IList<Box> _Children = Portability.CreateList<Box>();
  18. public IList<Box> Children
  19. {
  20. get { return _Children; }
  21. }
  22. public IEnumerator<Box> GetEnumerator()
  23. {
  24. return Children.GetEnumerator();
  25. }
  26. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  27. {
  28. return Children.GetEnumerator();
  29. }
  30. }
  31. }