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:
@@ -1050,10 +1050,10 @@ mod tests {
|
||||
/// codecPrivate, or the A-segment decodes against the wrong entry point.
|
||||
#[test]
|
||||
fn vc1_emits_entry_point_revert_to_first_value() {
|
||||
let sh = vec![0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB];
|
||||
let sh = [0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB];
|
||||
let ep_a = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x11, 0x22];
|
||||
let ep_b = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x33, 0x44, 0x55];
|
||||
let frame = vec![0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
let frame = [0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
|
||||
let mut parser = Vc1Parser::new();
|
||||
|
||||
@@ -1106,10 +1106,10 @@ mod tests {
|
||||
/// seek points carry valid decoder state (SMPTE 421M).
|
||||
#[test]
|
||||
fn vc1_reasserts_active_headers_at_bare_keyframe() {
|
||||
let sh_a = vec![0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB];
|
||||
let sh_a = [0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB];
|
||||
let ep_a = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x11, 0x22];
|
||||
let ep_b = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x33, 0x44, 0x55];
|
||||
let frame = vec![0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
let frame = [0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
|
||||
let mut parser = Vc1Parser::new();
|
||||
|
||||
@@ -1154,10 +1154,10 @@ mod tests {
|
||||
/// violating SMPTE 421M. After the fix, assembly is always seq-then-entry.
|
||||
#[test]
|
||||
fn vc1_keyframe_prefix_order_seq_unchanged_entry_redefined() {
|
||||
let sh = vec![0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB, 0xCC];
|
||||
let sh = [0x00, 0x00, 0x01, SC_SEQUENCE_HEADER, 0xAA, 0xBB, 0xCC];
|
||||
let ep_a = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x11, 0x22];
|
||||
let ep_b = vec![0x00, 0x00, 0x01, SC_ENTRY_POINT, 0x33, 0x44, 0x55];
|
||||
let frame = vec![0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
let frame = [0x00, 0x00, 0x01, SC_FRAME, 0x77];
|
||||
|
||||
let mut parser = Vc1Parser::new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user