26void LegoPalettePresenter::Init()
40 if (!p_fromDestructor) {
59 if (stream.
Read(buffer,
sizeof(buffer)) ==
SUCCESS) {
60 if (stream.
Read(palette,
sizeof(palette)) ==
SUCCESS) {
68 if (result !=
SUCCESS && m_palette) {
Implementation of LegoStorage for memory-backed buffers.
LegoResult Read(void *p_buffer, LegoU32 p_size) override
Reads bytes from memory buffer at current position.
Class responsible for presenting and handling palettes for video sequences that require palette manag...
MxResult ParsePalette(MxStreamChunk *p_chunk)
Parses a palette from a chunk in the streaming media resource.
void ReadyTickle() override
Called by the tickle manager when presenter is in Ready state; handles next palette chunk if availabl...
void Destroy() override
Handles destruction and cleanup of palette presenter resources (public destroy invocation).
~LegoPalettePresenter() override
Cleans up and releases owned resources, including any loaded palette.
MxResult RealizePalette(MxPalette *) override
[AI] Sets the realized palette to use for rendering and updates the display surface.
void Enter()
[AI] Acquires/gains entry to the critical section or mutex, blocking if not available.
void Leave()
[AI] Releases/leaves the critical section or mutex.
virtual MxLong GetElapsedTime()
[AI] Gets elapsed time for this action since the last time field 0x90 was set.
MxLong GetTime()
[AI] Returns the time (timestamp or tick) associated with this chunk. [AI]
MxU8 * GetData()
[AI] Returns a pointer to the start of the data payload. [AI]
MxStreamChunk * PopData()
[AI] Pops the next available pending data chunk for consumption, moving it to the consumed list.
void FreeDataChunk(MxStreamChunk *p_chunk)
[AI] Frees (deletes) a data chunk if it's found in the consumed data list; also forcibly deletes sing...
MxStreamChunk * PeekData()
[AI] Returns but does not remove the first pending data chunk ("peek" operation).
[AI] Encapsulates a DirectDraw 8-bit (256 color) palette for use with DirectX rendering.
virtual void ParseExtra()
[AI] Parses additional data from the associated action for configuration or world interaction.
void ProgressTickleState(TickleState p_tickleState)
[AI] Helper for advancing the presenter's tickle state and updating transition history.
MxDSAction * m_action
[AI] The associated action currently being presented by this presenter.
@ e_starting
[AI] In the process of starting playback/presentation.
MxCriticalSection m_criticalSection
[AI] Thread synchronization for presenter state and data.
[AI] Represents a streamable chunk of data, typically sourced from a media buffer and designed for no...
void EndAction() override
Signals the end of the current playback action.
void Destroy() override
Destroys internal resources for the presenter.
#define DECOMP_SIZE_ASSERT(T, S)
#define NULL
[AI] Null pointer value (C/C++ semantics).
#define FAILURE
[AI] Used to indicate a failed operation in result codes.
#define SUCCESS
[AI] Used to indicate a successful operation in result codes.
LegoVideoManager * VideoManager()
[AI] Accessor for the game's LegoVideoManager subsystem. Used for managing 3D/video hardware....