Mercurial > mplayer.hg
annotate eosd.h @ 31994:2b209fa9c48d
Do not check a condition that can never be false and move its comment
to the real check.
author | reimar |
---|---|
date | Wed, 08 Sep 2010 17:59:07 +0000 |
parents | 710e01dbd994 |
children | 2c49668d91c4 |
rev | line source |
---|---|
31928 | 1 /* |
2 * Extended On Screen Display | |
3 * Copyright (C) 2010 Nicolas George | |
4 * | |
5 * This file is part of MPlayer. | |
6 * | |
7 * MPlayer is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * MPlayer is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License along | |
18 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
20 */ | |
21 | |
22 #ifndef MPLAYER_EOSD_H | |
23 #define MPLAYER_EOSD_H | |
24 | |
31942
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
25 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
26 * Initialize the EOSD subsystem. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
27 * |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
28 * @param vf the video filter chain where the rendering will take place. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
29 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
30 void eosd_init(vf_instance_t *vf); |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
31 |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
32 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
33 * Configure the resolution for EOSD rendering. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
34 * Should be called by the rendering engine whenever the resolution or |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
35 * settings change. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
36 * |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
37 * @param res resolution and margins of the rendering area. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
38 * @param hinting nonzero if hinting is useful. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
39 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
40 void eosd_configure(mp_eosd_res_t *res, int hinting); |
31928 | 41 |
31942
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
42 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
43 * Renders the EOSD elements for the current frame. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
44 * Should be called by the rendering engine when it is about to do or |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
45 * prepare the rendering. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
46 * |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
47 * @param ts presentation timestamp of the frame. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
48 * @param changed if not NULL, will be set to 0 if the elements are |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
49 * identical since the last call, 1 if they have changed |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
50 * only in coordinates, and 2 if they have really changed. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
51 * @return a linked list of EOSD elements. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
52 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
53 struct ass_image *eosd_render_frame(double ts, int *changed); |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
54 |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
55 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
56 * Shut down the EOSD subsystem and free the associated resources. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
57 */ |
31928 | 58 void eosd_uninit(void); |
59 | |
31942
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
60 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
61 * Initialize the use of EOSD for ASS subtitles rendering. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
62 */ |
31934 | 63 void eosd_ass_init(struct ass_library *); |
31928 | 64 |
65 #endif /* MPLAYER_EOSD_H */ |