edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBd9bea4aTahinli3 months ago1566 commits
| 1 | //! H.264 (ITU-T Rec. H.264 / ISO 14496-10) bitstream syntax. |
| 2 | //! |
| 3 | //! Parsing only — no reconstruction. Shared by the software decoder |
| 4 | //! (`ec-h264`) and the stateless hardware path, so every struct is a plain |
| 5 | //! value type whose derived geometry (macroblock counts, crop rectangle, |
| 6 | //! bit depths) is computed once at parse time; a decoder feeds these fields |
| 7 | //! straight into flat per-picture arrays without re-deriving anything per |
| 8 | //! macroblock. |
| 9 | //! |
| 10 | //! Layout of the crate follows the spec's own structure: |
| 11 | //! - [`nal`]: Annex B framing + emulation-prevention removal (7.3.1, 7.4.1) |
| 12 | //! - [`sps`]: sequence parameter set incl. VUI and HRD (7.3.2.1, E.1) |
| 13 | //! - [`pps`]: picture parameter set incl. the High-profile tail (7.3.2.2) |
| 14 | //! - [`slice`]: slice header for I/SI/P/SP/B (7.3.3) |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | pub use ; |
| 24 | pub use Pps; |
| 25 | pub use |
| 26 | |
| 27 | |
| 28 | ; |
| 29 | pub use ; |
| 30 | |
| 31 | /// True when there is at least one more RBSP syntax element before the |
| 32 | /// `rbsp_stop_one_bit` (spec 7.2 `more_rbsp_data()`). |
| 33 | /// |
| 34 | /// `data` is the full unescaped RBSP the reader walks; the stop bit is the |
| 35 | /// last set bit of the last non-zero byte. |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 |