From a7286563ee1fb0d3d2b3c24952288a8e493875da Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 15 Apr 2014 15:07:23 -0400 Subject: v4l2: Add initial support for alignment and cropping --- sys/v4l2/gstv4l2object.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/v4l2/gstv4l2object.h') diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index d61a274c8..e0edf1090 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -97,6 +97,10 @@ struct _GstV4l2Object { /* the current format */ struct v4l2_fmtdesc *fmtdesc; GstVideoInfo info; + GstVideoAlignment align; + + gboolean need_video_meta; + gboolean need_crop_meta; /* only used if the device supports MPLANE * nb planes is meaning of v4l2 planes @@ -254,8 +258,7 @@ GstCaps * gst_v4l2_object_get_caps (GstV4l2Object * v4l2object, GstCaps * filter); gboolean gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, - GstVideoInfo * info, - GstVideoAlignment * align); + GstVideoInfo * info); gboolean gst_v4l2_object_decide_allocation (GstV4l2Object * v4l2object, GstQuery * query); -- cgit v1.2.3