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:
@@ -729,8 +729,16 @@ fn parse_track(
|
||||
};
|
||||
let res = Resolution::from_height(ph);
|
||||
let chs = AudioChannels::from_count(ch);
|
||||
let srs = if sr >= 96000.0 {
|
||||
let srs = if sr >= 192000.0 {
|
||||
SampleRate::S192
|
||||
} else if sr >= 176400.0 {
|
||||
SampleRate::S176_4
|
||||
} else if sr >= 96000.0 {
|
||||
SampleRate::S96
|
||||
} else if sr >= 88200.0 {
|
||||
SampleRate::S88_2
|
||||
} else if (44100.0..48000.0).contains(&sr) {
|
||||
SampleRate::S44_1
|
||||
} else {
|
||||
SampleRate::S48
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user