added csc_set_method function.
in order to change a csc_method.
Change-Id: Ib2aafed595dfa1b5a8aec1503ed4a6852ccf1504
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
void *handle,
CSC_METHOD *method);
+/*
+ * set color space converter method
+ *
+ * @param handle
+ * CSC handle[in]
+ *
+ * @param method
+ * CSC method[in]
+ *
+ * @return
+ * error code
+ */
+CSC_ERRORCODE csc_set_method(
+ void *handle,
+ CSC_METHOD method);
+
/*
* Set hw property
*
return ret;
}
+CSC_ERRORCODE csc_set_method(
+ void *handle,
+ CSC_METHOD method)
+{
+ CSC_HANDLE *csc_handle;
+ CSC_ERRORCODE ret = CSC_ErrorNone;
+
+ if (handle == NULL)
+ return CSC_ErrorNotInit;
+ csc_handle = (CSC_HANDLE *)handle;
+
+ switch (method) {
+ case CSC_METHOD_SW:
+ case CSC_METHOD_HW:
+ csc_handle->csc_method = method;
+ break;
+ default:
+ ret = CSC_Error;
+ break;
+ }
+
+ return ret;
+}
+
CSC_ERRORCODE csc_set_hw_property(
void *handle,
CSC_HW_PROPERTY_TYPE property,