Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
b0ab640b
Commit
b0ab640b
authored
Dec 20, 2020
by
Jean-Baptiste Mardelle
Browse files
Add ITU 2020 colorspace in clip properties
parent
167eaacf
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mltcontroller/clippropertiescontroller.cpp
View file @
b0ab640b
...
...
@@ -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
(
24
0
),
24
0
);
combo
->
addItem
(
ProfileRepository
::
getColorspaceDescription
(
1
0
),
1
0
);
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
);
...
...
src/profiles/profilerepository.cpp
View file @
b0ab640b
...
...
@@ -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
(
"SMPTE
240M
"
)}};
{
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
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment