xine-lib  1.2.10
xcbosd.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003-2009 the xine project
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  * xcbosd.h, use X11 Nonrectangular Window Shape Extension to draw xine OSD
21  *
22  * Nov 2003 - Miguel Freitas
23  * Feb 2007 - ported to xcb by Christoph Pfister
24  *
25  * based on ideas and code of
26  * xosd Copyright (c) 2000 Andre Renaud (andre@ignavus.net)
27  */
28 
29 #ifndef XCBOSD_H
30 #define XCBOSD_H
31 
32 #include <xine/vo_scale.h>
33 
34 typedef struct xcbosd xcbosd;
36 
37 xcbosd *xcbosd_create(xine_t *xine, xcb_connection_t *connection, xcb_screen_t *screen, xcb_window_t window, enum xcbosd_mode mode);
38 
39 void xcbosd_colorkey(xcbosd *osd, uint32_t colorkey, vo_scale_t *scaling);
40 
41 void xcbosd_destroy(xcbosd *osd);
42 
43 void xcbosd_expose(xcbosd *osd);
44 
45 void xcbosd_resize(xcbosd *osd, int width, int height);
46 
47 void xcbosd_drawable_changed(xcbosd *osd, xcb_window_t window);
48 
49 void xcbosd_clear(xcbosd *osd);
50 
51 void xcbosd_blend(xcbosd *osd, vo_overlay_t *overlay);
52 
53 #endif
xine_s
Definition: xine_internal.h:80
xcbosd::cmap
xcb_colormap_t cmap
Definition: xcbosd.c:82
vo_overlay_s::color
uint32_t color[256]
Definition: video_out.h:492
xcbosd_clear
void xcbosd_clear(xcbosd *osd)
Definition: xcbosd.c:386
xcbosd_mode
xcbosd_mode
Definition: xcbosd.h:35
xcbosd::screen
xcb_screen_t * screen
Definition: xcbosd.c:62
xcbosd::height
int height
Definition: xcbosd.c:87
xcbosd::depth
unsigned int depth
Definition: xcbosd.c:79
xcbosd_expose
void xcbosd_expose(xcbosd *osd)
Definition: xcbosd.c:95
xcbosd_colorkey
void xcbosd_colorkey(xcbosd *osd, uint32_t colorkey, vo_scale_t *scaling)
Definition: xcbosd.c:356
xcbosd::WIPED
@ WIPED
Definition: xcbosd.c:90
xcbosd_colorkey
void xcbosd_colorkey(xcbosd *osd, uint32_t colorkey, vo_scale_t *scaling)
Definition: xcbosd.c:356
vo_overlay_s::hili_color
uint32_t hili_color[256]
Definition: video_out.h:501
saturate
#define saturate(n, l, u)
Definition: xcbosd.c:433
xcbosd::clean
enum xcbosd::@61 clean
xcbosd_expose
void xcbosd_expose(xcbosd *osd)
Definition: xcbosd.c:95
xcbosd::sc
vo_scale_t * sc
Definition: xcbosd.c:75
xcbosd_drawable_changed
void xcbosd_drawable_changed(xcbosd *osd, xcb_window_t window)
Definition: xcbosd.c:163
xcbosd::mask_gc
xcb_gc_t mask_gc
Definition: xcbosd.c:69
vo_scale_s
Definition: vo_scale.h:39
lprintf
#define lprintf(...)
Definition: xineutils.h:620
vo_overlay_s::hili_top
int hili_top
Definition: video_out.h:497
vo_overlay_s
Definition: video_out.h:472
xcbosd_destroy
void xcbosd_destroy(xcbosd *osd)
Definition: xcbosd.c:368
vo_overlay_s::hili_trans
uint8_t hili_trans[256]
Definition: video_out.h:502
xcbosd::DRAWN
@ DRAWN
Definition: xcbosd.c:90
xcbosd::u
union xcbosd::@60 u
OVL_PALETTE_SIZE
#define OVL_PALETTE_SIZE
Definition: video_out.h:280
vo_overlay_s::hili_right
int hili_right
Definition: video_out.h:500
NULL
NULL
Definition: xine_plugin.c:78
XINE_VERBOSITY_LOG
#define XINE_VERBOSITY_LOG
Definition: xine.h:425
xcbosd_create
xcbosd * xcbosd_create(xine_t *xine, xcb_connection_t *connection, xcb_screen_t *screen, xcb_window_t window, enum xcbosd_mode mode)
Definition: xcbosd.c:235
width
unsigned int width
Definition: gfontrle.c:4
xcbosd::gc
xcb_gc_t gc
Definition: xcbosd.c:84
_
#define _(String)
Definition: vcdplayer.h:39
xcbosd
Definition: xcbosd.c:59
vo_overlay_s::rle
rle_elem_t * rle
Definition: video_out.h:474
rle_elem_s::len
uint16_t len
Definition: video_out.h:459
TRANSPARENT
#define TRANSPARENT
Definition: xcbosd.c:431
vo_overlay_s::num_rle
int num_rle
Definition: video_out.h:476
xcbosd_blend
void xcbosd_blend(xcbosd *osd, vo_overlay_t *overlay)
Definition: xcbosd.c:435
xcbosd_destroy
void xcbosd_destroy(xcbosd *osd)
Definition: xcbosd.c:368
xcbosd::shaped
struct xcbosd::@60::@62 shaped
xcbosd_create
xcbosd * xcbosd_create(xine_t *xine, xcb_connection_t *connection, xcb_screen_t *screen, xcb_window_t window, enum xcbosd_mode mode)
Definition: xcbosd.c:235
vo_scale.h
xcbosd::mode
enum xcbosd_mode mode
Definition: xcbosd.c:63
xcbosd_clear
void xcbosd_clear(xcbosd *osd)
Definition: xcbosd.c:386
XINE_VERBOSITY_DEBUG
#define XINE_VERBOSITY_DEBUG
Definition: xine.h:426
vo_overlay_s::width
int width
Definition: video_out.h:479
xcbosd::window
xcb_window_t window
Definition: xcbosd.c:67
xcbosd_drawable_changed
void xcbosd_drawable_changed(xcbosd *osd, xcb_window_t window)
Definition: xcbosd.c:163
xcbosd.h
xcbosd::colorkey
uint32_t colorkey
Definition: xcbosd.c:74
height
unsigned int height
Definition: gfontrle.c:5
vo_overlay_s::hili_left
int hili_left
Definition: video_out.h:499
vo_overlay_s::trans
uint8_t trans[256]
Definition: video_out.h:493
mode
enable disable number of frames of telecine pattern sync required before mode change make frames evenly spaced for film mode(24 fps)" ) PARAM_ITEM( POST_PARAM_TYPE_BOOL
vo_overlay_s::x
int x
Definition: video_out.h:477
xine_internal.h
xcbosd::mask_bitmap
xcb_pixmap_t mask_bitmap
Definition: xcbosd.c:68
XCBOSD_SHAPED
@ XCBOSD_SHAPED
Definition: xcbosd.h:35
xcbosd::xine
xine_t * xine
Definition: xcbosd.c:91
config.h
xcbosd_resize
void xcbosd_resize(xcbosd *osd, int width, int height)
Definition: xcbosd.c:130
xcbosd::bitmap
xcb_pixmap_t bitmap
Definition: xcbosd.c:80
rle_elem_s::color
uint16_t color
Definition: video_out.h:460
XCBOSD_COLORKEY
@ XCBOSD_COLORKEY
Definition: xcbosd.h:35
vo_overlay_s::y
int y
Definition: video_out.h:478
clut_s
Definition: alphablend.h:44
xcbosd::mapped
int mapped
Definition: xcbosd.c:71
xcbosd::UNDEFINED
@ UNDEFINED
Definition: xcbosd.c:90
xcbosd::visual
xcb_visualid_t visual
Definition: xcbosd.c:81
xcbosd::mask_gc_back
xcb_gc_t mask_gc_back
Definition: xcbosd.c:70
xcbosd::y
int y
Definition: xcbosd.c:89
xcbosd::x
int x
Definition: xcbosd.c:88
xcbosd_blend
void xcbosd_blend(xcbosd *osd, vo_overlay_t *overlay)
Definition: xcbosd.c:435
xprintf
#define xprintf(xine, verbose,...)
Definition: xineutils.h:664
xcbosd::connection
xcb_connection_t * connection
Definition: xcbosd.c:61
xcbosd_resize
void xcbosd_resize(xcbosd *osd, int width, int height)
Definition: xcbosd.c:130
xcbosd::width
int width
Definition: xcbosd.c:86