-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CEA-608 Decoder #2731
CEA-608 Decoder #2731
Conversation
removed useless logs Added color support fixed up background attribute logic trim new lines on row ends and styling fix logic on clearing rollup captions when moving window hotfixes on decoder and tests fixed logic and added support for all charsets minor syntax fix renaming constants improve commenting, remove redundant comments move important hex into constants broke hex values in unit tests into constants comment fixing constant suffixes cleaned impl for streams/channel
clarification in comments
b45fba7
to
1ebb6a9
Compare
made colors array more intuitive
592a4b4
to
0a4ae52
Compare
…mp4-cea-decoder
This reverts commit d6786bf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to spend more time reading the decoder class and its tests, but I've been over the rest thoroughly enough, I think. I'll go ahead and send the comments I've got so far. Let me know if you want to discuss any of it in person.
small unit test fix
b5f7272
to
292c896
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to do one more detailed pass on CeaDecoder, CeaUtils, and the decoder unit tests. But here are a few comments to get you going again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this time I've been over absolutely everything. Thanks so much for the revisions and all your hard work on this!
ccPacket.ccData1 &= 0x7f; | ||
ccPacket.ccData2 &= 0x7f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these packets completely discarded after decode() is complete? If so, this should be fine. But if they were ever re-processed, this would cause half your packets to fail the parity check on a second pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, once the decode is complete the packets are all cleared. There is no reprocessing of packets after.
This pertains to #2648. A CEA-608 decoder that decodes CEA-608 (Line 21) data from User Data Registered by Rec. ITU-T T.35 SEI messages and returns them as cues in Shaka's internal cue format. This allows us to separately maintain our own decoder, and removes our dependency on the Mux.js caption decoder.
Format:
Cues are emitted in Shaka's internal format (lib/text/cue.js). This decoder makes use of nested cues. The top level cue is always a blank cue with no text, and each nested cue inside it contains text, as well as a specific style, or linebreak cues to facilitate line breaks. This also allows for inline style (color, italics, underline) changes.
Basic North American, Special North American, and Extended European Charsets supported.
Underlines, colors, and Italics supported, set as a property on each nested cue.
Text mode not emitted.
Positioning and alignment not supported.