916848d877
If a media shape had cropping defined, we already took that into account when presenting a preview for it, but not during video playback. The reason for this is that the preview may be set by a file importer (e.g. PPTX) explicitly, in which case the preview is a bitmap we get without any video processing. As a start, implement video crop for the gstreamer backend (used on Linux), and also pass in the media item (containing crop and other properties) both during the edit view (MediaWindowImpl) and presenting (ViewMediaShape). We pass in the whole media item, so in case later other filters (e.g. black-and-white) are wanted, we have all that info in the backends already. Other backends (avmediaMacAVF and avmediawin) are untouched so far. svx/qa/unit/data/video-snapshot.pptx is modified to have a yellow border when cropping is unimplemented, which is now not visible with the gtreamer backend, matching PowerPoint behavior. PPTX export was working out of the box already. Change-Id: If26b7a4391bcffe9cbddd9933e1bab69be52924e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138867 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_Library_Library,avmediagst))
|
|
|
|
$(eval $(call gb_Library_set_componentfile,avmediagst,avmedia/source/gstreamer/avmediagstreamer,services))
|
|
|
|
$(eval $(call gb_Library_set_include,avmediagst,\
|
|
$$(INCLUDE) \
|
|
-I$(SRCDIR)/avmedia/source/inc \
|
|
$(GSTREAMER_1_0_CFLAGS) \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_libs,avmediagst,\
|
|
$(GSTREAMER_1_0_LIBS) \
|
|
))
|
|
|
|
$(eval $(call gb_Library_use_external,avmediagst,boost_headers))
|
|
|
|
$(eval $(call gb_Library_use_sdk_api,avmediagst))
|
|
|
|
$(eval $(call gb_Library_use_libraries,avmediagst,\
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
sal \
|
|
salhelper \
|
|
tl \
|
|
vcl \
|
|
avmedia \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,avmediagst,\
|
|
avmedia/source/gstreamer/gstmanager \
|
|
avmedia/source/gstreamer/gstplayer \
|
|
avmedia/source/gstreamer/gstwindow \
|
|
avmedia/source/gstreamer/gstframegrabber \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|