Data Structures | Defines | Functions

video_widgets.c File Reference

Include dependency graph for video_widgets.c:

Data Structures

struct  subpicture_updater_sys_t

Defines

#define STYLE_EMPTY   0
#define STYLE_FILLED   1

Functions

static void DrawRect (subpicture_region_t *r, int fill, int x1, int y1, int x2, int y2)
 Draws a rectangle at the given position in the region.
static void DrawTriangle (subpicture_region_t *r, int fill, int x1, int y1, int x2, int y2)
 Draws a triangle at the given position in the region.
static subpicture_region_tOSDRegion (int x, int y, int width, int height)
 Create a region with a white transparent picture.
static subpicture_region_tOSDSlider (int type, int position, const video_format_t *fmt)
 Create the region for an OSD slider.
static subpicture_region_tOSDIcon (int type, const video_format_t *fmt)
 Create the region for an OSD slider.
static int OSDWidgetValidate (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 OSDWidgetUpdate (subpicture_t *subpic, const video_format_t *fmt_src, const video_format_t *fmt_dst, mtime_t ts)
static void OSDWidgetDestroy (subpicture_t *subpic)
static void OSDWidget (vout_thread_t *vout, int channel, int type, int position)
void vout_OSDSlider (vout_thread_t *vout, int channel, int position, short type)
 Display a slider on the video output.
void vout_OSDIcon (vout_thread_t *vout, int channel, short type)
 Display an Icon on the video output.

Define Documentation

#define STYLE_EMPTY   0

Referenced by OSDSlider().

#define STYLE_FILLED   1

Function Documentation

static void DrawRect ( subpicture_region_t r,
int  fill,
int  x1,
int  y1,
int  x2,
int  y2 
) [static]

Draws a rectangle at the given position in the region.

It may be filled (fill == STYLE_FILLED) or empty (fill == STYLE_EMPTY).

References plane_t::i_pitch, picture_t::p, subpicture_region_t::p_picture, plane_t::p_pixels, and STYLE_FILLED.

Referenced by OSDIcon(), and OSDSlider().

static void DrawTriangle ( subpicture_region_t r,
int  fill,
int  x1,
int  y1,
int  x2,
int  y2 
) [static]

Draws a triangle at the given position in the region.

It may be filled (fill == STYLE_FILLED) or empty (fill == STYLE_EMPTY).

References plane_t::i_pitch, picture_t::p, subpicture_region_t::p_picture, plane_t::p_pixels, and STYLE_FILLED.

Referenced by OSDIcon().

static subpicture_region_t* OSDIcon ( int  type,
const video_format_t fmt 
) [static]
static subpicture_region_t* OSDRegion ( int  x,
int  y,
int  width,
int  height 
) [static]
static subpicture_region_t* OSDSlider ( int  type,
int  position,
const video_format_t fmt 
) [static]

Create the region for an OSD slider.

Types are: OSD_HOR_SLIDER and OSD_VERT_SLIDER.

References __MAX, __MIN, DrawRect(), video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_x_offset, video_format_t::i_y_offset, OSD_HOR_SLIDER, OSDRegion(), STYLE_EMPTY, and STYLE_FILLED.

Referenced by OSDWidgetUpdate().

static void OSDWidget ( vout_thread_t vout,
int  channel,
int  type,
int  position 
) [static]
static void OSDWidgetDestroy ( subpicture_t subpic  )  [static]
static void OSDWidgetUpdate ( subpicture_t subpic,
const video_format_t fmt_src,
const video_format_t fmt_dst,
mtime_t  ts 
) [static]
static int OSDWidgetValidate ( 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_OSDIcon ( vout_thread_t ,
int  ,
short   
)

Display an Icon on the video output.

Parameters:
p_this The object that called the function.
i_channel Subpicture channel
i_type Types are: OSD_PLAY_ICON, OSD_PAUSE_ICON, OSD_SPEAKER_ICON, OSD_MUTE_ICON

References OSDWidget().

void vout_OSDSlider ( vout_thread_t ,
int  ,
int  ,
short   
)

Display a slider on the video output.

Parameters:
p_this The object that called the function.
i_channel Subpicture channel
i_postion Current position in the slider
i_type Types are: OSD_HOR_SLIDER and OSD_VERT_SLIDER.

References OSDWidget().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines