Skip to content

Commit 26dbb93

Browse files
committed
Rename QSV cores to Media Engine.
1 parent 39eb4d4 commit 26dbb93

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

VidCoder/Resources/OptionsRes.Designer.cs

Lines changed: 12 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

VidCoder/Resources/OptionsRes.resx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,12 @@ Polling: Periodically checks the contents of the folders. Uses significant CPU a
470470
<value>Supported codecs: {0}</value>
471471
<comment>Format string for codec lists. {0} is replaced with comma-separated list of codecs.</comment>
472472
</data>
473-
<data name="QsvEncoderCount" xml:space="preserve">
474-
<value>QSV Encoder Cores: {0}</value>
475-
<comment>Indicator for how many QSV cores are available on the system.
476-
{0} is the number of cores, for example "2"</comment>
473+
<data name="QsvMediaEngineCount" xml:space="preserve">
474+
<value>Media Engines: {0}</value>
475+
<comment>Indicator for how many QSV media engines are available on the system.
476+
{0} is the number of media engines, for example "2"</comment>
477+
</data>
478+
<data name="EnableQuickSyncHyperEncodeToolTip" xml:space="preserve">
479+
<value>Use multiple media engines to speed up a single encode where supported. Disable to allow load balancing multiple parallel encodes across media engines.</value>
477480
</data>
478481
</root>

VidCoder/Services/QsvLoadBalancingService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public int GetQsvGpu(VCJob job)
3535
return -1;
3636
}
3737

38+
if (this.qsvGpus.Count <= 1)
39+
{
40+
return -1;
41+
}
42+
3843
this.currentGpuIndex++;
3944

4045
return this.qsvGpus[this.currentGpuIndex % this.qsvGpus.Count];

VidCoder/View/OptionsDialog.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,15 @@
476476
<StackPanel Orientation="Vertical" Visibility="{Binding IsQuickSyncAvailable, Converter={StaticResource VisibilityConverter}}">
477477
<controls:AvailabilityIndicator />
478478
<TextBlock Margin="0 2 0 0" Text="{Binding QsvEncoders}" />
479-
<TextBlock Margin="0 2 0 0" Text="{Binding QsvEncoderCount}" />
479+
<TextBlock Margin="0 2 0 0" Text="{Binding QsvMediaEngineCount}" />
480480

481481
<CheckBox
482482
Margin="0 6 0 0"
483483
HorizontalAlignment="Left"
484484
VerticalAlignment="Center"
485485
Content="{x:Static res:OptionsRes.EnableQuickSyncHyperEncodeCheckBox}"
486-
IsChecked="{Binding EnableQuickSyncHyperEncode}" />
486+
IsChecked="{Binding EnableQuickSyncHyperEncode}"
487+
ToolTip="{x:Static res:OptionsRes.EnableQuickSyncHyperEncodeToolTip}" />
487488
<CheckBox
488489
Margin="0 6 0 0"
489490
HorizontalAlignment="Left"

VidCoder/ViewModel/OptionsDialogViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public OptionsDialogViewModel(IUpdater updateService)
184184
this.PlayerChoices = Players.All;
185185

186186
int qsvCount = HandBrakeEncoderHelpers.GetQsvAdaptorList().Count();
187-
this.QsvEncoderCount = string.Format(OptionsRes.QsvEncoderCount, qsvCount);
187+
this.QsvMediaEngineCount = string.Format(OptionsRes.QsvMediaEngineCount, qsvCount);
188188

189189
int tabIndex = Config.OptionsDialogLastTab;
190190
if (tabIndex >= this.Tabs.Count)
@@ -725,7 +725,7 @@ private static string GetEncodersByPrefix(List<HBVideoEncoder> encoders, string
725725

726726
public string MFEncoders => GetEncodersByPrefix(HandBrakeEncoderHelpers.VideoEncoders, "mf_");
727727

728-
public string QsvEncoderCount { get; }
728+
public string QsvMediaEngineCount { get; }
729729

730730
public bool EnableQuickSyncDecoding
731731
{

0 commit comments

Comments
 (0)