Fix JOC passthrough layout and no-previous-state interpolation
Interpolate the second half of a two-data-point frame from dp0 to dp1 when the object has no previous matrix; a single data point keeps the hard cut. Rebuild the passthrough frame as the 8-plane core order L, R, C, LFE, Ls, Rs, (Lrs, Rrs) written to output slots 0..7, all delayed by 1217 samples, and keep that 8-plane history updated on every frame. Frames without JOC metadata always take this passthrough path, and a core channel count change clears the LFE ring while keeping the clipgain ramp state. Reject unsupported downmix configurations with a structured variant error in the metadata scan, and score ID14 payloads by the frame status instead of accepting any lenient parse. Update the math notes and README for the two-data-point interpolation without a previous state and the 8-plane passthrough output.
This commit is contained in:
1 parent
0820444f45
commit
17e52a531c
7 files changed
+68
-34
No files matched your search
+6
-6
@@ -193,12 +193,10 @@ Thus $p(b)=k$ if and only if $b\in\mathcal B_k$. Other parameter-band counts use
|
||||
### 3.2 One-data-point interpolation
|
||||
|
||||
Let $P_{o,c,b}$ be the previous frame-end value and $D_{o,c,p(b)}$ the current target. When the object
|
||||
has no previous state yet (the first frame of the stream, or the object's first appearance), all 24 slots
|
||||
take the current target directly (hard cut, no fade-in from zero):
|
||||
|
||||
$$
|
||||
M_{o,c,b,t}=D_{o,c,p(b)},\qquad t=0\ldots23.
|
||||
$$
|
||||
has no previous state yet (the first frame of the stream, or the object's first appearance), a single
|
||||
data point keeps all 24 slots at $D_{o,c,p(b)}$ (hard cut, no fade-in from zero); with two data points,
|
||||
the first 12 slots stay at $D_0$ and the last 12 slots still interpolate from $D_0$ to $D_1$ using the
|
||||
second segment of section 3.3 (with $P$ set to $D_0$).
|
||||
|
||||
With a previous state, for slot $t=0\ldots23$:
|
||||
|
||||
@@ -237,6 +235,8 @@ D_{0}, & t=11,\\[1mm]
|
||||
\end{cases}
|
||||
$$
|
||||
|
||||
When no previous state exists, the same formulas apply with $P_{o,c,b}$ set to $D_0$.
|
||||
|
||||
Step mode (`slope_idx=1`) switches targets directly at the designated slots: for $t<o_0$ it keeps the
|
||||
previous frame-end value $P_{o,c,b}$ (or $D_0$ when no previous state exists), for $o_0\le t<o_1$ it
|
||||
uses $D_0$, and for $t\ge o_1$ it uses $D_1$; with a single data point it keeps $P$ for $t<o_0$ and uses
|
||||
|
||||
Reference in new issue
Block a user