mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-02 21:24:15 -04:00
Add json parser for video rotation side data
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
46d559a0a1
commit
bf654bde60
@ -69,5 +69,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
/// <value>The DvBlSignalCompatibilityId.</value>
|
/// <value>The DvBlSignalCompatibilityId.</value>
|
||||||
[JsonPropertyName("dv_bl_signal_compatibility_id")]
|
[JsonPropertyName("dv_bl_signal_compatibility_id")]
|
||||||
public int? DvBlSignalCompatibilityId { get; set; }
|
public int? DvBlSignalCompatibilityId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Rotation.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The Rotation.</value>
|
||||||
|
[JsonPropertyName("rotation")]
|
||||||
|
public int? Rotation { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -887,8 +887,12 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||||||
stream.ElPresentFlag = data.ElPresentFlag;
|
stream.ElPresentFlag = data.ElPresentFlag;
|
||||||
stream.BlPresentFlag = data.BlPresentFlag;
|
stream.BlPresentFlag = data.BlPresentFlag;
|
||||||
stream.DvBlSignalCompatibilityId = data.DvBlSignalCompatibilityId;
|
stream.DvBlSignalCompatibilityId = data.DvBlSignalCompatibilityId;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
// Parse video rotation metadata from side_data
|
||||||
|
else if (string.Equals(data.SideDataType, "Display Matrix", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
stream.Rotation = data.Rotation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,6 +122,12 @@ namespace MediaBrowser.Model.Entities
|
|||||||
/// <value>The Dolby Vision bl signal compatibility id.</value>
|
/// <value>The Dolby Vision bl signal compatibility id.</value>
|
||||||
public int? DvBlSignalCompatibilityId { get; set; }
|
public int? DvBlSignalCompatibilityId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the Rotation.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The video rotation.</value>
|
||||||
|
public int? Rotation { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the comment.
|
/// Gets or sets the comment.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user