Add new function to read and fill rgb buffer operation
This commit is contained in:
1 parent
fd8b649ef0
commit
159b33a74f
2 files changed
+8
-1
No files matched your search
@@ -476,6 +476,13 @@ Void PlaYUVerStream::getDuration( Int* duration_array )
|
||||
*duration_array++ = secs;
|
||||
}
|
||||
|
||||
Void PlaYUVerStream::readFrameFillRGBBuffer()
|
||||
{
|
||||
readFrame();
|
||||
m_pcNextFrame->fillRGBBuffer();
|
||||
return;
|
||||
}
|
||||
|
||||
Void PlaYUVerStream::readFrame()
|
||||
{
|
||||
if( !m_bInit || !m_bIsInput || m_bLoadAll )
|
||||
@@ -510,7 +517,6 @@ Void PlaYUVerStream::readFrame()
|
||||
m_pcNextFrame->frameFromBuffer( m_pStreamBuffer, bytes_read );
|
||||
}
|
||||
m_uiCurrFrameFileIdx++;
|
||||
m_pcNextFrame->fillRGBBuffer();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,7 @@ public:
|
||||
Void loadAll();
|
||||
|
||||
Void readFrame();
|
||||
Void readFrameFillRGBBuffer();
|
||||
Void writeFrame();
|
||||
Void writeFrame( PlaYUVerFrame *pcFrame );
|
||||
|
||||
|
||||
Reference in new issue
Block a user