Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6af9706b
Commit
6af9706b
authored
Jan 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osd: privatize osd_ShowText(Absolute|Relative)
(Functions reordered to avoid forward declaration.)
parent
6dd33dd1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
27 deletions
+24
-27
include/vlc_osd.h
include/vlc_osd.h
+0
-2
src/libvlccore.sym
src/libvlccore.sym
+0
-2
src/video_output/osd_text.c
src/video_output/osd_text.c
+24
-23
No files found.
include/vlc_osd.h
View file @
6af9706b
...
...
@@ -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
);
/** @} */
...
...
src/libvlccore.sym
View file @
6af9706b
...
...
@@ -287,8 +287,6 @@ osd_MenuPrev
osd_MenuShow
osd_MenuUp
osd_Message
osd_ShowTextAbsolute
osd_ShowTextRelative
path_sanitize
picture_BlendSubpicture
picture_CopyPixels
...
...
src/video_output/osd_text.c
View file @
6af9706b
...
...
@@ -30,29 +30,6 @@
#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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment