diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 01:40:27 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-26 09:07:52 -0500 |
| commit | 2a491668a5afcb8bd1d9208d3b9ad0178df72e28 (patch) | |
| tree | c4a36eacecb54581e3a2882920d4062953e063a6 /runtime/opus_decoder/leonida_opus_decoder.h | |
| parent | dc9ef1a0b790b35aa5ac938382e11e1a2bfc46e7 (diff) | |
dstorage history: fit packed tails against decoded BCPack siblings
The predictor profile fits a history field only from a stream with a raw or
zlib sibling mip. A BC7 texture whose mip 1 and packed tail share one BCPack
stream has none for the tail, so history fields that only such tails use
stayed unknown and the runtime refused the stream with missing-endpoint
(E_DSTORAGE_DECOMPRESSION_ERROR) on every game run.
fit_decoded_neighbors decodes the nearest BCPack sibling with the profile so
far, also inside a stream the decoder refuses (blocks whose chains start at an
unknown field are left out of the reference), and fits the streams that still
reference missing fields. Only empty fields are filled, never as confirmed.
On the local package the BC7 endpoint fields go from 4228 to 4406 of 6144 and
the runtime decoder refuses 8 of 5167 BC7 streams instead of 60; both request
shapes that failed in game runs decode. BC6H is unchanged (10 of 268).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/leonida_opus_decoder.h')
0 files changed, 0 insertions, 0 deletions