ProtectionSchemeInfoBox.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /// Protection Scheme Info Box ("sinf")
  10. /// </summary>
  11. [Box("sinf", "Protection Scheme Info Box")]
  12. public class ProtectionSchemeInfoBox : Box, ISuperBox
  13. {
  14. public ProtectionSchemeInfoBox() : base() { }
  15. public ProtectionSchemeInfoBox(Stream stream) : base(stream) { }
  16. private IList<Box> _Children = Portability.CreateList<Box>();
  17. public IList<Box> Children
  18. {
  19. get { return _Children; }
  20. }
  21. public IEnumerator<Box> GetEnumerator()
  22. {
  23. return Children.GetEnumerator();
  24. }
  25. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  26. {
  27. return Children.GetEnumerator();
  28. }
  29. /*
  30. public OriginalFormatBox OriginalFormat
  31. {
  32. get
  33. {
  34. return (from c in Children
  35. where c is OriginalFormatBox
  36. select (OriginalFormatBox)c).FirstOrDefault();
  37. }
  38. }
  39. public SchemeTypeBox SchemeType
  40. {
  41. get
  42. {
  43. return (from c in Children
  44. where c is SchemeTypeBox
  45. select (SchemeTypeBox)c).FirstOrDefault();
  46. }
  47. }
  48. public SchemeInformationBox Info
  49. {
  50. get
  51. {
  52. return (from c in Children
  53. where c is SchemeInformationBox
  54. select (SchemeInformationBox)c).FirstOrDefault();
  55. }
  56. }
  57. */
  58. }
  59. }