Change #275172
| Category | ffmpeg |
| Changed by | Lynne <dev@lynne.ee> |
| Changed at | Sun 19 Jul 2026 14:41:48 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 26586c898fadd410989fa52f591dce3055e08e53 |
Comments
avcodec/psymodel: add pair-synced window switching hook and pair state Divergent block switching between the two channels of a CPE disables common_window, and with it every joint stereo tool, on exactly the frames that need them most; the lone short channel then codes its transient alone, which is audible as one-channel garble at beats. Add an optional window_pair() model hook so a psy model can decide both channels of a pair together, and encoder-fed per-pair state: the joint-tool candidacy fraction EMA and a Schmitt-gated decouple flag, letting the model fall back to independent per-channel switching on content whose joint tools are dead (diffuse, decorrelated pairs) where forcing a common grid only costs quality.
Changed files
- libavcodec/psymodel.h