xine-lib  1.2.10
spu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2018 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 along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  */
21 
22 #ifndef XINE_UTILS_SPU_H
23 #define XINE_UTILS_SPU_H
24 
25 #include <xine/attributes.h>
26 #include <xine/os_types.h>
27 
29 
31  uint8_t black, colour;
32 };
33 
34 void _x_spu_misc_init (xine_t *);
35 
37 
38 /* in: trans = 0..255, 0=opaque
39  * out: 0..255, 0=transparent
40  */
41 int _x_spu_calculate_opacity (const clut_t *, uint8_t trans, const xine_spu_opacity_t *) XINE_PROTECTED;
42 
43 #endif
xine_s
Definition: xine_internal.h:80
_x_spu_get_opacity
void _x_spu_get_opacity(xine_t *, xine_spu_opacity_t *)
Definition: spu.c:48
xine_spu_opacity_s
Definition: spu.h:30
attributes.h
xine_spu_opacity_s::black
uint8_t black
Definition: spu.h:31
_x_spu_misc_init
void _x_spu_misc_init(xine_t *)
Definition: spu.c:34
os_types.h
_x_spu_calculate_opacity
int _x_spu_calculate_opacity(const clut_t *, uint8_t trans, const xine_spu_opacity_t *)
Definition: spu.c:58
XINE_PROTECTED
#define XINE_PROTECTED
Definition: attributes.h:73
clut_s
Definition: alphablend.h:44
xine_spu_opacity_s::colour
uint8_t colour
Definition: spu.h:31