mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 19:22:11 +00:00
384b13c5fd
This loaded external .ass files via libass. libavformat's .ass reader is now good enough, so use that instead. Apparently libavformat still doesn't support fonts embedded into text .ass files, but support for this has been accidentally broken in mpv for a while anyway. (And only 1 person complained.)
22 lines
668 B
C
22 lines
668 B
C
#ifndef MP_CHARSET_CONV_H
|
|
#define MP_CHARSET_CONV_H
|
|
|
|
#include <stdbool.h>
|
|
#include "misc/bstr.h"
|
|
|
|
struct mp_log;
|
|
|
|
enum {
|
|
MP_ICONV_VERBOSE = 1, // print errors instead of failing silently
|
|
MP_ICONV_ALLOW_CUTOFF = 2, // allow partial input data
|
|
MP_STRICT_UTF8 = 4, // don't fall back to UTF-8-BROKEN when guessing
|
|
};
|
|
|
|
bool mp_charset_is_utf8(const char *user_cp);
|
|
bool mp_charset_requires_guess(const char *user_cp);
|
|
const char *mp_charset_guess(void *talloc_ctx, struct mp_log *log, bstr buf,
|
|
const char *user_cp, int flags);
|
|
bstr mp_iconv_to_utf8(struct mp_log *log, bstr buf, const char *cp, int flags);
|
|
|
|
#endif
|