From: Boram Park Date: Thu, 24 Nov 2016 10:40:35 +0000 (+0900) Subject: change tdm capture capbility X-Git-Tag: accepted/tizen/3.0.m2/mobile/20170104.142956~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F99934%2F2;p=platform%2Fcore%2Fuifw%2Flibtdm.git 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 --- 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