mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-19 16:46:36 +00:00
add Tonemapping relaying on nvdec and ocl
This commit is contained in:
@@ -279,6 +279,20 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
[JsonPropertyName("disposition")]
|
||||
public IReadOnlyDictionary<string, int> Disposition { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color range.
|
||||
/// </summary>
|
||||
/// <value>The color range.</value>
|
||||
[JsonPropertyName("color_range")]
|
||||
public string ColorRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color space.
|
||||
/// </summary>
|
||||
/// <value>The color space.</value>
|
||||
[JsonPropertyName("color_space")]
|
||||
public string ColorSpace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the color transfer.
|
||||
/// </summary>
|
||||
|
||||
@@ -703,6 +703,16 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
stream.RefFrames = streamInfo.Refs;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(streamInfo.ColorRange))
|
||||
{
|
||||
stream.ColorRange = streamInfo.ColorRange;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(streamInfo.ColorSpace))
|
||||
{
|
||||
stream.ColorSpace = streamInfo.ColorSpace;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(streamInfo.ColorTransfer))
|
||||
{
|
||||
stream.ColorTransfer = streamInfo.ColorTransfer;
|
||||
|
||||
Reference in New Issue
Block a user