edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB86fb0f3Tahinli7 days ago3927 commits
| 1 | //! Closed captions: carriage extraction and CEA-608 / CEA-708 decoding. |
| 2 | //! |
| 3 | //! * [`ccdata`]: the `cc_data` triplet type and the wrappers it travels in (ATSC A/53 `GA94`, |
| 4 | //! the DVD `CC` variant, CDP packets, QuickTime `c608`/`c708` samples). |
| 5 | //! * [`extract`]: side-channel extractors for H.264, HEVC and MPEG-2 elementary streams. They never |
| 6 | //! touch the decoders: a light parse of the SEI / user data plus just enough of the slice header |
| 7 | //! (H.264/HEVC) or picture header (MPEG-2) to restore presentation order. |
| 8 | //! * [`cea608`]: the field 1 / field 2 line-21 decoder (CC1 to CC4) with pop-on, roll-up and |
| 9 | //! paint-on modes. |
| 10 | //! * [`cea708`]: DTVCC service 1 (windows plus text commands); other services are refused by name. |
| 11 | //! * [`synth`]: cc_data generator and SEI / user-data writers used by tests and tools. |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | pub use CcTriplet; |
| 22 | pub use ; |
| 23 | pub use Cea708Decoder; |
| 24 | pub use ; |
| 25 | |
| 26 | /// Decode a presentation-ordered triplet list into 608 cues and 708 service 1 cues. |
| 27 | /// |
| 28 | /// Convenience for callers that just want captions: field 1/2 pairs (`cc_type` 0 and 1) go to the |
| 29 | /// 608 decoder, DTVCC bytes (types 2 and 3) to the 708 decoder. |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | /// Result of [`decode_all`]. |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 |