Skip to content

Commit

Permalink
Add note in Encoding Settings if on Vista with QSV compatible hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Sep 25, 2014
1 parent a976a2c commit 89b560b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions OBS.rc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ BEGIN
COMBOBOX IDC_AUDIOCHANNEL,354,115,61,62,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Settings.Info",IDC_INFO,4,288,417,37,NOT WS_VISIBLE
LTEXT "Settings.Encoding.Video.QSVConfigWarning",IDC_QSV_CONFIG_WARNING,4,141,417,37
LTEXT "Settings.Encoding.Video.QSVWinVerWarning",IDC_QSV_WINVER_WARNING,4,141,417,37
END

IDD_SETTINGS_VIDEO DIALOGEX 0, 0, 427, 336
Expand Down
13 changes: 13 additions & 0 deletions Source/Encoder_QSV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,19 @@ bool CheckQSVHardwareSupport(bool log=true, bool *configurationWarning = nullptr
return false;
}

bool IsKnownQSVCPUPlatform()
{
static qsv_cpu_platform plat = qsv_get_cpu_platform();
switch (plat)
{
case QSV_CPU_PLATFORM_SNB:
case QSV_CPU_PLATFORM_IVB:
case QSV_CPU_PLATFORM_HSW:
return true;
}
return false;
}

bool QSVMethodAvailable(decltype(mfxInfoMFX::RateControlMethod) method)
{
static qsv_cpu_platform plat = qsv_get_cpu_platform();
Expand Down
5 changes: 4 additions & 1 deletion Source/SettingsEncoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "Settings.h"

bool IsKnownQSVCPUPlatform();
bool CheckQSVHardwareSupport(bool log, bool *configurationWarning=nullptr);
bool CheckNVENCHardwareSupport(bool log);

Expand Down Expand Up @@ -168,7 +169,9 @@ INT_PTR SettingsEncoding::ProcMessage(UINT message, WPARAM wParam, LPARAM lParam
EnableWindow(GetDlgItem(hwnd, IDC_ENCODERQSV), hasQSV || useQSV);
EnableWindow(GetDlgItem(hwnd, IDC_ENCODERNVENC), hasNVENC || useNVENC);

ShowWindow(GetDlgItem(hwnd, IDC_QSV_CONFIG_WARNING), showQSVConfigurationWarning ? SW_SHOW : SW_HIDE);
bool QSVOnUnsupportedWinVer = OSGetVersion() < 7 && IsKnownQSVCPUPlatform() && !hasQSV;
ShowWindow(GetDlgItem(hwnd, IDC_QSV_WINVER_WARNING), QSVOnUnsupportedWinVer ? SW_SHOW : SW_HIDE);
ShowWindow(GetDlgItem(hwnd, IDC_QSV_CONFIG_WARNING), !QSVOnUnsupportedWinVer && showQSVConfigurationWarning ? SW_SHOW : SW_HIDE);

//--------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
#define IDC_WARNINGS 1030
#define IDC_QSV_CONFIG_WARNING 1030
#define IDC_FPS_EDIT 1031
#define IDC_QSV_WINVER_WARNING 1031
#define IDC_SIZEX 1033
#define IDC_SIZEY 1034
#define IDC_GAMMA 1035
Expand Down
1 change: 1 addition & 0 deletions rundir/locale/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ Settings.Encoding.Video.QualityTooltip="This setting will attempt to target a ce
Settings.Encoding.Video.EncoderQSVDisabledAfterApply="The 'Quick Sync' Encoder option will be disabled because your hardware does not seem to support Quick Sync."
Settings.Encoding.Video.EncoderNVENCDisabledAfterApply="The 'Nvidia NVENC' Encoder option will be disabled because your hardware does not seem to support Nvidia NVENC."
Settings.Encoding.Video.QSVConfigWarning="To enable the Quick Sync Encoder option make sure your CPU supports Quick Sync and the Intel graphics adapter is enabled in the BIOS. If you are using a laptop check the sticky thread 'Laptop? Black screen when capturing? Read here first.' in the Questions and Help forum."
Settings.Encoding.Video.QSVWinVerWarning="Quick Sync requires Windows 7 or later."

Settings.General.Add="Add New"
Settings.General.ConfirmDelete="Are you sure you wish to remove the profile '$1'?"
Expand Down

0 comments on commit 89b560b

Please sign in to comment.