summaryrefslogtreecommitdiffstats
path: root/ass_mp.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-20 18:47:18 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2011-01-26 20:39:04 +0200
commita248c2c7a137517061e6271f22b84d43bcd7191d (patch)
tree27cb0970881007be820e8dfb74c504cf257afb20 /ass_mp.c
parent966340b31a7bc53e922118da1cd4783d6a06483d (diff)
downloadmpv-a248c2c7a137517061e6271f22b84d43bcd7191d.tar.bz2
mpv-a248c2c7a137517061e6271f22b84d43bcd7191d.tar.xz
cleanup: rename ass_* functions to mp_ass_*
The various ass_* functions were created when libass was part of the MPlayer tree and the distinction between MPlayer-specific and other functions was less clear. Now that libass is a clearly separate library, using the same ass_* namespace for player functions is ugly. Rename the functions to use mp_ass_ prefix instead.
Diffstat (limited to 'ass_mp.c')
-rw-r--r--ass_mp.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/ass_mp.c b/ass_mp.c
index e43fd7a379..37e688d7f1 100644
--- a/ass_mp.c
+++ b/ass_mp.c
@@ -72,7 +72,7 @@ static char *sub_cp = 0;
void process_force_style(ASS_Track *track);
-ASS_Track *ass_default_track(ASS_Library *library)
+ASS_Track *mp_ass_default_track(ASS_Library *library)
{
ASS_Track *track = ass_new_track(library);
@@ -211,13 +211,13 @@ static int ass_process_subtitle(ASS_Track *track, subtitle *sub)
* \param fps video framerate
* \return newly allocated ASS_Track, filled with subtitles from subdata
*/
-ASS_Track *ass_read_subdata(ASS_Library *library, sub_data *subdata,
- double fps)
+ASS_Track *mp_ass_read_subdata(ASS_Library *library, sub_data *subdata,
+ double fps)
{
ASS_Track *track;
int i;
- track = ass_default_track(library);
+ track = mp_ass_default_track(library);
track->name = subdata->filename ? strdup(subdata->filename) : 0;
for (i = 0; i < subdata->sub_num; ++i) {
@@ -232,7 +232,8 @@ ASS_Track *ass_read_subdata(ASS_Library *library, sub_data *subdata,
return track;
}
-ASS_Track *ass_read_stream(ASS_Library *library, const char *fname, char *charset)
+ASS_Track *mp_ass_read_stream(ASS_Library *library, const char *fname,
+ char *charset)
{
int i;
char *buf = NULL;
@@ -281,7 +282,7 @@ ASS_Track *ass_read_stream(ASS_Library *library, const char *fname, char *charse
return track;
}
-void ass_configure(ASS_Renderer *priv, int w, int h, bool unscaled)
+void mp_ass_configure(ASS_Renderer *priv, int w, int h, bool unscaled)
{
int hinting;
ass_set_frame_size(priv, w, h);
@@ -296,7 +297,7 @@ void ass_configure(ASS_Renderer *priv, int w, int h, bool unscaled)
ass_set_line_spacing(priv, ass_line_spacing);
}
-void ass_configure_fonts(ASS_Renderer *priv)
+void mp_ass_configure_fonts(ASS_Renderer *priv)
{
char *dir, *path, *family;
dir = get_path("fonts");
@@ -328,7 +329,7 @@ static void message_callback(int level, const char *format, va_list va, void *ct
mp_msg(MSGT_ASS, level, "\n");
}
-ASS_Library *ass_init(void)
+ASS_Library *mp_ass_init(void)
{
ASS_Library *priv;
char *path = get_path("fonts");
@@ -343,7 +344,7 @@ ASS_Library *ass_init(void)
int ass_force_reload = 0; // flag set if global ass-related settings were changed
-ASS_Image *ass_mp_render_frame(ASS_Renderer *priv, ASS_Track *track,
+ASS_Image *mp_ass_render_frame(ASS_Renderer *priv, ASS_Track *track,
long long now, int *detect_change)
{
if (ass_force_reload) {