[Transform] Change parameter spec of 'mode' property to enum
authorWook Song <wook16.song@samsung.com>
Mon, 11 Feb 2019 05:16:36 +0000 (14:16 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 15 Feb 2019 06:20:04 +0000 (15:20 +0900)
commitf06f6fe5add7ade4b44840043fb964f974b5c2bb
tree972aa65cc42f4a101689a1e46d6f4727a2bca8ff
parent8a611e154758d5e3327a03e38a39a33cc98f13dc
[Transform] Change parameter spec of 'mode' property to enum

This patch changes the existing parameter spec of string type
(g_param_spec) to the parameter spec of enum (g_param_enum), which gives
more flexibility by taking either strings or enum value, for the
arguments of the 'mode' property.  Moreover, this change makes the
gst-inspect-1.0 command show a list of supporting modes.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/nnstreamer/tensor_transform/tensor_transform.c
gst/nnstreamer/tensor_transform/tensor_transform.h