From 378bf2a0360161879efb842051933da4fb7e75c6 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Wed, 23 May 2012 01:30:58 +0300 Subject: Compose rectangle support for libv4l2subdev Signed-off-by: Sakari Ailus Signed-off-by: Laurent Pinchart --- src/main.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ca633c8..af16818 100644 --- a/src/main.c +++ b/src/main.c @@ -77,6 +77,20 @@ static void v4l2_subdev_print_format(struct media_entity *entity, printf("\n\t\t crop:(%u,%u)/%ux%u", rect.left, rect.top, rect.width, rect.height); + ret = v4l2_subdev_get_selection(entity, &rect, pad, + V4L2_SUBDEV_SEL_TGT_COMPOSE_BOUNDS, + which); + if (ret == 0) + printf("\n\t\t compose.bounds:%u,%u/%ux%u", + rect.left, rect.top, rect.width, rect.height); + + ret = v4l2_subdev_get_selection(entity, &rect, pad, + V4L2_SUBDEV_SEL_TGT_COMPOSE_ACTUAL, + which); + if (ret == 0) + printf("\n\t\t compose:%u,%u/%ux%u", + rect.left, rect.top, rect.width, rect.height); + printf("]\n"); } -- cgit v1.2.3