Add new function to read and fill rgb buffer operation

This commit is contained in:
jfmcarreira committed 2015-03-03 01:13:36 +00:00
1 parent fd8b649ef0
commit 159b33a74f
2 files changed
+8 -1

No files matched your search

+7 -1
View File
@@ -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;
}
+1
View File
@@ -127,6 +127,7 @@ public:
Void loadAll();
Void readFrame();
Void readFrameFillRGBBuffer();
Void writeFrame();
Void writeFrame( PlaYUVerFrame *pcFrame );