From 0700edb0d8fb3965cc80a2c30b101cab35d0b93f Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 2 Jun 2010 16:39:13 +0200 Subject: Print active formats when printing device topology When run with the -p argument, print the active format on all subdev pads. Signed-off-by: Laurent Pinchart --- subdev.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subdev.h') diff --git a/subdev.h b/subdev.h index aeb92d3..c431271 100644 --- a/subdev.h +++ b/subdev.h @@ -24,6 +24,10 @@ struct media_entity; +const char *pixelcode_to_string(enum v4l2_mbus_pixelcode code); +enum v4l2_mbus_pixelcode string_to_pixelcode(const char *string, + unsigned int length); + int v4l2_subdev_get_format(struct media_entity *entity, struct v4l2_mbus_framefmt *format, unsigned int pad, enum v4l2_subdev_format which); -- cgit v1.2.3