VLC 4.0.0-dev
Loading...
Searching...
No Matches
video_epg.c File Reference
Include dependency graph for video_epg.c:

Data Structures

struct  epg_spu_updater_sys_t

Macros

#define OSDEPG_MARGIN   0.025
#define OSDEPG_MARGINS   (OSDEPG_MARGIN * 2)
#define OSDEPG_PADDING   0.05 /* inner margins */
#define OSDEPG_WIDTH   (1.0 - OSDEPG_MARGINS)
#define OSDEPG_HEIGHT   0.25
#define OSDEPG_LEFT   OSDEPG_MARGIN
#define OSDEPG_TOP   (1.0 - OSDEPG_MARGINS - OSDEPG_HEIGHT + OSDEPG_MARGIN)
#define OSDEPG_ROWS_COUNT   10
#define OSDEPG_ROW_HEIGHT   (1.0 / OSDEPG_ROWS_COUNT)
#define OSDEPG_LOGO_SIZE   (OSDEPG_HEIGHT)
#define OSDEPG_RIGHT   (1.0 - OSDEPG_MARGIN)
#define OSDEPG_ROWS(x)
#define OSDEPG_ROW(x)
#define EPGOSD_TEXTSIZE_NAME   (OSDEPG_ROWS(2))
#define EPGOSD_TEXTSIZE_PROG   (OSDEPG_ROWS(2))
#define EPGOSD_TEXTSIZE_NTWK   (OSDEPG_ROWS(2))
#define RGB_COLOR1   0xf48b00
#define ARGB_BGCOLOR   0xC0333333
#define GRADIENT_COLORS   40

Functions

static char * GetDefaultArtUri (void)
static subpicture_region_tvout_OSDBackground (int x, int y, int width, int height, uint32_t i_argb)
static subpicture_region_tvout_OSDEpgSlider (int x, int y, int width, int height, float ratio)
static void vout_OSDSegmentSetNoWrap (text_segment_t *p_segment)
static text_segment_tvout_OSDSegment (const char *psz_text, int size, uint32_t color)
static subpicture_region_tvout_OSDImage (vlc_object_t *p_obj, int x, int y, int w, int h, const char *psz_uri)
static void vout_OSDRegionConstrain (subpicture_region_t *p_region, int w, int h)
static subpicture_region_tvout_OSDTextRegion (text_segment_t *p_segment, int x, int y)
static subpicture_region_tvout_OSDEpgText (const char *text, int x, int y, int size, uint32_t color)
static char * vout_OSDPrintTime (time_t t)
static subpicture_region_tvout_OSDEpgEvent (const vlc_epg_event_t *p_evt, int x, int y, int size)
static void vout_FillRightPanel (epg_spu_updater_sys_t *p_sys, int x, int y, int width, int height, int rx, int ry, vlc_spu_regions *regions)
static void vout_BuildOSDEpg (epg_spu_updater_sys_t *p_sys, vlc_spu_regions *regions, int x, int y, int visible_width, int visible_height)
static void OSDEpgUpdate (subpicture_t *subpic, const struct vlc_spu_updater_configuration *cfg)
static void OSDEpgDestroy (subpicture_t *subpic)
int vout_OSDEpg (vout_thread_t *vout, input_item_t *input)
 Show EPG information about the current program of an input item.

Macro Definition Documentation

◆ ARGB_BGCOLOR

#define ARGB_BGCOLOR   0xC0333333

Referenced by vout_BuildOSDEpg().

◆ EPGOSD_TEXTSIZE_NAME

#define EPGOSD_TEXTSIZE_NAME   (OSDEPG_ROWS(2))

Referenced by vout_FillRightPanel().

◆ EPGOSD_TEXTSIZE_NTWK

#define EPGOSD_TEXTSIZE_NTWK   (OSDEPG_ROWS(2))

Referenced by vout_FillRightPanel().

◆ EPGOSD_TEXTSIZE_PROG

#define EPGOSD_TEXTSIZE_PROG   (OSDEPG_ROWS(2))

Referenced by vout_FillRightPanel().

◆ GRADIENT_COLORS

#define GRADIENT_COLORS   40

Referenced by vout_OSDBackground().

◆ OSDEPG_HEIGHT

#define OSDEPG_HEIGHT   0.25

Referenced by vout_BuildOSDEpg().

◆ OSDEPG_LEFT

#define OSDEPG_LEFT   OSDEPG_MARGIN

Referenced by vout_BuildOSDEpg().

◆ OSDEPG_LOGO_SIZE

#define OSDEPG_LOGO_SIZE   (OSDEPG_HEIGHT)

Referenced by vout_BuildOSDEpg().

◆ OSDEPG_MARGIN

#define OSDEPG_MARGIN   0.025

◆ OSDEPG_MARGINS

#define OSDEPG_MARGINS   (OSDEPG_MARGIN * 2)

◆ OSDEPG_PADDING

#define OSDEPG_PADDING   0.05 /* inner margins */

Referenced by vout_BuildOSDEpg().

◆ OSDEPG_RIGHT

#define OSDEPG_RIGHT   (1.0 - OSDEPG_MARGIN)

◆ OSDEPG_ROW

#define OSDEPG_ROW ( x)
Value:
#define OSDEPG_ROWS(x)
Definition video_epg.c:56

Referenced by vout_FillRightPanel().

◆ OSDEPG_ROW_HEIGHT

#define OSDEPG_ROW_HEIGHT   (1.0 / OSDEPG_ROWS_COUNT)

◆ OSDEPG_ROWS

#define OSDEPG_ROWS ( x)
Value:
#define OSDEPG_ROW_HEIGHT
Definition video_epg.c:50

Referenced by vout_FillRightPanel().

◆ OSDEPG_ROWS_COUNT

#define OSDEPG_ROWS_COUNT   10

◆ OSDEPG_TOP

#define OSDEPG_TOP   (1.0 - OSDEPG_MARGINS - OSDEPG_HEIGHT + OSDEPG_MARGIN)

Referenced by vout_BuildOSDEpg().

◆ OSDEPG_WIDTH

#define OSDEPG_WIDTH   (1.0 - OSDEPG_MARGINS)

Referenced by vout_BuildOSDEpg().

◆ RGB_COLOR1

#define RGB_COLOR1   0xf48b00

Function Documentation

◆ GetDefaultArtUri()

char * GetDefaultArtUri ( void )
static

◆ OSDEpgDestroy()

◆ OSDEpgUpdate()

◆ vout_BuildOSDEpg()

◆ vout_FillRightPanel()

◆ vout_OSDBackground()

◆ vout_OSDEpgEvent()

◆ vout_OSDEpgSlider()

◆ vout_OSDEpgText()

subpicture_region_t * vout_OSDEpgText ( const char * text,
int x,
int y,
int size,
uint32_t color )
static

◆ vout_OSDImage()

◆ vout_OSDPrintTime()

char * vout_OSDPrintTime ( time_t t)
static

References asprintf(), and localtime_r().

Referenced by vout_FillRightPanel(), and vout_OSDEpgEvent().

◆ vout_OSDRegionConstrain()

void vout_OSDRegionConstrain ( subpicture_region_t * p_region,
int w,
int h )
static

◆ vout_OSDSegment()

◆ vout_OSDSegmentSetNoWrap()

void vout_OSDSegmentSetNoWrap ( text_segment_t * p_segment)
static

◆ vout_OSDTextRegion()