Migrate video from CRI Movie 3.50 to CRI Mana 2019#6
Merged
Conversation
Replace the old CRI Movie SDK (C++ OOP API with CriMvEasyPlayer) with CRI Mana 2019 (C-style API with CriManaPlayerHn opaque handles). Key changes: - Init: criAtomEx_Initialize_WASAPI + criMana_Initialize_PC (Atom must init before Mana for audio/file system subsystems) - Memory: criAtomEx_SetUserAllocator + criMana_SetUserAllocator routing through Scaleform heap - Player: CriMvEasyPlayer → criManaPlayer_Create/Destroy/Start/Stop - Frames: ReferFrame → IsFrameOnTime → CopyFrameToBuffersYUV → DiscardFrame - Decode: criMana_ExecuteMain() global tick + per-player ExecuteMain - File I/O: managed internally by CRI FS (stub out VideoReader/FileReader) - Audio: managed internally by CRI Atom/WASAPI (stub out SoundGateway) - Timer: simplified to SyncObject only (CriMvSystemTimer removed) - Crash fix: validate file exists before criManaPlayer_DecodeHeader to prevent CRI internal thread crash on missing .usm files Tested: VideoDemo_AS3.swf plays video+audio correctly with Vulkan renderer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
3rdParty/cri/) with CRI Mana 2019 (3rdParty/cri2019/) — C-style handle API replacing C++ OOP APIcriMana_ExecuteMain()global server tick for file I/O streamingcriManaPlayer_DecodeHeaderto prevent CRI internal thread crash on missing .usm filescri_mana+cri_atom+cri_file_system+cri_base+cri_frameworkTest plan
libgfxvideo.libcompiles with zero errors (Release + Debug)GFxPlayerTinyVulkan.exelinks and builds successfullyVideoDemo_AS3.swfplays video + audio correctly with Vulkan rendererStreamNotFound)🤖 Generated with Claude Code