Files
foo_input_joc/THIRD_PARTY_NOTICES.md
T
TheM14 5c0f9ea2ff
build / windows (push) Canceled after 0s
build / release (push) Canceled after 0s
Sync the 1.3.1 kernel and read the stream until its first JOC frame
The kernel copy follows JustOneCacophonyCXX 1.3.1: a frame without JOC metadata
mid-stream now holds the previous matrices instead of switching to the core
planes, which removes the clicks the 6.0 kernels produced on encoders that drop
the JOC metadata for single frames.

resolve_bed_channels() called ReadFile once and scanned that single chunk.  A
read returns only the bytes that are available (a pipe hands over a partial
chunk), and an encoder may leave the first audio frames without JOC metadata,
so the first JOC frame could sit past the window.  The scan then fell back to 6
bed channels, and the first JOC frame (joc_dmx_config_idx=1, 8 channels) was
rejected with core_channel_count_mismatch.  The scan now reads 64 KiB chunks
until the first syncframe carrying the JOC EMDF container is seen, keeps the
trailing partial frame between reads, and rewinds the stream as before; the
container path and the bare-file path both use it.

Bump the component version to 0.6.1, and pin the kernel notices to 1.3.1.

Verified with the offline harness: the reported GNR M4A now reports
"joc_dmx_config_idx=1 -> 8 bed channel(s)" and decodes the whole track (8906
frames), and the Smooth Criminal opening no longer steps at the two frames
without metadata (6.016 s and 7.328 s).
2026-11-10 15:35:32 +08:00

2.3 KiB
Raw Blame History

Third-party notices / 第三方通知

本文件记录 64-QMF / 77-hybrid 滤波器组表(kernel/src/hrtf/public_filterbank.h、 kernel/src/joc_core/qmf_tables.h)与 JOC Huffman 表 (kernel/src/joc_bitstream/joc_huffman_tables.h)的公开标准来源,以及 HRTF 数据与 专利的边界说明。

kernel/ 整体是 JustOneCacophonyCXX 1.3.1 的逐字副本。

公开标准来源

64-QMF → 77-hybrid 结构与 13-tap 低带 prototype 定义于 3GPP TS 26.405 / ETSI TS 126 405 第 5.2.2 节(Table 1 的 $Q=8$/Q=4 系数,delay 6):

G_q^p[n] = g^p[n]\cdot\exp\Bigl(j\,\frac{2\pi}{Q^p}\bigl(q+\tfrac12\bigr)(n-6)\Bigr)

64-band QMF analysis 即 ISO/IEC 14496-3/AMD1:2003 第 4.B.18.2 节的 MPEG-4 AAC/SBR 64 complex QMF bank;打包的 64\times10 表是公开 640-tap prototype 的多相重排:

A_{r,t} = \frac{(-1)^t}{128}\,c_{63-r+64t}

QMF synthesis 表为 analysis 多相矩阵 \mathbf{A} 的因果左逆 $\mathbf{A},\mathbf{W}=\mathbf{P}$(\mathbf{P} 为 577-sample 延迟置换; 全链 $961 = 577 + 6\times64$),rank-4 分解存储:

W_{b,l} = \sum_{r=1}^{4} t_{b,l,r}\,\mathbf{b}_{b,r}^{\top}

hybrid synthesis 表为 77→64 重组:高频带恒等 $Y_{3+b}=X_{16+b}$,低频带:

Y_p = \sum_{q\in C_p}\Bigl(\mathrm{Re}X_q + j\,s_q\,\mathrm{Im}X_q\Bigr),\qquad s_q\in\{\pm1\}

相同数值可在 FFmpeg(aacps_tablegen.h、aacsbrdata.h)等公开实现中查到。

AC-3 / E-AC-3 传输层与通道码表

kernel/src/eac3_transport/eac3_reader.cpp 的 AC-3 同步帧长度表由 A/52 的 fscod/frmsizecod 比特率表换算得到(48/44.1/32 kHz 三列),E-AC-3 帧长用标准 frmsiz 字段;kernel/src/joc_bitstream/joc_parser.cpp 的 16 bit chanmap 位表与 A/52 acmod 通道序来自 ATSC A/52 Annex E(等同 ETSI TS 102 366 Annex E)的 Table E2.5 / chanmap 定义。这些表是按公开标准写的数值,不含任何第三方实现代码。

HRTF 数据与 .jochrtf

.jochrtf 含有特定源 SOFA/HRTF 数据集的变换系数与 delay;其使用、复制与再分发仍受源 数据集许可约束,权限不明确时应作为私有 cache 保存。本仓库不分发任何 HRTF 数据集。

专利说明

标准可公开获取不等于获准实施相关专利。