gst: add buffer video meta support

Fixes video buffer strides handling.
This enables passing of image datas with right line padding.
This commit is contained in:
Huang-Huang Bao 2023-02-03 13:02:49 +08:00 committed by Wim Taymans
parent 38f88d3d25
commit 023577e391
5 changed files with 93 additions and 0 deletions

View file

@ -27,6 +27,8 @@
#include <gst/gst.h>
#include <gst/video/video.h>
#include <pipewire/pipewire.h>
G_BEGIN_DECLS
@ -66,6 +68,9 @@ struct _GstPipeWirePool {
struct pw_stream *stream;
struct pw_type *t;
gboolean add_metavideo;
GstVideoInfo video_info;
GstAllocator *fd_allocator;
GstAllocator *dmabuf_allocator;