edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! DV video decoder (IEC 61834, SMPTE 314M / 370M) and DIF audio extraction. |
| 2 | //! |
| 3 | //! Covers DV25 (NTSC 4:1:1, PAL 4:2:0 and PAL 4:1:1), DVCPRO25, DVCPRO50 (4:2:2) and DVCPRO HD |
| 4 | //! (1080i / 720p, 4:2:2). The arithmetic is FFmpeg's `dvvideo` decoder: its integer simple IDCT, |
| 5 | //! the 2-4-8 IDCT for field-mode blocks, and the three-pass bit-recovery of AC coefficients across |
| 6 | //! blocks, macroblocks and video segments, so planes are byte-identical to FFmpeg's native |
| 7 | //! `yuv411p` / `yuv420p` / `yuv422p` output. |
| 8 | //! |
| 9 | //! * [`DvVideoDecoder`] / [`DvPicture`] -- frame in, native planes out (4:1:1 stays 4:1:1). |
| 10 | //! * [`DvDecoder`] -- the `ec_core` [`Decoder`](ec_core::registry::Decoder). It widens 4:1:1 to |
| 11 | //! `I422` by exact chroma duplication (ec-core has no `I411`); 4:2:0 -> `I420`; 4:2:2 -> `I422`. |
| 12 | //! * [`extract_audio`] -- the PCM in the audio DIF blocks (16-bit linear and 12-bit non-linear, |
| 13 | //! both returned as 16-bit linear) as [`DvAudio`]. No audio `CodecId` is involved: audio leaves |
| 14 | //! this crate as PCM, and [`DvDemuxer`] publishes it as `PcmS16Le` streams. |
| 15 | //! * [`DvDemuxer`], [`is_dv`] -- raw `.dv` / `.dif` files. |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | pub use ; |
| 28 | pub use ; |
| 29 | pub use ; |
| 30 | pub use ; |
| 31 | pub use ; |