MediaStream.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using System.Diagnostics;
  2. namespace MediaBrowser.Model.Entities
  3. {
  4. /// <summary>
  5. /// Class MediaStream
  6. /// </summary>
  7. [DebuggerDisplay("StreamType = {Type}")]
  8. public class MediaStream
  9. {
  10. /// <summary>
  11. /// Gets or sets the codec.
  12. /// </summary>
  13. /// <value>The codec.</value>
  14. public string Codec { get; set; }
  15. /// <summary>
  16. /// Gets or sets the language.
  17. /// </summary>
  18. /// <value>The language.</value>
  19. public string Language { get; set; }
  20. /// <summary>
  21. /// Gets or sets a value indicating whether this instance is interlaced.
  22. /// </summary>
  23. /// <value><c>true</c> if this instance is interlaced; otherwise, <c>false</c>.</value>
  24. public bool IsInterlaced { get; set; }
  25. /// <summary>
  26. /// Gets or sets the channel layout.
  27. /// </summary>
  28. /// <value>The channel layout.</value>
  29. public string ChannelLayout { get; set; }
  30. /// <summary>
  31. /// Gets or sets the bit rate.
  32. /// </summary>
  33. /// <value>The bit rate.</value>
  34. public int? BitRate { get; set; }
  35. /// <summary>
  36. /// Gets or sets the bit depth.
  37. /// </summary>
  38. /// <value>The bit depth.</value>
  39. public int? BitDepth { get; set; }
  40. /// <summary>
  41. /// Gets or sets the length of the packet.
  42. /// </summary>
  43. /// <value>The length of the packet.</value>
  44. public int? PacketLength { get; set; }
  45. /// <summary>
  46. /// Gets or sets the channels.
  47. /// </summary>
  48. /// <value>The channels.</value>
  49. public int? Channels { get; set; }
  50. /// <summary>
  51. /// Gets or sets the sample rate.
  52. /// </summary>
  53. /// <value>The sample rate.</value>
  54. public int? SampleRate { get; set; }
  55. /// <summary>
  56. /// Gets or sets a value indicating whether this instance is default.
  57. /// </summary>
  58. /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
  59. public bool IsDefault { get; set; }
  60. /// <summary>
  61. /// Gets or sets a value indicating whether this instance is forced.
  62. /// </summary>
  63. /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
  64. public bool IsForced { get; set; }
  65. /// <summary>
  66. /// Gets or sets the height.
  67. /// </summary>
  68. /// <value>The height.</value>
  69. public int? Height { get; set; }
  70. /// <summary>
  71. /// Gets or sets the width.
  72. /// </summary>
  73. /// <value>The width.</value>
  74. public int? Width { get; set; }
  75. /// <summary>
  76. /// Gets or sets the average frame rate.
  77. /// </summary>
  78. /// <value>The average frame rate.</value>
  79. public float? AverageFrameRate { get; set; }
  80. /// <summary>
  81. /// Gets or sets the real frame rate.
  82. /// </summary>
  83. /// <value>The real frame rate.</value>
  84. public float? RealFrameRate { get; set; }
  85. /// <summary>
  86. /// Gets or sets the profile.
  87. /// </summary>
  88. /// <value>The profile.</value>
  89. public string Profile { get; set; }
  90. /// <summary>
  91. /// Gets or sets the type.
  92. /// </summary>
  93. /// <value>The type.</value>
  94. public MediaStreamType Type { get; set; }
  95. /// <summary>
  96. /// Gets or sets the aspect ratio.
  97. /// </summary>
  98. /// <value>The aspect ratio.</value>
  99. public string AspectRatio { get; set; }
  100. /// <summary>
  101. /// Gets or sets the index.
  102. /// </summary>
  103. /// <value>The index.</value>
  104. public int Index { get; set; }
  105. /// <summary>
  106. /// Gets or sets a value indicating whether this instance is external.
  107. /// </summary>
  108. /// <value><c>true</c> if this instance is external; otherwise, <c>false</c>.</value>
  109. public bool IsExternal { get; set; }
  110. /// <summary>
  111. /// Gets or sets the filename.
  112. /// </summary>
  113. /// <value>The filename.</value>
  114. public string Path { get; set; }
  115. /// <summary>
  116. /// Gets or sets the pixel format.
  117. /// </summary>
  118. /// <value>The pixel format.</value>
  119. public string PixelFormat { get; set; }
  120. /// <summary>
  121. /// Gets or sets the level.
  122. /// </summary>
  123. /// <value>The level.</value>
  124. public double? Level { get; set; }
  125. }
  126. }