mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-01-04 11:08:56 -05:00
gst: Implement SPA_META_VideoTransform support
Many Gstreamer elements support transforming buffers via the `image-orientation` tag. Use it to implement support for the new VideoTransform meta. In order for Gstreamer pipelines to enable support for these tags usually the rotate method has to be set to `auto` or `automatic`, e.g. `videoflip method=automatic`, `glimagesink rotate-method=automatic` or `waylandsink rotate-method=auto`.
This commit is contained in:
parent
fa799aac86
commit
2ed7afb76c
4 changed files with 52 additions and 2 deletions
|
|
@ -115,6 +115,8 @@ void gst_pipewire_pool_wrap_buffer (GstPipeWirePool *pool, struct pw_buffer *b)
|
|||
data->crop = spa_buffer_find_meta_data (b->buffer, SPA_META_VideoCrop, sizeof(*data->crop));
|
||||
if (data->crop)
|
||||
gst_buffer_add_video_crop_meta(buf);
|
||||
data->videotransform =
|
||||
spa_buffer_find_meta_data (b->buffer, SPA_META_VideoTransform, sizeof(*data->videotransform));
|
||||
|
||||
gst_mini_object_set_qdata (GST_MINI_OBJECT_CAST (buf),
|
||||
pool_data_quark,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue