MCPcopy Create free account
hub / github.com/carbonengine/trinity / DecodeNextFrame

Method DecodeNextFrame

trinity/Tr2TextureAnimation.cpp:359–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void Tr2TextureAnimation::DecodeNextFrame( void* ctx )
360{
361 CCP_STATS_ZONE( __FUNCTION__ );
362
363 auto request = static_cast<AsyncRequest*>( ctx );
364 for( auto& decoder : request->state->decoders )
365 {
366 decoder.AdvanceFrame();
367 if( request->state->cancel )
368 {
369 delete request;
370 return;
371 }
372 }
373 request->state->bitmapsReady = true;
374 delete request;
375}
376
377void Tr2TextureAnimation::RestartAndDecodeFrame( void* ctx )
378{

Callers

nothing calls this directly

Calls 1

AdvanceFrameMethod · 0.80

Tested by

no test coverage detected