From 885404c5e083b39778a939a6b131294d176d7564 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Thu, 24 Nov 2016 19:40:35 +0900 Subject: [PATCH] change tdm capture capbility scale & transform seem the default capability. remove it. tdm backend might support both oneshot and stream dump. And it's possible for backend to support stream dump only. Change-Id: I46b534c432dd15117658296d3eb427a9f004f3d9 --- include/tdm_common.h | 4 ++-- tools/tdm_test_server.c | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/include/tdm_common.h b/include/tdm_common.h index 1894505..3b9f5fa 100644 --- a/include/tdm_common.h +++ b/include/tdm_common.h @@ -143,8 +143,8 @@ typedef enum { typedef enum { TDM_CAPTURE_CAPABILITY_OUTPUT = (1 << 0), /**< The capture device supports to dump a output */ TDM_CAPTURE_CAPABILITY_LAYER = (1 << 1), /**< The capture device supports to dump a layer */ - TDM_CAPTURE_CAPABILITY_SCALE = (1 << 4), /**< The capture device supports scale operation */ - TDM_CAPTURE_CAPABILITY_TRANSFORM = (1 << 5), /**< The capture device supports transform operation */ + TDM_CAPTURE_CAPABILITY_ONESHOT = (1 << 4), /**< The capture device supports oneshot dump */ + TDM_CAPTURE_CAPABILITY_STREAM = (1 << 5), /**< The capture device supports streamp sump */ } tdm_capture_capability; /** diff --git a/tools/tdm_test_server.c b/tools/tdm_test_server.c index e7ee525..4ea6d11 100644 --- a/tools/tdm_test_server.c +++ b/tools/tdm_test_server.c @@ -105,7 +105,7 @@ static struct optstrings optstrs[] = { }, { OPT_TST, "c", "catpure a output object or a layer object.\n\t\t'-l' is used to show the result on screen.", - "[,]~x[++][,x][@][*]", NULL + "[,]~x[++][,x][@][*][^stream]", NULL }, { OPT_GEN, "w", "set the property of a object", @@ -421,6 +421,13 @@ parse_arg_c(tdm_test_server_capture *c, char *arg) arg = end + 1; capture_info->transform = strtol(arg, &end, 10); } + if (*end == '^') { + arg = end + 1; + if (strtol(arg, &end, 10) > 0) + capture_info->type = TDM_CAPTURE_TYPE_STREAM; + else + capture_info->type = TDM_CAPTURE_TYPE_ONESHOT; + } } static void -- 2.7.4