From a753dba7ed68896912f291f7ca01edb85a66db75 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 11 Aug 2010 09:28:09 +0200 Subject: Add a --get-format option The option takes a pad name as argument and returns the active format (and optional crop settings if available) for that pad. Signed-off-by: Laurent Pinchart --- subdev.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subdev.h') diff --git a/subdev.h b/subdev.h index 7b65411..467bbcc 100644 --- a/subdev.h +++ b/subdev.h @@ -41,5 +41,8 @@ int v4l2_subdev_set_crop(struct media_entity *entity, struct v4l2_rect *rect, int v4l2_subdev_set_frame_interval(struct media_entity *entity, struct v4l2_fract *interval); +void v4l2_subdev_print_format(struct media_entity *entity, + unsigned int pad, enum v4l2_subdev_format which); + #endif -- cgit v1.2.3