Commit b0ab640b authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Add ITU 2020 colorspace in clip properties

parent 167eaacf
......@@ -935,12 +935,16 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
connect(box, &QCheckBox::stateChanged, this, &ClipPropertiesController::slotEnableForce);
combo = new QComboBox(this);
combo->setObjectName(QStringLiteral("force_colorspace_value"));
combo->addItem(ProfileRepository::getColorspaceDescription(240), 240);
combo->addItem(ProfileRepository::getColorspaceDescription(601), 601);
combo->addItem(ProfileRepository::getColorspaceDescription(709), 709);
combo->addItem(ProfileRepository::getColorspaceDescription(240), 240);
combo->addItem(ProfileRepository::getColorspaceDescription(10), 10);
int force_colorspace = m_properties->get_int("force_colorspace");
m_originalProperties.insert(QStringLiteral("force_colorspace"), force_colorspace == 0 ? QStringLiteral("-") : QString::number(force_colorspace));
int colorspace = controller->videoCodecProperty(QStringLiteral("colorspace")).toInt();
if (colorspace == 9) {
colorspace = 10;
}
if (force_colorspace > 0) {
box->setChecked(true);
combo->setEnabled(true);
......
......@@ -33,7 +33,7 @@
std::unique_ptr<ProfileRepository> ProfileRepository::instance;
std::once_flag ProfileRepository::m_onceFlag;
std::vector<std::pair<int, QString>> ProfileRepository::colorProfiles{
{601, QStringLiteral("ITU-R 601")}, {709, QStringLiteral("ITU-R 709")}, {240, QStringLiteral("SMPTE240M")}};
{601, QStringLiteral("ITU-R BT.601")}, {709, QStringLiteral("ITU-R BT.709")}, {240, QStringLiteral("SMPTE ST240")}, {9, QStringLiteral("ITU-R BT.2020")}, {10, QStringLiteral("ITU-R BT.2020")}};
ProfileRepository::ProfileRepository()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment