Loading...
Searching...
No Matches
score::gfx::VideoFrameReader Struct Reference
Inheritance diagram for score::gfx::VideoFrameReader:
score::gfx::VideoFrameShare

Public Member Functions

bool mustReadVideoFrame (const VideoNode &node)
 
void readNextFrame (VideoNode &node)
 
void pause (bool p)
 
- Public Member Functions inherited from score::gfx::VideoFrameShare
std::shared_ptr< RefcountedFrame > currentFrame () const noexcept
 
void updateCurrentFrame (AVFrame *frame)
 
void releaseFramesToFree ()
 
void releaseAllFrames ()
 

Static Public Member Functions

static AVFrame * nextFrame (const VideoNode &node, Video::VideoInterface &decoder, std::vector< AVFrame * > &framesToFree, AVFrame *&nextFrame, bool showing)
 

Additional Inherited Members

- Public Attributes inherited from score::gfx::VideoFrameShare
std::shared_ptr< Video::VideoInterface > m_decoder
 
std::mutex m_frameLock {}
 
std::shared_ptr< RefcountedFrame > m_currentFrame
 
int64_t m_currentFrameIdx {}
 
std::vector< AVFrame * > m_framesToFree
 
std::vector< std::shared_ptr< RefcountedFrame > > m_framesInFlight
 

Member Function Documentation

◆ nextFrame()

AVFrame * score::gfx::VideoFrameReader::nextFrame ( const VideoNode &  node,
Video::VideoInterface &  decoder,
std::vector< AVFrame * > &  framesToFree,
AVFrame *&  nextFrame,
bool  showing 
)
static

The frame for the node's current time, if a new one is due.

Parameters
showingwhether a frame is on screen: until one is, the first frame shows even before its time, as in DirectVideoNodeRenderer.

The documentation for this struct was generated from the following files: