video: Exposed APIs related video.
authorSeunghun <shiin.lee@samsung.com>
Thu, 7 Mar 2019 08:06:33 +0000 (17:06 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2019 10:00:22 +0000 (19:00 +0900)
'E_Client_Video' APIs has to be exposed for video modules.

Change-Id: I0fd5012d49c2df39a8f08b141a0c4b391d0b517c

14 files changed:
src/bin/e_comp_screen.c
src/bin/e_comp_screen.h
src/bin/e_comp_wl.c
src/bin/e_comp_wl.h
src/bin/e_eom.c
src/bin/e_eom.h
src/bin/video/e_client_video.c
src/bin/video/e_client_video.h
src/bin/video/e_comp_wl_video_buffer.c
src/bin/video/e_comp_wl_video_buffer.h
src/bin/video/e_video_debug.c
src/bin/video/e_video_debug.h
src/bin/video/e_zone_video.c
src/bin/video/e_zone_video.h

index 8cd3efbbcc93830b7b849eb80da72fc7310c9252..30fface11f3621715927014642d29cae2b8d1509 100644 (file)
@@ -1428,7 +1428,7 @@ _e_comp_screen_eoutput_get_by_toutput(tdm_output *output)
    return NULL;
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_comp_screen_available_video_formats_get(const tbm_format **formats, int *count)
 {
    E_Output *output;
index cb8ee5293bc9d64fe6edd91749d30577adfeeeec..9e0711fdfa99d4ca693bdc3e23b8f2d7240fa498 100644 (file)
@@ -61,7 +61,7 @@ EINTERN E_Output        * e_comp_screen_primary_output_get(E_Comp_Screen *e_comp
 
 EINTERN Eina_Bool         e_comp_screen_pp_support(void);
 EINTERN Eina_List       * e_comp_screen_pp_available_formats_get(void);
-EINTERN Eina_Bool         e_comp_screen_available_video_formats_get(const tbm_format **formats, int *count);
+E_API   Eina_Bool         e_comp_screen_available_video_formats_get(const tbm_format **formats, int *count);
 
 
 #endif /*E_COMP_SCREEN_H*/
index 2b5f7d98744aec27e78005564220cb819798f188..08e70723379e94476905890bf7f055726ea35d6b 100644 (file)
@@ -263,7 +263,7 @@ e_comp_wl_map_size_cal_from_viewport(E_Client *ec)
    ec->comp_data->height_from_viewport = height;
 }
 
-EINTERN E_Client*
+E_API E_Client*
 e_comp_wl_topmost_parent_get(E_Client *ec)
 {
    E_Client *parent = NULL;
index 64cd6067a475b799528d17be8cca70313e718287..0b059aab2dcf01db8562046b702a195d1481c909 100644 (file)
@@ -538,7 +538,7 @@ E_API void e_comp_wl_shell_surface_ready(E_Client *ec);
 
 EINTERN Eina_Bool e_comp_wl_video_subsurface_has(E_Client *ec);
 EINTERN Eina_Bool e_comp_wl_normal_subsurface_has(E_Client *ec);
-EINTERN E_Client* e_comp_wl_topmost_parent_get(E_Client *ec);
+E_API   E_Client* e_comp_wl_topmost_parent_get(E_Client *ec);
 
 E_API enum wl_output_transform e_comp_wl_output_buffer_transform_get(E_Client *ec);
 E_API void e_comp_wl_map_size_cal_from_buffer(E_Client *ec);
index 886220261fdbce4a5b5ff318e1bbfdbcab1d8af6..f83d118ad82e461b1f1ee5a8f576e98b8d9a332a 100644 (file)
@@ -2437,7 +2437,7 @@ e_eom_shutdown(void)
    return 1;
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_eom_is_ec_external(E_Client *ec)
 {
    E_EomOutputPtr eom_output;
index 18a9a7840ae44d51d91ed36828501a594bd99b26..160f2f14f5b163a914897c2a97b211ec122fde16 100644 (file)
@@ -8,7 +8,7 @@
 
 EINTERN int e_eom_init(void);
 EINTERN int e_eom_shutdown(void);
-EINTERN Eina_Bool e_eom_is_ec_external(E_Client *ec);
+E_API   Eina_Bool e_eom_is_ec_external(E_Client *ec);
 EINTERN tdm_output* e_eom_tdm_output_by_ec_get(E_Client *ec);
 EINTERN Eina_Bool e_eom_connect(E_Output *output);
 EINTERN Eina_Bool e_eom_disconnect(E_Output *output);
index 11098ae539bc65f4804e2cf284cb5c8478e5d455..cafcf8a7d0887038f8d0ebdfd53a3df9b3a0f6f7 100644 (file)
@@ -155,7 +155,7 @@ _e_client_video_deinit(E_Client_Video *ecv)
    E_FREE_FUNC(ecv->eeh_zone_set, ecore_event_handler_del);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_set(E_Client *ec)
 {
    E_Client_Video *ecv;
@@ -200,7 +200,7 @@ e_client_video_set(E_Client *ec)
    return EINA_TRUE;
 }
 
-EINTERN void
+E_API void
 e_client_video_unset(E_Client *ec)
 {
    API_ENTRY;
@@ -215,7 +215,7 @@ e_client_video_unset(E_Client *ec)
    free(ecv);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_topmost_visibility_follow(E_Client *ec)
 {
    IFACE_CHECK_RET(follow_topmost_visibility, EINA_FALSE);
@@ -223,7 +223,7 @@ e_client_video_topmost_visibility_follow(E_Client *ec)
    return ecv->iface->follow_topmost_visibility(ecv->iface);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_topmost_visibility_unfollow(E_Client *ec)
 {
    IFACE_CHECK_RET(unfollow_topmost_visibility, EINA_FALSE);
@@ -247,7 +247,7 @@ e_client_video_property_disallow(E_Client *ec)
    return ecv->iface->disallowed_property(ecv->iface);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_property_get(E_Client *ec, unsigned int id, tdm_value *value)
 {
    IFACE_CHECK_RET(property_get, EINA_FALSE);
@@ -255,7 +255,7 @@ e_client_video_property_get(E_Client *ec, unsigned int id, tdm_value *value)
    return ecv->iface->property_get(ecv->iface, id, value);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_property_set(E_Client *ec, unsigned int id, tdm_value value)
 {
    IFACE_CHECK_RET(property_set, EINA_FALSE);
@@ -271,7 +271,7 @@ e_client_video_property_delay_set(E_Client *ec, unsigned int id, tdm_value value
    return ecv->iface->property_delay_set(ecv->iface, id, value);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_client_video_available_properties_get(E_Client *ec, const tdm_prop **props, int *count)
 {
    IFACE_CHECK_RET(available_properties_get, EINA_FALSE);
index 8d8353f0aca49d0d203f56324d3b30a4b225918d..b59dd37180ebeb82699685241bbb5a1ea42d3c24 100644 (file)
@@ -19,17 +19,17 @@ typedef Eina_Bool       (*E_Client_Video_Info_Get_Cb)(E_Client *ec, E_Client_Vid
 typedef Eina_Bool       (*E_Client_Video_Commit_Data_Release_Cb)(E_Client *ec, unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec);
 typedef tbm_surface_h   (*E_Client_Video_Tbm_Surface_Get_Cb)(E_Client *ec);
 
-EINTERN Eina_Bool    e_client_video_set(E_Client *ec);
-EINTERN void         e_client_video_unset(E_Client *ec);
+E_API   Eina_Bool    e_client_video_set(E_Client *ec);
+E_API   void         e_client_video_unset(E_Client *ec);
 
-EINTERN Eina_Bool    e_client_video_topmost_visibility_follow(E_Client *ec);
-EINTERN Eina_Bool    e_client_video_topmost_visibility_unfollow(E_Client *ec);
+E_API   Eina_Bool    e_client_video_topmost_visibility_follow(E_Client *ec);
+E_API   Eina_Bool    e_client_video_topmost_visibility_unfollow(E_Client *ec);
 EINTERN Eina_Bool    e_client_video_property_allow(E_Client *ec);
 EINTERN Eina_Bool    e_client_video_property_disallow(E_Client *ec);
 
-EINTERN Eina_Bool    e_client_video_available_properties_get(E_Client *ec, const tdm_prop **props, int *count);
-EINTERN Eina_Bool    e_client_video_property_get(E_Client *ec, unsigned int id, tdm_value *value);
-EINTERN Eina_Bool    e_client_video_property_set(E_Client *ec, unsigned int id, tdm_value value);
+E_API   Eina_Bool    e_client_video_available_properties_get(E_Client *ec, const tdm_prop **props, int *count);
+E_API   Eina_Bool    e_client_video_property_get(E_Client *ec, unsigned int id, tdm_value *value);
+E_API   Eina_Bool    e_client_video_property_set(E_Client *ec, unsigned int id, tdm_value value);
 EINTERN Eina_Bool    e_client_video_property_delay_set(E_Client *ec, unsigned int id, tdm_value value);
 
 EINTERN Eina_Bool    e_client_video_info_get(E_Client *ec, E_Client_Video_Info *info);
index 20fd462bc778205e41cb237ae5584d19dd356d59..c3ecbf5800ad3d9bcd03749b28addd087944d9c0 100644 (file)
@@ -855,7 +855,7 @@ e_comp_wl_video_buffer_list_length(void)
    return eina_list_count(vbuf_lists);
 }
 
-EINTERN void
+E_API void
 e_comp_wl_video_buffer_list_print(const char *log_path)
 {
    E_Comp_Wl_Video_Buf *vbuf;
index c2d980e29d8748342d6a1008f2ed70cda94e016a..74ae0454ba831d41c93e92d3d5b75d986e9e65e3 100644 (file)
@@ -87,7 +87,7 @@ EINTERN void e_comp_wl_video_buffer_convert(E_Comp_Wl_Video_Buf *srcbuf, E_Comp_
 
 EINTERN uint e_comp_wl_video_buffer_get_mills(void);
 EINTERN int  e_comp_wl_video_buffer_list_length(void);
-EINTERN void e_comp_wl_video_buffer_list_print(const char *log_path);
+E_API   void e_comp_wl_video_buffer_list_print(const char *log_path);
 
 EINTERN void e_comp_wl_video_buffer_size_get(E_Client *ec, int *bw, int *bh);
 EINTERN void e_comp_wl_video_buffer_transform_scale_size_get(E_Client *ec, int *bw, int *bh);
index d0d84cf88c675e436baa0e8a87d8a858bfd7d5c5..a8b561601008a85f4b06dc2d80e8005c6f3de720 100644 (file)
@@ -3,13 +3,13 @@
 static Eina_Bool video_to_primary = EINA_FALSE;
 static Eina_Bool video_punch = EINA_FALSE;
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_video_debug_display_primary_plane_value_get(void)
 {
    return video_to_primary;
 }
 
-EINTERN void
+E_API void
 e_video_debug_display_primary_plane_set(Eina_Bool set)
 {
    video_to_primary = set;
index 5c75d3831def0e0063e98e3261132b8b011e63f4..0d9aed3bd1b56d26850ca950659d91681122bee8 100644 (file)
@@ -3,8 +3,8 @@
 
 #include <Eina.h>
 
-EINTERN Eina_Bool   e_video_debug_display_primary_plane_value_get(void);
-EINTERN void        e_video_debug_display_primary_plane_set(Eina_Bool set);
+E_API   Eina_Bool   e_video_debug_display_primary_plane_value_get(void);
+E_API   void        e_video_debug_display_primary_plane_set(Eina_Bool set);
 EINTERN Eina_Bool   e_video_debug_punch_value_get(void);
 EINTERN void        e_video_debug_punch_set(Eina_Bool set);
 
index 3f17c480446b845b91337fbdae46d5bdf1376d82..af1b090a032425aa30611c8062497767b2e6d385 100644 (file)
@@ -14,7 +14,7 @@ lcm(int a, int b)
    return a * b / gcd(a, b);
 }
 
-EINTERN Eina_Bool
+E_API Eina_Bool
 e_zone_video_available_size_get(E_Zone *zone, int *minw, int *minh, int *maxw, int *maxh, int *align)
 {
    E_Output *output;
index 76ef8562c9b157f453121661cbd38daac2fdaa13..464b9b44c7045eecde04101190cf934550a3a519 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _E_ZONE_VIDEO_H_
 #define _E_ZONE_VIDEO_H_
 
-EINTERN Eina_Bool    e_zone_video_available_size_get(E_Zone *zone, int *minw, int *minh, int *maxw, int *maxh, int *align);
+E_API Eina_Bool    e_zone_video_available_size_get(E_Zone *zone, int *minw, int *minh, int *maxw, int *maxh, int *align);
 
 #endif