]> git.sesse.net Git - vlc/commitdiff
osd: privatize osd_ShowText(Absolute|Relative)
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 31 Jan 2013 16:37:26 +0000 (18:37 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 31 Jan 2013 16:39:03 +0000 (18:39 +0200)
(Functions reordered to avoid forward declaration.)

include/vlc_osd.h
src/libvlccore.sym
src/video_output/osd_text.c

index f55f89326e139428c39975884c81eaf109e608a0..533c0263161bf76ddf063009d2a75a455af76c31 100644 (file)
@@ -433,8 +433,6 @@ static inline void osd_SetMenuUpdate( osd_menu_t *p_osd, bool b_value )
  * object. The types are declared in the include file include/vlc_osd.h
  * @see vlc_osd.h
  */
-VLC_API int osd_ShowTextRelative( spu_t *, int, const char *, const text_style_t *, int, int, int, mtime_t );
-VLC_API int osd_ShowTextAbsolute( spu_t *, int, const char *, const text_style_t *, int, int, int, mtime_t, mtime_t );
 VLC_API void osd_Message( spu_t *, int, char *, ... ) VLC_FORMAT( 3, 4 );
 
 /** @} */
index d9caefb1fd863e186710949961e93f55e8fb3ad0..4e27c5251cd036883fa3eb0238f81842127cf939 100644 (file)
@@ -287,8 +287,6 @@ osd_MenuPrev
 osd_MenuShow
 osd_MenuUp
 osd_Message
-osd_ShowTextAbsolute
-osd_ShowTextRelative
 path_sanitize
 picture_BlendSubpicture
 picture_CopyPixels
index 577fbccea84965ef92637a170830629463f6f4fd..b3f4e860d5a6ec86f99aba036603638b46e80885 100644 (file)
 #include <vlc_filter.h>
 #include <vlc_osd.h>
 
-/**
- * \brief Show text on the video for some time
- * \param p_spu pointer to the subpicture queue the text is to be showed on
- * \param i_channel Subpicture channel
- * \param psz_string The text to be shown
- * \param p_style Pointer to a struct with text style info (it is duplicated)
- * \param i_flags flags for alignment and such
- * \param i_hmargin horizontal margin in pixels
- * \param i_vmargin vertical margin in pixels
- * \param i_duration Amount of time the text is to be shown.
- */
-int osd_ShowTextRelative( spu_t *p_spu, int i_channel,
-                           const char *psz_string, const text_style_t *p_style,
-                           int i_flags, int i_hmargin, int i_vmargin,
-                           mtime_t i_duration )
-{
-    mtime_t i_now = mdate();
-
-    return osd_ShowTextAbsolute( p_spu, i_channel, psz_string,
-                                  p_style, i_flags, i_hmargin, i_vmargin,
-                                  i_now, i_now + i_duration );
-}
-
 /**
  * \brief Show text on the video from a given start date to a given end date
  * \param p_spu pointer to the subpicture queue the text is to be showed on
@@ -67,6 +44,7 @@ int osd_ShowTextRelative( spu_t *p_spu, int i_channel,
  *               if this is 0 the string will be shown untill the next string
  *               is about to be shown
  */
+static
 int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel,
                            const char *psz_string, const text_style_t *p_style,
                            int i_flags, int i_hmargin, int i_vmargin,
@@ -111,6 +89,29 @@ int osd_ShowTextAbsolute( spu_t *p_spu_channel, int i_channel,
     return VLC_SUCCESS;
 }
 
+/**
+ * \brief Show text on the video for some time
+ * \param p_spu pointer to the subpicture queue the text is to be showed on
+ * \param i_channel Subpicture channel
+ * \param psz_string The text to be shown
+ * \param p_style Pointer to a struct with text style info (it is duplicated)
+ * \param i_flags flags for alignment and such
+ * \param i_hmargin horizontal margin in pixels
+ * \param i_vmargin vertical margin in pixels
+ * \param i_duration Amount of time the text is to be shown.
+ */
+static
+int osd_ShowTextRelative( spu_t *p_spu, int i_channel,
+                           const char *psz_string, const text_style_t *p_style,
+                           int i_flags, int i_hmargin, int i_vmargin,
+                           mtime_t i_duration )
+{
+    mtime_t i_now = mdate();
+
+    return osd_ShowTextAbsolute( p_spu, i_channel, psz_string,
+                                  p_style, i_flags, i_hmargin, i_vmargin,
+                                  i_now, i_now + i_duration );
+}
 
 /**
  * \brief Write an informative message at the default location,