Repository navigation
bink_framebuffers_test: the exe's Bink path (frame buffers) over movies.rpf (RT-BINK-FRAMEBUFFERS) - #7405
bink_framebuffers_test: the exe's Bink path (frame buffers) over movies.rpf (RT-BINK-FRAMEBUFFERS)#7405quackottu wants to merge 1 commit into
Conversation
… BinkRegisterFrameBuffers) over movies.rpf (RT-BINK-FRAMEBUFFERS) The retail exe imports 23 Bink2Scarlett functions and none of BinkCopyToBuffer, so the existing Bink tests never ran its path. Package-gated test: 515 of 515 streams pass; layout, 4:2:0 planes, size and pitch rounding measured in docs/movies.md.
|
Independent Windows + 1.0.2.1 package test of Setup: Windows 11 x64, MSVC 19.44.35220 (
AI-assisted review/test. |
|
Tested 064a958 on my own Xbox 1.0.2.1 copy (all 108 files match
The test is CPU-only (no GPU involved). There is no AI-assisted (Claude Code). |
|
Two static call sites in the title resolve the argument order left open here. Both pass an options pointer second and a 32-bit flags value third to |
RT-BINK-FRAMEBUFFERS, claimed in #7049 (comment)
The retail exe imports 23
Bink2Scarlett.dllfunctions, includingBinkOpenWithOptions,BinkGetFrameBuffersInfo,BinkRegisterFrameBuffersandBinkDoFrame, and none ofBinkCopyToBuffer,BinkOpenorBinkGetSummary.bink_decode_test,bink_abi_testandbink_audio_testonly use those three, so the exe's own path had never run underrt::Loader. The DLL itself has nod3d12*/dxgi*imports, so a boot movie needs no d3d12_xs method or compute shader from Bink.bink_framebuffers_test(ctestbink_framebuffers, skips with 77 withoutLEONIDA_GAME_DIRandLEONIDA_BINK_INDEX): per stream, copy it frommovies.rpfto one temp file,BinkOpenWithOptions,BinkGetFrameBuffersInfo, check the layout, decode into the library's planes, then reopen,BinkRegisterFrameBufferswith caller-owned planes before the first decode, decode, and check the caller's planes were written.Measured (Windows 11, MSVC, RelWithDebInfo, 1.0.2.1): all 515 streams,
LEONIDA_BINK_LIMIT=515, RESULT PASS (4,636 checks). Default 12 streams: 0.8 s. Registering after a decode left the planes untouched on 21 of 515 streams, so the test registers first, as a game would. Not covered here and still unmeasured:BinkSetMemory,BinkSetOSFileCallbacks, the async-thread calls,BinkGetPlatformInfo,BinkSetSoundSystem.No game data in the diff (
check_no_game_data.pyclean).AI-assisted.