/**
* @brief Sets the integer 64bit value of element's property in NNStreamer pipelines.
* @since_tizen 6.0
- * @remarks This function supports both Integer64 and Long.
* @param[in] elem_h The target element handle.
* @param[in] property_name The name of the property.
* @param[in] value The integer value to be set.
/**
* @brief Sets the unsigned integer 64bit value of element's property in NNStreamer pipelines.
* @since_tizen 6.0
- * @remarks This function supports both Unsigned Integer64 and Unsigned Long.
* @param[in] elem_h The target element handle.
* @param[in] property_name The name of the property.
* @param[in] value The unsigned integer 64bit value to be set.
/**
* @brief Gets the integer 64bit value of element's property in NNStreamer pipelines.
* @since_tizen 6.0
- * @remarks This function supports both Integer64 and Long.
* @param[in] elem_h The target element handle.
* @param[in] property_name The name of the property.
* @param[out] value The integer 64bit value of given property.
*/
int ml_pipeline_element_get_property_int64 (ml_pipeline_element_h elem_h, const char *property_name, int64_t *value);
-
/**
* @brief Gets the unsigned integer value of element's property in NNStreamer pipelines.
* @since_tizen 6.0
/**
* @brief Gets the unsigned integer 64bit value of element's property in NNStreamer pipelines.
* @since_tizen 6.0
- * @remarks This function supports both Unsigned Integer64 and Unsigned Long.
* @param[in] elem_h The target element handle.
* @param[in] property_name The name of the property.
* @param[out] value The unsigned integer 64bit value of given property.
status = ml_pipeline_element_set_property_enum (vscale_h, "method", 5U);
EXPECT_EQ (status, ML_ERROR_NONE);
+ status = ml_pipeline_element_set_property_int32 (vscale_h, "method", 4);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+
+ status = ml_pipeline_element_set_property_uint32 (vscale_h, "method", 2U);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+
status = ml_pipeline_element_release_handle (vscale_h);
EXPECT_EQ (status, ML_ERROR_NONE);
status = ml_pipeline_element_set_property_enum (vscale_h, "WRONG_NAME", 3U);
EXPECT_NE (status, ML_ERROR_NONE);
- status = ml_pipeline_element_set_property_uint32 (vscale_h, "method", 3U);
+ status = ml_pipeline_element_set_property_double (vscale_h, "method", 3.0);
EXPECT_NE (status, ML_ERROR_NONE);
status = ml_pipeline_element_release_handle (vscale_h);
ml_pipeline_element_h vscale_h = nullptr;
int status;
uint32_t ret_method;
+ int32_t ret_signed_method;
gchar *pipeline;
pipeline = g_strdup("videotestsrc name=vsrc is-live=true ! videoconvert ! videoscale name=vscale ! " \
EXPECT_EQ (status, ML_ERROR_NONE);
EXPECT_EQ (ret_method, 5U);
+ status = ml_pipeline_element_set_property_uint32 (vscale_h, "method", 2U);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+
+ status = ml_pipeline_element_get_property_uint32 (vscale_h, "method", &ret_method);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+ EXPECT_EQ (ret_method, 2U);
+
+ status = ml_pipeline_element_set_property_int32 (vscale_h, "method", 4);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+
+ status = ml_pipeline_element_get_property_int32 (vscale_h, "method", &ret_signed_method);
+ EXPECT_EQ (status, ML_ERROR_NONE);
+ EXPECT_EQ (ret_signed_method, 4);
+
status = ml_pipeline_element_release_handle (vscale_h);
EXPECT_EQ (status, ML_ERROR_NONE);
ml_pipeline_element_h vscale_h = nullptr;
int status;
uint32_t ret_method;
- uint32_t wrong_type;
+ double wrong_type;
gchar *pipeline;
pipeline = g_strdup("videotestsrc name=vsrc is-live=true ! videoconvert ! videoscale name=vscale ! " \
status = ml_pipeline_element_get_property_enum (vscale_h, "WRONG_NAME", &ret_method);
EXPECT_NE (status, ML_ERROR_NONE);
- status = ml_pipeline_element_get_property_uint32 (vscale_h, "method", &wrong_type);
+ status = ml_pipeline_element_get_property_double (vscale_h, "method", &wrong_type);
EXPECT_NE (status, ML_ERROR_NONE);
status = ml_pipeline_element_release_handle (vscale_h);