MediaFrameInfo.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. using System.Collections.Generic;
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.MediaEncoding.Probing;
  4. /// <summary>
  5. /// Class MediaFrameInfo.
  6. /// </summary>
  7. public class MediaFrameInfo
  8. {
  9. /// <summary>
  10. /// Gets or sets the media type.
  11. /// </summary>
  12. [JsonPropertyName("media_type")]
  13. public string? MediaType { get; set; }
  14. /// <summary>
  15. /// Gets or sets the StreamIndex.
  16. /// </summary>
  17. [JsonPropertyName("stream_index")]
  18. public int? StreamIndex { get; set; }
  19. /// <summary>
  20. /// Gets or sets the KeyFrame.
  21. /// </summary>
  22. [JsonPropertyName("key_frame")]
  23. public int? KeyFrame { get; set; }
  24. /// <summary>
  25. /// Gets or sets the Pts.
  26. /// </summary>
  27. [JsonPropertyName("pts")]
  28. public long? Pts { get; set; }
  29. /// <summary>
  30. /// Gets or sets the PtsTime.
  31. /// </summary>
  32. [JsonPropertyName("pts_time")]
  33. public string? PtsTime { get; set; }
  34. /// <summary>
  35. /// Gets or sets the BestEffortTimestamp.
  36. /// </summary>
  37. [JsonPropertyName("best_effort_timestamp")]
  38. public long BestEffortTimestamp { get; set; }
  39. /// <summary>
  40. /// Gets or sets the BestEffortTimestampTime.
  41. /// </summary>
  42. [JsonPropertyName("best_effort_timestamp_time")]
  43. public string? BestEffortTimestampTime { get; set; }
  44. /// <summary>
  45. /// Gets or sets the Duration.
  46. /// </summary>
  47. [JsonPropertyName("duration")]
  48. public int Duration { get; set; }
  49. /// <summary>
  50. /// Gets or sets the DurationTime.
  51. /// </summary>
  52. [JsonPropertyName("duration_time")]
  53. public string? DurationTime { get; set; }
  54. /// <summary>
  55. /// Gets or sets the PktPos.
  56. /// </summary>
  57. [JsonPropertyName("pkt_pos")]
  58. public string? PktPos { get; set; }
  59. /// <summary>
  60. /// Gets or sets the PktSize.
  61. /// </summary>
  62. [JsonPropertyName("pkt_size")]
  63. public string? PktSize { get; set; }
  64. /// <summary>
  65. /// Gets or sets the Width.
  66. /// </summary>
  67. [JsonPropertyName("width")]
  68. public int? Width { get; set; }
  69. /// <summary>
  70. /// Gets or sets the Height.
  71. /// </summary>
  72. [JsonPropertyName("height")]
  73. public int? Height { get; set; }
  74. /// <summary>
  75. /// Gets or sets the CropTop.
  76. /// </summary>
  77. [JsonPropertyName("crop_top")]
  78. public int? CropTop { get; set; }
  79. /// <summary>
  80. /// Gets or sets the CropBottom.
  81. /// </summary>
  82. [JsonPropertyName("crop_bottom")]
  83. public int? CropBottom { get; set; }
  84. /// <summary>
  85. /// Gets or sets the CropLeft.
  86. /// </summary>
  87. [JsonPropertyName("crop_left")]
  88. public int? CropLeft { get; set; }
  89. /// <summary>
  90. /// Gets or sets the CropRight.
  91. /// </summary>
  92. [JsonPropertyName("crop_right")]
  93. public int? CropRight { get; set; }
  94. /// <summary>
  95. /// Gets or sets the PixFmt.
  96. /// </summary>
  97. [JsonPropertyName("pix_fmt")]
  98. public string? PixFmt { get; set; }
  99. /// <summary>
  100. /// Gets or sets the SampleAspectRatio.
  101. /// </summary>
  102. [JsonPropertyName("sample_aspect_ratio")]
  103. public string? SampleAspectRatio { get; set; }
  104. /// <summary>
  105. /// Gets or sets the PictType.
  106. /// </summary>
  107. [JsonPropertyName("pict_type")]
  108. public string? PictType { get; set; }
  109. /// <summary>
  110. /// Gets or sets the InterlacedFrame.
  111. /// </summary>
  112. [JsonPropertyName("interlaced_frame")]
  113. public int? InterlacedFrame { get; set; }
  114. /// <summary>
  115. /// Gets or sets the TopFieldFirst.
  116. /// </summary>
  117. [JsonPropertyName("top_field_first")]
  118. public int? TopFieldFirst { get; set; }
  119. /// <summary>
  120. /// Gets or sets the RepeatPict.
  121. /// </summary>
  122. [JsonPropertyName("repeat_pict")]
  123. public int? RepeatPict { get; set; }
  124. /// <summary>
  125. /// Gets or sets the ColorRange.
  126. /// </summary>
  127. [JsonPropertyName("color_range")]
  128. public string? ColorRange { get; set; }
  129. /// <summary>
  130. /// Gets or sets the ColorSpace.
  131. /// </summary>
  132. [JsonPropertyName("color_space")]
  133. public string? ColorSpace { get; set; }
  134. /// <summary>
  135. /// Gets or sets the ColorPrimaries.
  136. /// </summary>
  137. [JsonPropertyName("color_primaries")]
  138. public string? ColorPrimaries { get; set; }
  139. /// <summary>
  140. /// Gets or sets the ColorTransfer.
  141. /// </summary>
  142. [JsonPropertyName("color_transfer")]
  143. public string? ColorTransfer { get; set; }
  144. /// <summary>
  145. /// Gets or sets the ChromaLocation.
  146. /// </summary>
  147. [JsonPropertyName("chroma_location")]
  148. public string? ChromaLocation { get; set; }
  149. /// <summary>
  150. /// Gets or sets the SideDataList.
  151. /// </summary>
  152. [JsonPropertyName("side_data_list")]
  153. public IReadOnlyList<MediaFrameSideDataInfo>? SideDataList { get; set; }
  154. }