Commits
Commits on
210dfc85beda549f2c4ef572940c5cedf28d46cdFiltered to crates/ec-core/src/lib.rsClear filter2026-08-14
feat(core): H.273 color model + dsp remap, ported from edith engineAhmet Kaan Gümüş · 81a11c6
feat(core): H.273 color model + dsp remap, ported from edith engine Ports the engine's first-party colorspace model into the family IR: the three-tier resolve (container tags over bitstream tags over the 720-line heuristic), the H.273 code tables, the HEVC/H.264/AV1 parameter-set walks that read a VUI colour_description, and the HDR SEI/mdcv/clli readers. ColorInfo keeps its raw CICP triplet and gains the meaning behind it (tags/describe/primaries and a From<ColorDescription> back out); VideoParameters gains the ContentLight the mastering-display and content-light metadata needs, which costs those four structs their Eq. remap lands in ec-dsp beside the transforms: same 8.8 fixed-point coefficients, same rounding, same no-op on a matching pair.
feat(core): workspace + ec-core IR foundationAhmet Kaan Gümüş · a3c0049
feat(core): workspace + ec-core IR foundation
Cargo workspace (crates/*, shims/*, tools/*) and ec-core, the IR every
crate in the family builds on:
- timebase: reduced rational TimeBase + Timestamp, all i128-exact integer
math, four rounding modes. 24000/1001 is representable and stays exact;
cross-base ordering compares instants without rounding first.
- packet: Buf (refcounted byte range, cheap clone and slice) + Packet with
optional pts/dts/duration, flags and side data.
- frame: VideoFrame over validated planes (I420/I422/I444, 10-bit I010/
I210/I410, NV12/NV21, P010/P016, gray, packed RGB/BGRA) with CICP colour
code points, AudioFrame with named channel positions (5.1 = FL FR FC LFE
BL BR) interleaved or planar.
- bitio: MSB and LSB bit readers/writers, exp-Golomb ue/se both ways,
truncation reported as NeedMore instead of panicking, exp-Golomb prefix
bounded so a fuzzer cannot spin.
- error: NeedMore/Eof/Unsupported{what,why}/Corrupt{context}/Io; a refusal
always names what was refused and why.
- registry: CodecId for every codec edith touches (video, audio, subtitle),
CodecParameters/StreamInfo, and the Demuxer/Muxer/Decoder/Encoder
contracts. Codecs are push/pull (send_packet/receive_frame) because
packets and frames do not correspond one to one and end of stream has to
be drainable.
forbid(unsafe_code), warn(missing_docs), no dependencies, no async.