diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2013-02-01 23:35:02 +0000 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2013-03-03 23:17:53 +0100 |
commit | 1ae86d2390b3e64b5f6574fa1628461bc403ae14 (patch) | |
tree | 9027365853409126cb33d4c64dd907718819219e /libass/ass_utils.h | |
parent | 0e1702ad7a6a827d400c87b7a98aea11e54d2127 (diff) | |
download | libass-1ae86d2390b3e64b5f6574fa1628461bc403ae14.tar.bz2 libass-1ae86d2390b3e64b5f6574fa1628461bc403ae14.tar.xz |
Support reading the YCbCr Matrix header
The value is parsed and stored as an enum constant that the consumer
can read from ASS_Track. All output images are still plain RGB,
and the consumer is expected to perform its own color correction.
Supported header values: (TV|PC).(601|709|240M|FCC) and None.
If the header is missing, a special compatibility value is used
that should be treated as TV.601 if the accompanying video stream
is YCbCr and as None otherwise. If the header is present but has
an invalid/unknown value, a different special value is substituted.
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r-- | libass/ass_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h index a1abde9..2d0c6f9 100644 --- a/libass/ass_utils.h +++ b/libass/ass_utils.h @@ -49,6 +49,7 @@ int mystrtou32(char **p, int base, uint32_t *res); int mystrtod(char **p, double *res); int strtocolor(ASS_Library *library, char **q, uint32_t *res, int hex); char parse_bool(char *str); +int parse_ycbcr_matrix(char *str); unsigned ass_utf8_get_char(char **str); void ass_msg(ASS_Library *priv, int lvl, char *fmt, ...); int lookup_style(ASS_Track *track, char *name); |