Skip to content

Conversation

@jcekstrom-xumo
Copy link

No description provided.

MathieuDuponchelle and others added 13 commits March 18, 2020 21:06
Fixes szatmary#59

* pop_on mode requires incrementing the frame timestamp until
  end_of_caption is encountered.

* caption_frame_decode now always updates the timestamp of the
  frame when the timestamp parameter != -1. This requires that callers
  only pass a valid timestamp when a new one is encountered, for
  example with SCC the timestamp at the start of the cue, then -1
  until the next new timestamp.

* A new enum member is added for the return value, LIBCAPTION_CLEAR.
  It allows the caller to determine that closed captions should not
  be displayed anymore, in order to finish the previous cue earlier
  than the start of the next cue.
Fixed an issue where the character being checked should be the next one,
but instead was checking next + len, which made the last caption
dissapear.
Because 608 has a 4 row maximum, we drop any caption rows
that are past 4. Should revisit this when processing SRT.
Fix function utf8_line_length
Changed 608 captions to always anchor to the bottom.
Preparing for Xumo release of libcaption
previously it was sending an {EOC} - end of caption, then
sending {EDM} erase-display-memory, and {ENM} erase-non-display-memory,
after.

Changes it to {EDM} {ENM} {EOC}

credit Chris Gordon
There were debug statements printing to stdout.  Fixed them to print to
stderr.
- Changing the order of 608 clear captions to spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants