Mercurial > mplayer.hg
comparison eosd.h @ 31942:710e01dbd994
Add Doxygen comments and formal parameters names in eosd.h.
author | cigaes |
---|---|
date | Fri, 27 Aug 2010 14:12:20 +0000 |
parents | 30b03b5dbb3d |
children | 2c49668d91c4 |
comparison
equal
deleted
inserted
replaced
31941:7ee3edf8418f | 31942:710e01dbd994 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #ifndef MPLAYER_EOSD_H | 22 #ifndef MPLAYER_EOSD_H |
23 #define MPLAYER_EOSD_H | 23 #define MPLAYER_EOSD_H |
24 | 24 |
25 void eosd_init(vf_instance_t *); | 25 /** |
26 * Initialize the EOSD subsystem. | |
27 * | |
28 * @param vf the video filter chain where the rendering will take place. | |
29 */ | |
30 void eosd_init(vf_instance_t *vf); | |
26 | 31 |
27 void eosd_configure(mp_eosd_res_t *, int); | 32 /** |
28 struct ass_image *eosd_render_frame(double, int *); | 33 * Configure the resolution for EOSD rendering. |
34 * Should be called by the rendering engine whenever the resolution or | |
35 * settings change. | |
36 * | |
37 * @param res resolution and margins of the rendering area. | |
38 * @param hinting nonzero if hinting is useful. | |
39 */ | |
40 void eosd_configure(mp_eosd_res_t *res, int hinting); | |
41 | |
42 /** | |
43 * Renders the EOSD elements for the current frame. | |
44 * Should be called by the rendering engine when it is about to do or | |
45 * prepare the rendering. | |
46 * | |
47 * @param ts presentation timestamp of the frame. | |
48 * @param changed if not NULL, will be set to 0 if the elements are | |
49 * identical since the last call, 1 if they have changed | |
50 * only in coordinates, and 2 if they have really changed. | |
51 * @return a linked list of EOSD elements. | |
52 */ | |
53 struct ass_image *eosd_render_frame(double ts, int *changed); | |
54 | |
55 /** | |
56 * Shut down the EOSD subsystem and free the associated resources. | |
57 */ | |
29 void eosd_uninit(void); | 58 void eosd_uninit(void); |
30 | 59 |
60 /** | |
61 * Initialize the use of EOSD for ASS subtitles rendering. | |
62 */ | |
31 void eosd_ass_init(struct ass_library *); | 63 void eosd_ass_init(struct ass_library *); |
32 | 64 |
33 #endif /* MPLAYER_EOSD_H */ | 65 #endif /* MPLAYER_EOSD_H */ |