diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-08-25 14:01:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-08-25 15:41:34 +0200 |
commit | b6f0fd6a2f459ead2268e07bfd86db7e303b323f (patch) | |
tree | 45924839707c05f807d36c69272f6e931284c26c /svx/qa/unit/data | |
parent | 9d2c9a592ad697fd332b9bccb63e30c955f49422 (diff) |
Related: tdf#149971 avmedia: add doc model and render for crop of media objects
It is possible to provide an explicit preview of media objects since
commit 8fa1d453c94cdbb03dac646fb8db2ebd1a0e84bd (Related: tdf#149971
svx: support explicitly provided snapshots for media shapes,
2022-08-24), however they can't be cropped.
This means that media shapes from PPTX with cropping show unexpected
content and can also have a buggy aspect ratio.
Extend avmedia::MediaItem to store cropping and take it into account
when returning the preview bitmap in SdrMediaObj::getSnapshot(). PPTX
import works out of the box, as oox/ already tried to set a cropping
property on the media shape.
This is just the preview, the cropping of the video itself is not yet
implemented.
Change-Id: I8db3e0dcf252613d56eb0e6139adf097e53b15cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138808
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'svx/qa/unit/data')
-rw-r--r-- | svx/qa/unit/data/video-snapshot.pptx | bin | 40194 -> 40759 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/svx/qa/unit/data/video-snapshot.pptx b/svx/qa/unit/data/video-snapshot.pptx Binary files differindex 9a0ec9ebd867..a212f105200f 100644 --- a/svx/qa/unit/data/video-snapshot.pptx +++ b/svx/qa/unit/data/video-snapshot.pptx |