Mercurial > mplayer.hg
annotate eosd.h @ 32269:1aaf8691e700
Add CFLAGS/LDFLAGS for all FFmpeg libraries when using pkg-config in configure.
author | diego |
---|---|
date | Sat, 25 Sep 2010 21:00:34 +0000 |
parents | ef21cbba62ee |
children | b4c3659d16b1 |
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 | |
32085 | 25 #include "libmpcodecs/vf.h" |
26 #include "libvo/video_out.h" | |
32209 | 27 #include "ass_mp.h" |
32085 | 28 |
31942
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 * Initialize the EOSD subsystem. |
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 * @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
|
33 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
34 void eosd_init(vf_instance_t *vf); |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
35 |
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 * Configure the resolution for EOSD rendering. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
38 * 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
|
39 * settings change. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
40 * |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
41 * @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
|
42 * @param hinting nonzero if hinting is useful. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
43 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
44 void eosd_configure(mp_eosd_res_t *res, int hinting); |
31928 | 45 |
31942
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 * Renders the EOSD elements for the current frame. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
48 * 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
|
49 * prepare the rendering. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
50 * |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
51 * @param ts presentation timestamp of the frame. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
52 * @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
|
53 * 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
|
54 * 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
|
55 * @return a linked list of EOSD elements. |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
56 */ |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
57 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
|
58 |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
59 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
60 * 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
|
61 */ |
31928 | 62 void eosd_uninit(void); |
63 | |
31942
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
64 /** |
710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
cigaes
parents:
31934
diff
changeset
|
65 * 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
|
66 */ |
32083
2c49668d91c4
Use identical signature for eosd_ass_init in both the .c and .h file.
diego
parents:
31942
diff
changeset
|
67 void eosd_ass_init(ASS_Library *ass_library); |
31928 | 68 |
69 #endif /* MPLAYER_EOSD_H */ |