edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! Raw DV (`.dv`, `.dif`) over the family's own [`ec_dv::DvDemuxer`], read by the very readers a |
| 2 | //! transport stream is ([`super::ts`]): [`ts::TsDemuxer`](super::ts::TsDemuxer) for the picture, |
| 3 | //! [`ts::TsAudio`](super::ts::TsAudio) for each sound track -- the way [`super::avi`] is. |
| 4 | //! |
| 5 | //! [`DvSrc`] is the adapter: it presents the file as the 90 kHz packet stream the readers expect |
| 6 | //! (every stream's time base rescaled to ticks, a seek rescaled back), and its streams as the |
| 7 | //! [`ec_mpegts::TrackInfo`] list `ts::describe_open` walks. Source time 0 is frame 0. |
| 8 | //! |
| 9 | //! **Picture.** One DV frame per packet (DV25 NTSC and PAL, DVCPRO25/50, DVCPRO HD), every frame a |
| 10 | //! sync sample. **Sound.** The PCM in the audio DIF blocks, one 16-bit stereo stream per pair |
| 11 | //! the first frame's audio source pack announces (12-bit non-linear already expanded). |
| 12 | |
| 13 | use BufReader; |
| 14 | |
| 15 | use SeekMode; |
| 16 | use ; |
| 17 | use ; |
| 18 | use DvDemuxer; |
| 19 | use ; |
| 20 | |
| 21 | use *; |
| 22 | |
| 23 | type Reader = ; |
| 24 | |
| 25 | /// The ticks a second is cut into, as [`super::ts`] counts. |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | /// Whether `path` is a raw DV file: its extension (`.dv`, `.dif`), or -- for a name that says |
| 31 | /// nothing -- the DIF section headers in its first bytes. A container whose magic is Matroska's |
| 32 | /// or an mp4's is never one, nor is a RIFF file (an AVI holds DV *inside*), a standalone sound |
| 33 | /// file or a still. |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | pub |
| 55 | |
| 56 | |
| 57 | |
| 58 | /// A raw DV file as the packet stream [`super::ts::Src`] speaks. |
| 59 | pub |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 |