summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorTodor Tomov <ttomov@mm-sol.com>2010-06-30 10:55:43 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-07-01 10:34:32 +0200
commita04e11ca5bbf2a44539ee14e3077358a21262ba2 (patch)
tree8ea3e86da132a77ab8ccee3b909e727620db29ec /options.c
parentc13258a74fd7345828fce8fab117247e3f61e6e5 (diff)
V4L2 subdev frame interval support
Extend the V4L2 media bus format syntax to support an optional frame interval value. If specified, the frame interval is set on the subdev. Signed-off-by: Todor Tomov <ttomov@mm-sol.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'options.c')
-rw-r--r--options.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/options.c b/options.c
index 69ff9d5..6fd2daf 100644
--- a/options.c
+++ b/options.c
@@ -50,11 +50,12 @@ static void usage(const char *argv0, int verbose)
printf("\n");
printf("Links and formats are defined as\n");
printf("\tlink = pad, '->', pad, '[', flags, ']' ;\n");
- printf("\tformat = pad, '[', fcc, ' ', size, [ ' ', crop ], ']' ;\n");
+ printf("\tformat = pad, '[', fcc, ' ', size, [ ' ', crop ], [ ' ', '@', frame interval ], ']' ;\n");
printf("\tpad = entity, ':', pad number ;\n");
printf("\tentity = entity number | ( '\"', entity name, '\"' ) ;\n");
printf("\tsize = width, 'x', height ;\n");
printf("\tcrop = left, ',', top, '/', size ;\n");
+ printf("\tframe interval = numerator, '/', denominator ;\n");
printf("where the fields are\n");
printf("\tentity number Entity numeric identifier\n");
printf("\tentity name Entify name (string) \n");
@@ -63,6 +64,8 @@ static void usage(const char *argv0, int verbose)
printf("\tfcc Format FourCC\n");
printf("\twidth Image width in pixels\n");
printf("\theight Image height in pixels\n");
+ printf("\tnumerator Frame interval numerator\n");
+ printf("\tdenominator Frame interval denominator\n");
}
#define OPT_PRINT_DOT 256