Avoid using fillRGBBuffer when no necessary

This commit is contained in:
jfmcarreira committed 2015-02-26 15:26:18 +00:00
1 parent 85cfa467b9
commit c3a82f758b
6 files changed
+55 -16

No files matched your search

+7 -1
View File
@@ -514,7 +514,7 @@ Void PlaYUVerStream::readFrame()
}
m_pcNextFrame->frameFromBuffer( m_pStreamBuffer, bytes_read );
}
m_pcNextFrame->fillRGBBuffer();
//m_pcNextFrame->fillRGBBuffer();
return;
}
@@ -639,6 +639,12 @@ PlaYUVerFrame* PlaYUVerStream::getCurrFrame()
return m_pcCurrFrame;
}
PlaYUVerFrame* PlaYUVerStream::getNextFrame()
{
return m_pcNextFrame;
}
Bool PlaYUVerStream::seekInput( UInt64 new_frame_num )
{
if( !m_bInit || new_frame_num < 0 || new_frame_num >= m_uiTotalFrameNum || ( Int64 )new_frame_num == m_iCurrFrameNum )