mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-20 20:29:00 -05:00
UI: Implement simple output mode presets for AMD
Closes jp9000/obs-studio#630
This commit is contained in:
committed by
jp9000
parent
4d23e84837
commit
857cf00a39
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user