gstreamer/subprojects/gst-plugins-bad/gst-libs/gst/wayland
Robert Mader abf3361de3 waylandsink: Fix surface cropping for rotated streams
The wp_viewport source rectangle is applied in surface-local coordinates
after buffer_transform and buffer_scale. Therefore we need to swap width
and height for 90/270 deg. rotations.

This fixes playback of rotated videos such as portrait videos from
mobile devices.

See also: https://wayland.app/protocols/viewporter#wp_viewport

Fixes: 0b648f9a2d ("waylandsink: Crop surfaces to their display width height")
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7136>
2024-07-10 17:13:54 +00:00
..
gstwl_fwd.h gstwayland: Move reusable parts of the waylandsink into a library 2022-06-06 14:36:39 +02:00
gstwlbuffer.c wayland: Add API to ref/unref current GstBuffer inside a GstWlBuffer 2024-02-27 17:20:42 +00:00
gstwlbuffer.h wayland: Add API to ref/unref current GstBuffer inside a GstWlBuffer 2024-02-27 17:20:42 +00:00
gstwlcontext.c gst-plugins-bad: re-indent with GNU indent 2.2.12 2023-03-17 03:18:54 +00:00
gstwlcontext.h gstwayland: Move reusable parts of the waylandsink into a library 2022-06-06 14:36:39 +02:00
gstwldisplay.c wayland: Use wl_display_create_queue_with_name 2024-05-23 13:38:01 +00:00
gstwldisplay.h wayland: Add synchronized requests to WlDisplay 2024-02-27 17:20:42 +00:00
gstwllinuxdmabuf.c waylandsink: Improve DMA DRM integration 2023-08-01 14:55:23 -04:00
gstwllinuxdmabuf.h waylandsink: Improve DMA DRM integration 2023-08-01 14:55:23 -04:00
gstwlshmallocator.c GstShmAllocator: New shared memory allocator 2023-11-03 18:22:00 +00:00
gstwlshmallocator.h GstShmAllocator: New shared memory allocator 2023-11-03 18:22:00 +00:00
gstwlvideobufferpool.c wlvideobufferpool: Add DRM Dumb buffer support 2023-03-14 21:50:57 +00:00
gstwlvideobufferpool.h wlvideobufferpool: Add DRM Dumb buffer support 2023-03-14 21:50:57 +00:00
gstwlvideoformat.c waylandsink: fix incorrect RGB and BGR mapping about GST DRM and WL_SHM 2023-11-11 14:41:18 +00:00
gstwlvideoformat.h video-format: Fix up video formats ordering by quality 2023-10-02 09:39:21 +03:00
gstwlwindow.c waylandsink: Fix surface cropping for rotated streams 2024-07-10 17:13:54 +00:00
gstwlwindow.h waylandsink: Move buffer commits to the display thread 2024-02-27 17:20:42 +00:00
meson.build wayland: Use wl_display_create_queue_with_name 2024-05-23 13:38:01 +00:00
wayland-prelude.h gstwayland: Move reusable parts of the waylandsink into a library 2022-06-06 14:36:39 +02:00
wayland.h gstwayland: Move reusable parts of the waylandsink into a library 2022-06-06 14:36:39 +02:00