summaryrefslogtreecommitdiffstats
path: root/core/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-17 19:58:57 +0100
committerwm4 <wm4@nowhere>2012-11-20 18:00:15 +0100
commitd23b620a89e88b0ec0d6a66c7f05c2e461579647 (patch)
tree1d0719823527f5789aab4ae26cfa4ddcf72d9096 /core/command.c
parentdcd2435e795eefe687c23b5b74da430525ad8c00 (diff)
downloadmpv-d23b620a89e88b0ec0d6a66c7f05c2e461579647.tar.bz2
mpv-d23b620a89e88b0ec0d6a66c7f05c2e461579647.tar.xz
m_option: add color option type
This accepts HTML-style hex colors in the form #RRGGBB. It's also possible to provide an alpha component with #AARRGGBB. Each 2-digit group is a hex number, which gives the color value from 0-255 (e.g. There is existing code in subassconvert.c, which parses HTML-style color values in SRT subs. This is not used: it's probably better if option parsing is completely separate from code specific to certain subtitle formats, even if a little code is duplicated.
Diffstat (limited to 'core/command.c')
0 files changed, 0 insertions, 0 deletions