xine-lib
1.2.13-20230125hg15249
xine-lib-1.2.13
include
xine
spu.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007-2022 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
28
typedef
struct
xine_spu_opacity_s
xine_spu_opacity_t
;
29
30
struct
xine_spu_opacity_s
{
31
uint8_t
black
,
colour
;
32
};
33
34
void
_x_spu_misc_init
(
xine_t
*);
35
36
void
_x_spu_get_opacity
(
xine_t
*,
xine_spu_opacity_t
*)
XINE_PROTECTED
;
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
49
void
_x_spu_dvb_opacity
(
xine_t
*xine, uint8_t *opacity,
const
clut_t
*clut,
int
*gen, uint32_t n)
XINE_PROTECTED
;
50
51
#endif
attributes.h
XINE_PROTECTED
#define XINE_PROTECTED
Definition
attributes.h:75
os_types.h
_x_spu_get_opacity
void _x_spu_get_opacity(xine_t *, xine_spu_opacity_t *)
Definition
spu.c:83
_x_spu_dvb_opacity
void _x_spu_dvb_opacity(xine_t *xine, uint8_t *opacity, const clut_t *clut, int *gen, uint32_t n)
(re)calculate DVB subtitle opacity table if needed.
Definition
spu.c:105
_x_spu_misc_init
void _x_spu_misc_init(xine_t *)
Definition
spu.c:66
_x_spu_calculate_opacity
int _x_spu_calculate_opacity(const clut_t *, uint8_t trans, const xine_spu_opacity_t *)
Definition
spu.c:92
clut_s
Definition
alphablend.h:44
xine_s
Definition
xine_internal.h:80
xine_spu_opacity_s
Definition
spu.h:30
xine_spu_opacity_s::colour
uint8_t colour
Definition
spu.h:31
xine_spu_opacity_s::black
uint8_t black
Definition
spu.h:31
Generated by
1.10.0