xine-lib 1.2.11
Data Structures | Macros | Functions | Variables
x11osd.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <netinet/in.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/shape.h>
#include <X11/Xatom.h>
#include <xine/xine_internal.h>
#include "x11osd.h"

Data Structures

struct  x11osd
 

Macros

#define LOG_MODULE   "x11osd"
 
#define LOG_VERBOSE
 
#define X11OSD_TRANSPARENT   0xffffffff
 
#define saturate(n, l, u)   ((n) < (l) ? (l) : ((n) > (u) ? (u) : (n)))
 

Functions

void x11osd_expose (x11osd *osd)
 
void x11osd_resize (x11osd *osd, int width, int height)
 
void x11osd_drawable_changed (x11osd *osd, Window window)
 
static int x11_error_handler (Display *dpy, XErrorEvent *error)
 
x11osdx11osd_create (xine_t *xine, Display *display, int screen, Window window, enum x11osd_mode mode)
 
void x11osd_colorkey (x11osd *osd, uint32_t colorkey, vo_scale_t *sc)
 
void x11osd_destroy (x11osd *osd)
 
void x11osd_clear (x11osd *osd)
 
void x11osd_blend (x11osd *osd, vo_overlay_t *overlay)
 

Variables

static int x11_error = False
 

Macro Definition Documentation

◆ LOG_MODULE

#define LOG_MODULE   "x11osd"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ saturate

#define saturate (   n,
  l,
 
)    ((n) < (l) ? (l) : ((n) > (u) ? (u) : (n)))

◆ X11OSD_TRANSPARENT

#define X11OSD_TRANSPARENT   0xffffffff

Function Documentation

◆ x11_error_handler()

static int x11_error_handler ( Display *  dpy,
XErrorEvent *  error 
)
static

References x11_error.

Referenced by x11osd_create().

◆ x11osd_blend()

void x11osd_blend ( x11osd osd,
vo_overlay_t overlay 
)

◆ x11osd_clear()

void x11osd_clear ( x11osd osd)

◆ x11osd_colorkey()

void x11osd_colorkey ( x11osd osd,
uint32_t  colorkey,
vo_scale_t sc 
)

◆ x11osd_create()

x11osd * x11osd_create ( xine_t xine,
Display *  display,
int  screen,
Window  window,
enum x11osd_mode  mode 
)

◆ x11osd_destroy()

void x11osd_destroy ( x11osd osd)

◆ x11osd_drawable_changed()

void x11osd_drawable_changed ( x11osd osd,
Window  window 
)

◆ x11osd_expose()

void x11osd_expose ( x11osd osd)

◆ x11osd_resize()

void x11osd_resize ( x11osd osd,
int  width,
int  height 
)

Variable Documentation

◆ x11_error

int x11_error = False
static

Referenced by x11_error_handler(), and x11osd_create().