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]

References VLC_UNUSED.

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:
vout The vout on which the message will be displayed
channel Subpicture channel
format printf style formatting

Provided for convenience.

References SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, va_end(), va_start(), 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:
vout The vout on which the message will be displayed
channel Subpicture channel
position Position of the text
duration Duration of the text being displayed
text Text to be displayed

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(), 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().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines