diff options
author | Grigori Goronzy <greg@blackbox> | 2009-06-27 06:31:45 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-06-27 06:46:20 +0200 |
commit | 4c1f9e93addaa511f96908fe502e8d5709ed7500 (patch) | |
tree | 8b26aa78db213efd4fd7dfdd8ea298e219bf7f22 /libass/ass_utils.h | |
parent | 917e02edda4392b465ffa179628a5032ff969900 (diff) | |
download | libass-4c1f9e93addaa511f96908fe502e8d5709ed7500.tar.bz2 libass-4c1f9e93addaa511f96908fe502e8d5709ed7500.tar.xz |
Incorporate mputils.c into ass_utils.c
Move helper functions originating from MPlayer into ass_utils.c.
Remove some debugging code that is #if 0'ed for ages now. Delete
mputils.c and mputils.h and remove them from the build system.
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r-- | libass/ass_utils.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h index 54c8fe0e..553a69dd 100644 --- a/libass/ass_utils.h +++ b/libass/ass_utils.h @@ -21,7 +21,28 @@ #ifndef LIBASS_UTILS_H #define LIBASS_UTILS_H +#include <stdio.h> +#include <stdarg.h> #include <stdint.h> +#include <stdlib.h> +#include <string.h> +#include <assert.h> + +#ifdef CONFIG_ENCA +#include <enca.h> +#endif + +#include "help_mp.h" + +#define MSGL_FATAL 0 +#define MSGL_ERR 1 +#define MSGL_WARN 2 +#define MSGL_INFO 4 +#define MSGL_V 6 +#define MSGL_DBG2 7 + +#define FFMAX(a,b) ((a) > (b) ? (a) : (b)) +#define FFMIN(a,b) ((a) > (b) ? (b) : (a)) int mystrtoi(char **p, int *res); int mystrtoll(char **p, long long *res); @@ -29,6 +50,13 @@ int mystrtou32(char **p, int base, uint32_t *res); int mystrtod(char **p, double *res); int strtocolor(char **q, uint32_t *res); char parse_bool(char *str); +unsigned ass_utf8_get_char(char **str); +void ass_msg(int lvl, char *fmt, ...); +void ass_gauss_blur(unsigned char *buffer, unsigned short *tmp2, + int width, int height, int stride, int *m2, + int r, int mwidth); +void *ass_guess_buffer_cp(unsigned char *buffer, int buflen, + char *preferred_language, char *fallback); static inline int d6_to_int(int x) { |