summaryrefslogtreecommitdiff
path: root/v4l2-mfc-example/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'v4l2-mfc-example/args.c')
-rw-r--r--v4l2-mfc-example/args.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/v4l2-mfc-example/args.c b/v4l2-mfc-example/args.c
index e0298c0..1df7a38 100644
--- a/v4l2-mfc-example/args.c
+++ b/v4l2-mfc-example/args.c
@@ -42,6 +42,7 @@ void print_usage(char *name)
printf("\t-i <file> - Input file name\n");
printf("\t-m <device> - MFC device (e.g. /dev/video8)\n");
printf("\t-D <module>:<crtc>:<conn> - DRM module (e.g. exynos:4:17)\n");
+ printf("\t-B - use DMABUF instead of userptr for sharing buffers\n");
printf("\t-V - synchronise to vsync\n");
printf("\t\n");
printf("\tIf DRM or Frame buffer is used then FIMC should be suppplied.\n");
@@ -79,7 +80,7 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "c:d:f:i:m:VD:")) != -1) {
+ while ((c = getopt(argc, argv, "c:d:f:i:m:VD:B")) != -1) {
switch (c) {
case 'c':
i->parser.codec = get_codec(optarg);
@@ -101,6 +102,9 @@ int parse_args(struct instance *i, int argc, char **argv)
case 'V':
i->fimc.double_buf = 1;
break;
+ case 'B':
+ i->fimc.dmabuf = 1;
+ break;
case 'D':
/* Name */
tmp = optarg;