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
cace11e6
Commit
cace11e6
authored
Apr 13, 2020
by
Jean-Baptiste Mardelle
Browse files
Export frame should use source resolution instead of project resolution
BUG: 419824
parent
56eac7f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitorproxy.cpp
View file @
cace11e6
...
...
@@ -227,8 +227,17 @@ QImage MonitorProxy::extractFrame(int frame_position, const QString &path, int w
width
++
;
}
if
(
!
path
.
isEmpty
())
{
QScopedPointer
<
Mlt
::
Producer
>
producer
(
new
Mlt
::
Producer
(
pCore
->
getCurrentProfile
()
->
profile
(),
path
.
toUtf8
().
constData
()));
QScopedPointer
<
Mlt
::
Profile
>
tmpProfile
(
new
Mlt
::
Profile
());
QScopedPointer
<
Mlt
::
Producer
>
producer
(
new
Mlt
::
Producer
(
*
tmpProfile
,
path
.
toUtf8
().
constData
()));
if
(
producer
&&
producer
->
is_valid
())
{
tmpProfile
->
from_producer
(
*
producer
);
width
=
tmpProfile
->
width
();
height
=
tmpProfile
->
height
();
double
projectFps
=
pCore
->
getCurrentFps
();
double
currentFps
=
tmpProfile
->
fps
();
if
(
!
qFuzzyCompare
(
projectFps
,
currentFps
))
{
frame_position
=
frame_position
*
currentFps
/
projectFps
;
}
QImage
img
=
KThumb
::
getFrame
(
producer
.
data
(),
frame_position
,
width
,
height
);
return
img
;
}
...
...
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