VLC 4.0.0-dev
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)   (OSDEPG_ROW_HEIGHT * x)
 
#define OSDEPG_ROW(x)   (OSDEPG_ROWS(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, subpicture_region_t **last_ptr)
 
static subpicture_region_tvout_BuildOSDEpg (epg_spu_updater_sys_t *p_sys, int x, int y, int visible_width, int visible_height)
 
static int OSDEpgValidate (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 OSDEpgUpdate (subpicture_t *subpic, const video_format_t *fmt_src, const video_format_t *fmt_dst, vlc_tick_t ts)
 
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. More...
 

Macro Definition Documentation

◆ ARGB_BGCOLOR

#define ARGB_BGCOLOR   0xC0333333

◆ EPGOSD_TEXTSIZE_NAME

#define EPGOSD_TEXTSIZE_NAME   (OSDEPG_ROWS(2))

◆ EPGOSD_TEXTSIZE_NTWK

#define EPGOSD_TEXTSIZE_NTWK   (OSDEPG_ROWS(2))

◆ EPGOSD_TEXTSIZE_PROG

#define EPGOSD_TEXTSIZE_PROG   (OSDEPG_ROWS(2))

◆ GRADIENT_COLORS

#define GRADIENT_COLORS   40

◆ OSDEPG_HEIGHT

#define OSDEPG_HEIGHT   0.25

◆ OSDEPG_LEFT

#define OSDEPG_LEFT   OSDEPG_MARGIN

◆ OSDEPG_LOGO_SIZE

#define OSDEPG_LOGO_SIZE   (OSDEPG_HEIGHT)

◆ OSDEPG_MARGIN

#define OSDEPG_MARGIN   0.025

◆ OSDEPG_MARGINS

#define OSDEPG_MARGINS   (OSDEPG_MARGIN * 2)

◆ OSDEPG_PADDING

#define OSDEPG_PADDING   0.05 /* inner margins */

◆ OSDEPG_RIGHT

#define OSDEPG_RIGHT   (1.0 - OSDEPG_MARGIN)

◆ OSDEPG_ROW

#define OSDEPG_ROW (   x)    (OSDEPG_ROWS(x))

◆ OSDEPG_ROW_HEIGHT

#define OSDEPG_ROW_HEIGHT   (1.0 / OSDEPG_ROWS_COUNT)

◆ OSDEPG_ROWS

#define OSDEPG_ROWS (   x)    (OSDEPG_ROW_HEIGHT * x)

◆ OSDEPG_ROWS_COUNT

#define OSDEPG_ROWS_COUNT   10

◆ OSDEPG_TOP

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

◆ OSDEPG_WIDTH

#define OSDEPG_WIDTH   (1.0 - OSDEPG_MARGINS)

◆ RGB_COLOR1

#define RGB_COLOR1   0xf48b00

Function Documentation

◆ GetDefaultArtUri()

static char * GetDefaultArtUri ( void  )
static

◆ OSDEpgDestroy()

◆ OSDEpgUpdate()

◆ OSDEpgValidate()

static int OSDEpgValidate ( 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

References VLC_EGENERIC, VLC_SUCCESS, and VLC_UNUSED.

Referenced by vout_OSDEpg().

◆ vout_BuildOSDEpg()

◆ vout_FillRightPanel()

◆ vout_OSDBackground()

◆ vout_OSDEpgEvent()

◆ vout_OSDEpgSlider()

◆ vout_OSDEpgText()

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

◆ vout_OSDImage()

◆ vout_OSDPrintTime()

static char * vout_OSDPrintTime ( time_t  t)
static

References asprintf(), and localtime_r().

Referenced by vout_FillRightPanel(), and vout_OSDEpgEvent().

◆ vout_OSDRegionConstrain()

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

◆ vout_OSDSegment()

◆ vout_OSDSegmentSetNoWrap()

static void vout_OSDSegmentSetNoWrap ( text_segment_t p_segment)
static

◆ vout_OSDTextRegion()