VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
video_text.c File Reference
Include dependency graph for video_text.c:

Data Structures

struct  subpicture_updater_sys_t

Functions

static int OSDTextValidate (subpicture_t *subpic, bool has_src_changed, const video_format_t *fmt_src, bool has_dst_changed, const video_format_t *fmt_dst, mtime_t ts)
static void OSDTextUpdate (subpicture_t *subpic, const video_format_t *fmt_src, const video_format_t *fmt_dst, mtime_t ts)
static void OSDTextDestroy (subpicture_t *subpic)
void vout_OSDText (vout_thread_t *vout, int channel, int position, mtime_t duration, const char *text)
 Write an informative message if the OSD option is enabled.
void vout_OSDMessage (vout_thread_t *vout, int channel, const char *format,...)
 Write an informative message at the default location, for the default duration and only if the OSD option is enabled.

Function Documentation

static void OSDTextDestroy ( subpicture_t subpic)
static
static void OSDTextUpdate ( subpicture_t subpic,
const video_format_t fmt_src,
const video_format_t fmt_dst,
mtime_t  ts 
)
static
static int OSDTextValidate ( subpicture_t subpic,
bool  has_src_changed,
const video_format_t fmt_src,
bool  has_dst_changed,
const video_format_t fmt_dst,
mtime_t  ts 
)
static

< No error

< Unspecified error

References VLC_EGENERIC, VLC_SUCCESS, and VLC_UNUSED.

Referenced by vout_OSDText().

void vout_OSDMessage ( vout_thread_t ,
int  ,
const char *  ,
  ... 
)

Write an informative message at the default location, for the default duration and only if the OSD option is enabled.

Parameters
voutThe vout on which the message will be displayed
channelSubpicture channel
formatprintf style formatting

Provided for convenience.

References SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, vasprintf(), and vout_OSDText().

Referenced by VoutOsdSnapshot().

void vout_OSDText ( vout_thread_t vout,
int  channel,
int  position,
mtime_t  duration,
const char *  text 
)

Write an informative message if the OSD option is enabled.

Parameters
voutThe vout on which the message will be displayed
channelSubpicture channel
positionPosition of the text
durationDuration of the text being displayed
textText to be displayed

< Align the subpicture, but not the text inside

References subpicture_t::b_absolute, subpicture_t::b_ephemer, subpicture_t::b_fade, subpicture_t::i_channel, subpicture_t::i_start, subpicture_t::i_stop, mdate(), OSDTextDestroy(), OSDTextUpdate(), OSDTextValidate(), subpicture_updater_t::pf_validate, subpicture_updater_sys_t::position, strdup(), SUBPICTURE_ALIGN_MASK, subpicture_New(), subpicture_updater_sys_t::text, var_InheritBool, and vout_PutSubpicture().

Referenced by ThreadDisplayOsdTitle(), and vout_OSDMessage().