diff options
| author | Sakari Ailus <sakari.ailus@iki.fi> | 2012-05-23 01:30:58 +0300 | 
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-25 12:23:13 +0200 | 
| commit | 378bf2a0360161879efb842051933da4fb7e75c6 (patch) | |
| tree | b60cca8f20a5b8b3aa2c84c87a052b5af4f7e55b /src/main.c | |
| parent | 79fc1080b905dc3d61a93c31f68acaf3b4985c57 (diff) | |
Compose rectangle support for libv4l2subdev
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 14 | 
1 files changed, 14 insertions, 0 deletions
| @@ -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");  } | 
