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;
/**
},
{
OPT_TST, "c", "catpure a output object or a layer object.\n\t\t'-l' is used to show the result on screen.",
- "<output_idx>[,<layer_idx>]~<w>x<h>[+<x>+<y>][,<h>x<v>][@<format>][*<transform>]", NULL
+ "<output_idx>[,<layer_idx>]~<w>x<h>[+<x>+<y>][,<h>x<v>][@<format>][*<transform>][^stream]", NULL
},
{
OPT_GEN, "w", "set the property of a object",
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