add simple comment for e_comp_image_filter_edge_detection_param_set function
add code for checking for out of range exception of parameters of edge_detection
Change-Id: I8adf9e5a261512e93fad2721baed7ad1b586a02d
E_View_Client *view_client;
Eina_List *l;
+ if (thickness <= 0.0 || thickness >= 5.0)
+ {
+ ERR("Invalid edge detection thickness value: %f", thickness);
+ return;
+ }
+
+ if (color_id < 1 || color_id > 4)
+ {
+ ERR("Invalid edge detection color_id value: %u", color_id);
+ return;
+ }
+
e_comp->edge_detection_thickness = thickness;
e_comp->edge_detection_color_id = color_id;
E_API int e_comp_nocomp_override_get(void);
E_API Eina_Bool e_comp_image_filter_set(E_Comp_Image_Filter filter);
+// 0.0 < thickness < 5.0 (default = 1.0)
+// color_id = 1: Optimized(black or white), 2: Black, 3: White, 4: Green (default = 1)
E_API void e_comp_image_filter_edge_detection_param_set(double thickness, unsigned int color_id);
E_API E_Comp_Image_Filter e_comp_image_filter_get(void);