AACS pipeline reshape + TrueHD metadata + central consts + clippy/fmt clean

- AACS: delete in-lib keydb parser (Step 3); boil-down primitives
  (mk_from_dk/vuk_from_mk/uk_from_vuk) + newtypes; KeySource->get_uk(ctx)+
  ResolveCtx; Unlocker->unlock()->Result<Vid,UnlockError> + AacsCertUnlocker;
  OEM bus-key gate (AacsBusKeyUnavailable); structured ResolutionTrace (Step 4).
- TrueHD: sample-rate from major-sync, Atmos label, 44.1k AU duration.
- consts: central media/format constants module; 17 duplicate const-defs
  centralized (sector/TS-packet/source-packet); mpls stream-entry + category
  codes named.
- clippy --all-targets -D warnings clean (1.86); fmt clean; 2199 lib tests.
This commit is contained in:
Matthew Jackson
2026-06-26 12:19:24 -07:00
parent 05729f5dfe
commit decb87a250
48 changed files with 2208 additions and 2031 deletions
+3 -3
View File
@@ -268,15 +268,15 @@ mod tests {
/// absorb). ISO 13818-1 packet layout: sync 0x47 at TS offset 0 (BD off 4).
fn bdts_pes_packet(pid: u16, payload: &[u8]) -> Vec<u8> {
const SYNC: u8 = 0x47;
const TS_PAYLOAD: usize = 184;
use crate::consts::TS_PAYLOAD_BYTES;
let mut pes = vec![0x00, 0x00, 0x01, 0xE0, 0x00, 0x00, 0x80, 0x00, 0x00];
pes.extend_from_slice(payload);
assert!(pes.len() <= TS_PAYLOAD);
assert!(pes.len() <= TS_PAYLOAD_BYTES);
let mut pkt = vec![0u8; 192];
pkt[4] = SYNC;
pkt[5] = (((pid >> 8) as u8) & 0x1F) | 0x40; // PUSI
pkt[6] = (pid & 0xFF) as u8;
let pad = TS_PAYLOAD - pes.len();
let pad = TS_PAYLOAD_BYTES - pes.len();
if pad == 0 {
pkt[7] = 0x10; // payload only
pkt[8..8 + pes.len()].copy_from_slice(&pes);