# HG changeset patch # User cigaes # Date 1282918340 0 # Node ID 710e01dbd9944e1f676baae4200389e5fc8d9fa9 # Parent 7ee3edf8418fa14fe525d89e9b8d44ea423b5f74 Add Doxygen comments and formal parameters names in eosd.h. diff -r 7ee3edf8418f -r 710e01dbd994 eosd.h --- a/eosd.h Fri Aug 27 12:14:59 2010 +0000 +++ b/eosd.h Fri Aug 27 14:12:20 2010 +0000 @@ -22,12 +22,44 @@ #ifndef MPLAYER_EOSD_H #define MPLAYER_EOSD_H -void eosd_init(vf_instance_t *); +/** + * Initialize the EOSD subsystem. + * + * @param vf the video filter chain where the rendering will take place. + */ +void eosd_init(vf_instance_t *vf); + +/** + * Configure the resolution for EOSD rendering. + * Should be called by the rendering engine whenever the resolution or + * settings change. + * + * @param res resolution and margins of the rendering area. + * @param hinting nonzero if hinting is useful. + */ +void eosd_configure(mp_eosd_res_t *res, int hinting); -void eosd_configure(mp_eosd_res_t *, int); -struct ass_image *eosd_render_frame(double, int *); +/** + * Renders the EOSD elements for the current frame. + * Should be called by the rendering engine when it is about to do or + * prepare the rendering. + * + * @param ts presentation timestamp of the frame. + * @param changed if not NULL, will be set to 0 if the elements are + * identical since the last call, 1 if they have changed + * only in coordinates, and 2 if they have really changed. + * @return a linked list of EOSD elements. + */ +struct ass_image *eosd_render_frame(double ts, int *changed); + +/** + * Shut down the EOSD subsystem and free the associated resources. + */ void eosd_uninit(void); +/** + * Initialize the use of EOSD for ASS subtitles rendering. + */ void eosd_ass_init(struct ass_library *); #endif /* MPLAYER_EOSD_H */