mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-19 19:58:36 -05:00
libobs,UI: Add P216/P416 pixel formats
Will be useful for ProRes.
This commit is contained in:
@@ -1006,6 +1006,8 @@ void OBSBasicSettings::LoadColorSpaces()
|
||||
#define CF_I444_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.I444")
|
||||
#define CF_P010_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.P010")
|
||||
#define CF_I010_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.I010")
|
||||
#define CF_P216_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.P216")
|
||||
#define CF_P416_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.P416")
|
||||
#define CF_BGRA_STR QTStr("Basic.Settings.Advanced.Video.ColorFormat.BGRA")
|
||||
|
||||
void OBSBasicSettings::LoadColorFormats()
|
||||
@@ -1015,6 +1017,8 @@ void OBSBasicSettings::LoadColorFormats()
|
||||
ui->colorFormat->addItem(CF_I444_STR, "I444");
|
||||
ui->colorFormat->addItem(CF_P010_STR, "P010");
|
||||
ui->colorFormat->addItem(CF_I010_STR, "I010");
|
||||
ui->colorFormat->addItem(CF_P216_STR, "P216");
|
||||
ui->colorFormat->addItem(CF_P416_STR, "P416");
|
||||
ui->colorFormat->addItem(CF_BGRA_STR, "RGB"); // Avoid config break
|
||||
}
|
||||
|
||||
@@ -2599,7 +2603,8 @@ void OBSBasicSettings::UpdateColorFormatSpaceWarning()
|
||||
switch (ui->colorSpace->currentIndex()) {
|
||||
case 3: /* Rec.2100 (PQ) */
|
||||
case 4: /* Rec.2100 (HLG) */
|
||||
if (format == "P010") {
|
||||
if ((format == "P010") || (format == "P216") ||
|
||||
(format == "P416")) {
|
||||
ui->advancedMsg2->clear();
|
||||
} else if (format == "I010") {
|
||||
ui->advancedMsg2->setText(
|
||||
@@ -2612,9 +2617,10 @@ void OBSBasicSettings::UpdateColorFormatSpaceWarning()
|
||||
default:
|
||||
if (format == "NV12") {
|
||||
ui->advancedMsg2->clear();
|
||||
} else if ((format == "I010") || (format == "P010")) {
|
||||
} else if ((format == "I010") || (format == "P010") ||
|
||||
(format == "P216") || (format == "P416")) {
|
||||
ui->advancedMsg2->setText(QTStr(
|
||||
"Basic.Settings.Advanced.FormatWarning10BitSdr"));
|
||||
"Basic.Settings.Advanced.FormatWarningPreciseSdr"));
|
||||
} else {
|
||||
ui->advancedMsg2->setText(
|
||||
QTStr("Basic.Settings.Advanced.FormatWarning"));
|
||||
|
||||
Reference in New Issue
Block a user