VLC 4.0.0-dev
|
Data Structures | |
struct | osdwidget_spu_updater_sys_t |
Macros | |
#define | STYLE_EMPTY 0 |
#define | STYLE_FILLED 1 |
#define | RGB_BLUE 0x2badde |
#define | RGB_ORANGE 0xf48b00 |
#define | RGB_FILL RGB_ORANGE |
#define | COL_TRANSPARENT 0 |
#define | COL_WHITE 1 |
#define | COL_FILL 2 |
#define | COL_FILL_SHADE 3 |
#define | SET_PALETTE_COLOR(id, rgb, alpha) |
#define | SLIDER_MARGIN_BASE 0.10 |
Create the region for an OSD slider. More... | |
Functions | |
static void | DrawRect (subpicture_region_t *r, int fill, uint8_t color, int x1, int y1, int x2, int y2) |
Draws a rectangle at the given position in the region. More... | |
static void | DrawTriangle (subpicture_region_t *r, int fill, uint8_t color, int x1, int y1, int x2, int y2) |
Draws a triangle at the given position in the region. More... | |
static subpicture_region_t * | OSDRegion (int x, int y, int width, int height) |
Create a region with a white transparent picture. More... | |
static subpicture_region_t * | OSDSlider (int type, int position, const video_format_t *fmt) |
static subpicture_region_t * | OSDIcon (int type, const video_format_t *fmt) |
Create the region for an OSD slider. More... | |
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, vlc_tick_t ts) |
static void | OSDWidgetUpdate (subpicture_t *subpic, const video_format_t *fmt_src, const video_format_t *fmt_dst, vlc_tick_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. More... | |
void | vout_OSDIcon (vout_thread_t *vout, int channel, short type) |
Display an Icon on the video output. More... | |
#define COL_FILL 2 |
#define COL_FILL_SHADE 3 |
#define COL_TRANSPARENT 0 |
#define COL_WHITE 1 |
#define RGB_BLUE 0x2badde |
#define RGB_FILL RGB_ORANGE |
#define RGB_ORANGE 0xf48b00 |
#define SET_PALETTE_COLOR | ( | id, | |
rgb, | |||
alpha | |||
) |
#define SLIDER_MARGIN_BASE 0.10 |
Create the region for an OSD slider.
Types are: OSD_HOR_SLIDER and OSD_VERT_SLIDER.
#define STYLE_EMPTY 0 |
#define STYLE_FILLED 1 |
|
static |
Draws a rectangle at the given position in the region.
It may be filled (fill == STYLE_FILLED) or empty (fill == STYLE_EMPTY).
References DrawRect(), plane_t::i_pitch, plane_t::i_visible_pitch, p, picture_t::p, subpicture_region_t::p_picture, plane_t::p_pixels, and STYLE_FILLED.
Referenced by DrawRect(), DrawTriangle(), OSDIcon(), and OSDSlider().
|
static |
Draws a triangle at the given position in the region.
It may be filled (fill == STYLE_FILLED) or empty (fill == STYLE_EMPTY).
References DrawRect(), plane_t::i_pitch, p, picture_t::p, subpicture_region_t::p_picture, plane_t::p_pixels, and STYLE_FILLED.
Referenced by OSDIcon().
|
static |
Create the region for an OSD slider.
Types are: OSD_PLAY_ICON, OSD_PAUSE_ICON, OSD_SPEAKER_ICON, OSD_MUTE_ICON
References COL_FILL, COL_TRANSPARENT, COL_WHITE, DrawRect(), DrawTriangle(), 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_MUTE_ICON, OSD_PAUSE_ICON, OSD_PLAY_ICON, OSDRegion(), and STYLE_FILLED.
Referenced by OSDWidgetUpdate().
|
static |
Create a region with a white transparent picture.
References COL_FILL, COL_FILL_SHADE, COL_TRANSPARENT, COL_WHITE, video_palette_t::i_entries, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, subpicture_region_t::i_x, subpicture_region_t::i_y, video_format_t::p_palette, RGB_FILL, SET_PALETTE_COLOR, STYLE_ALPHA_OPAQUE, STYLE_ALPHA_TRANSPARENT, subpicture_region_New(), video_format_Init(), and VLC_CODEC_YUVP.
Referenced by OSDIcon(), and OSDSlider().
|
static |
|
static |
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, OSD_HOR_SLIDER, OSD_VERT_SLIDER, OSDWidgetDestroy(), OSDWidgetUpdate(), OSDWidgetValidate(), subpicture_updater_t::pf_validate, osdwidget_spu_updater_sys_t::position, subpicture_New(), osdwidget_spu_updater_sys_t::type, var_InheritBool(), VLC_CLIP, VLC_TICK_FROM_MS, vlc_tick_now(), and vout_PutSubpicture().
Referenced by vout_OSDIcon(), and vout_OSDSlider().
|
static |
References subpicture_updater_t::p_sys, and subpicture_t::updater.
Referenced by OSDWidget().
|
static |
References subpicture_t::i_original_picture_height, subpicture_t::i_original_picture_width, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, OSD_HOR_SLIDER, OSD_VERT_SLIDER, OSDIcon(), OSDSlider(), subpicture_t::p_region, subpicture_updater_t::p_sys, osdwidget_spu_updater_sys_t::position, osdwidget_spu_updater_sys_t::type, subpicture_t::updater, and VLC_UNUSED.
Referenced by OSDWidget().
|
static |
References VLC_EGENERIC, VLC_SUCCESS, and VLC_UNUSED.
Referenced by OSDWidget().