Skip to content
GitLab
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
e15a56ab
Commit
e15a56ab
authored
Nov 28, 2022
by
Jean-Baptiste Mardelle
Browse files
Cleanup
parent
fbeb5572
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
e15a56ab
...
...
@@ -1322,7 +1322,13 @@ std::unique_ptr<Mlt::Producer> ProjectClip::getClone()
QPoint
ProjectClip
::
zone
()
const
{
return
ClipController
::
zone
();
int
in
=
getProducerIntProperty
(
QStringLiteral
(
"kdenlive:zone_in"
));
int
max
=
getFramePlaytime
()
-
1
;
int
out
=
qMin
(
getProducerIntProperty
(
QStringLiteral
(
"kdenlive:zone_out"
)),
max
);
if
(
out
<=
in
)
{
out
=
max
;
}
return
QPoint
(
in
,
out
);
}
const
QString
ProjectClip
::
hash
(
bool
createIfEmpty
)
...
...
src/mltcontroller/clipcontroller.cpp
View file @
e15a56ab
...
...
@@ -828,18 +828,6 @@ void ClipController::setZone(const QPoint &zone)
setProducerProperty
(
QStringLiteral
(
"kdenlive:zone_out"
),
zone
.
y
());
}
QPoint
ClipController
::
zone
()
const
{
int
in
=
getProducerIntProperty
(
QStringLiteral
(
"kdenlive:zone_in"
));
int
max
=
getFramePlaytime
()
-
1
;
int
out
=
qMin
(
getProducerIntProperty
(
QStringLiteral
(
"kdenlive:zone_out"
)),
max
);
if
(
out
<=
in
)
{
out
=
max
;
}
QPoint
zone
(
in
,
out
);
return
zone
;
}
const
QString
ClipController
::
getClipHash
()
const
{
return
getProducerProperty
(
QStringLiteral
(
"kdenlive:file_hash"
));
...
...
src/mltcontroller/clipcontroller.h
View file @
e15a56ab
...
...
@@ -161,7 +161,6 @@ public:
std
::
shared_ptr
<
MarkerSortModel
>
getFilteredMarkerModel
()
const
;
void
setZone
(
const
QPoint
&
zone
);
QPoint
zone
()
const
;
bool
hasLimitedDuration
()
const
;
void
forceLimitedDuration
();
Mlt
::
Properties
&
properties
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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