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:
Robert Mader 2022-12-03 23:20:52 +01:00
parent fa799aac86
commit 2ed7afb76c
4 changed files with 52 additions and 2 deletions

View file

@ -57,6 +57,7 @@ struct _GstPipeWirePoolData {
GstBuffer *buf;
gboolean queued;
struct spa_meta_region *crop;
struct spa_meta_videotransform *videotransform;
};
struct _GstPipeWirePool {