[mythtv-commits] Ticket #9772: EIA-608 closed caption colors
MythTV
noreply at mythtv.org
Thu May 12 01:54:46 UTC 2011
#9772: EIA-608 closed caption colors
------------------------------------------------+--------------------------
Reporter: Jim Stichnoth <stichnot@…> | Type: Patch -
Status: new | Feature
Milestone: unknown | Priority: minor
Version: Trunk Head | Component: MythTV -
Keywords: | General
| Severity: medium
| Ticket locked: 0
------------------------------------------------+--------------------------
This patch adds support for colors, italics, and underlining to EIA-608
closed captions. (Sorry to say that I didn't add flashing support...)
Currently only intra-line formatting is supported, and not formatting
associated with preamble address codes, as I haven't seen any examples of
the latter in my testing.
In an ideal implementation, each character would be decorated with
color/italic/underline attributes which would be extracted by the caption
renderer. However, this approach looked like it would involve fairly
major changes, so I took a different approach. Formatting commands are
embedded into the caption string as two-character control sequences like
"%a", "%b", etc. for the renderer to decode. This works well in practice,
but might cause anomalies with backspacing and direct addressing via
preamble address codes.
See also [85a5266e1].
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9772>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list