Support reading the YCbCr Matrix header
commit1ae86d2390b3e64b5f6574fa1628461bc403ae14
authorOleg Oshmyan <chortos@inbox.lv>
Fri, 1 Feb 2013 23:35:02 +0000 (1 23:35 +0000)
committerGrigori Goronzy <greg@blackbox>
Sun, 3 Mar 2013 22:17:53 +0000 (3 23:17 +0100)
tree9027365853409126cb33d4c64dd907718819219e
parent0e1702ad7a6a827d400c87b7a98aea11e54d2127
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.
libass/ass.c
libass/ass_types.h
libass/ass_utils.c
libass/ass_utils.h