From 0edbb0f97b0b5136d16313e48ff5a79714abc0a7 Mon Sep 17 00:00:00 2001 From: Kamil Debski Date: Mon, 23 Jun 2014 14:01:17 +0200 Subject: v4l2-mfc-example: Add support for disabling FIMC The FIMC can now be disabled, so that only MFC can be tested by the application. Signed-off-by: Kamil Debski --- v4l2-mfc-example/args.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'v4l2-mfc-example/args.c') diff --git a/v4l2-mfc-example/args.c b/v4l2-mfc-example/args.c index 2161285..0e9e89c 100644 --- a/v4l2-mfc-example/args.c +++ b/v4l2-mfc-example/args.c @@ -33,7 +33,7 @@ void print_usage(char *name) { // "d:f:i:m:c:V" printf("Usage:\n"); - printf("\t./%s\n", name); + printf("\t%s\n", name); printf("\t-c - The codec of the encoded stream\n"); printf("\t\t Available codecs: mpeg4, h264\n"); printf("\t-d - Frame buffer device (e.g. /dev/fb0)\n"); @@ -85,6 +85,7 @@ int parse_args(struct instance *i, int argc, char **argv) break; case 'f': i->fimc.name = optarg; + i->fimc.enabled = 1; break; case 'i': i->in.name = optarg; @@ -101,8 +102,8 @@ int parse_args(struct instance *i, int argc, char **argv) } } - if (!i->in.name || !i->fb.name || !i->fimc.name || !i->mfc.name) { - err("The following arguments are required: -d -f -i -m -c"); + if (!i->in.name || !i->fb.name || !i->mfc.name) { + err("The following arguments are required: -d -i -m -c"); return -1; } -- cgit v1.2.3