UI: Implement simple output mode presets for AMD

Closes jp9000/obs-studio#630
This commit is contained in:
Michael Fabian Dirks
2016-09-26 16:29:33 -07:00
committed by jp9000
parent 4d23e84837
commit 857cf00a39
4 changed files with 77 additions and 3 deletions

View File

@@ -2467,6 +2467,8 @@ void OBSBasicSettings::SaveOutputSettings()
presetType = "QSVPreset";
else if (encoder == SIMPLE_ENCODER_NVENC)
presetType = "NVENCPreset";
else if (encoder == SIMPLE_ENCODER_AMD)
presetType = "AMDPreset";
else
presetType = "Preset";
@@ -3246,6 +3248,10 @@ void OBSBasicSettings::FillSimpleRecordingValues()
ui->simpleOutRecEncoder->addItem(
ENCODER_STR("Hardware.NVENC"),
QString(SIMPLE_ENCODER_NVENC));
if (EncoderAvailable("amd_amf_h264"))
ui->simpleOutRecEncoder->addItem(
ENCODER_STR("Hardware.AMD"),
QString(SIMPLE_ENCODER_AMD));
#undef ADD_QUALITY
}
@@ -3262,6 +3268,10 @@ void OBSBasicSettings::FillSimpleStreamingValues()
ui->simpleOutStrEncoder->addItem(
ENCODER_STR("Hardware.NVENC"),
QString(SIMPLE_ENCODER_NVENC));
if (EncoderAvailable("amd_amf_h264"))
ui->simpleOutStrEncoder->addItem(
ENCODER_STR("Hardware.AMD"),
QString(SIMPLE_ENCODER_AMD));
#undef ENCODER_STR
}
@@ -3322,6 +3332,10 @@ void OBSBasicSettings::SimpleStreamingEncoderChanged()
defaultPreset = "default";
preset = curNVENCPreset;
} else if (encoder == SIMPLE_ENCODER_AMD) {
/* none */
defaultPreset = "";
} else {
ui->simpleOutPreset->addItem("ultrafast", "ultrafast");
ui->simpleOutPreset->addItem("superfast", "superfast");