add tonemap algorithm setting to ffmpeg profile (#2039)
This commit is contained in:
@@ -154,6 +154,19 @@
|
||||
<MudTextField Disabled="@(_model.HardwareAcceleration != HardwareAccelerationKind.Qsv)" Label="QSV Extra Hardware Frames" @bind-Value="_model.QsvExtraHardwareFrames" For="@(() => _model.QsvExtraHardwareFrames)"/>
|
||||
</MudElement>
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudElement HtmlTag="div" Class="mt-3">
|
||||
<MudSelect Label="Tonemap Algorithm"
|
||||
@bind-Value="_model.TonemapAlgorithm"
|
||||
For="@(() => _model.TonemapAlgorithm)">
|
||||
@foreach (FFmpegProfileTonemapAlgorithm algorithm in Enum.GetValues<FFmpegProfileTonemapAlgorithm>())
|
||||
{
|
||||
<MudSelectItem Value="@algorithm">@algorithm</MudSelectItem>
|
||||
}
|
||||
</MudSelect>
|
||||
</MudElement>
|
||||
}
|
||||
<MudElement HtmlTag="div" Class="mt-3">
|
||||
<MudCheckBox Label="Normalize Frame Rate" @bind-Value="@_model.NormalizeFramerate" For="@(() => _model.NormalizeFramerate)"/>
|
||||
</MudElement>
|
||||
|
||||
@@ -38,6 +38,7 @@ public class FFmpegProfileEditViewModel
|
||||
VideoPreset = viewModel.VideoPreset;
|
||||
AllowBFrames = viewModel.AllowBFrames;
|
||||
BitDepth = viewModel.BitDepth;
|
||||
TonemapAlgorithm = viewModel.TonemapAlgorithm;
|
||||
}
|
||||
|
||||
public int AudioBitrate { get; set; }
|
||||
@@ -65,6 +66,7 @@ public class FFmpegProfileEditViewModel
|
||||
public string VideoPreset { get; set; }
|
||||
public bool AllowBFrames { get; set; }
|
||||
public FFmpegProfileBitDepth BitDepth { get; set; }
|
||||
public FFmpegProfileTonemapAlgorithm TonemapAlgorithm { get; set; }
|
||||
|
||||
public CreateFFmpegProfile ToCreate() =>
|
||||
new(
|
||||
@@ -84,6 +86,7 @@ public class FFmpegProfileEditViewModel
|
||||
BitDepth,
|
||||
VideoBitrate,
|
||||
VideoBufferSize,
|
||||
TonemapAlgorithm,
|
||||
AudioFormat,
|
||||
AudioBitrate,
|
||||
AudioBufferSize,
|
||||
@@ -113,6 +116,7 @@ public class FFmpegProfileEditViewModel
|
||||
BitDepth,
|
||||
VideoBitrate,
|
||||
VideoBufferSize,
|
||||
TonemapAlgorithm,
|
||||
AudioFormat,
|
||||
AudioBitrate,
|
||||
AudioBufferSize,
|
||||
|
||||
Reference in New Issue
Block a user