Add fill buffer RGB and frame to buff functions. Also fixed problem with odd resolutions

This commit is contained in:
jfmcarreira committed 2014-11-07 02:02:17 +00:00
1 parent 1b2ed92f3c
commit 84729b9cd7
4 files changed
+170 -271

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ void ViewArea::setImage( PlaYUVerFrame* pcFrame )
{
m_pcCurrFrame = pcFrame;
m_pcCurrFrame->FrametoRGB8();
QImage qimg = QImage( m_pcCurrFrame->getQImageBuffer(), m_pcCurrFrame->getWidth(), m_pcCurrFrame->getHeight(), QImage::Format_RGB888 );
QImage qimg = QImage( m_pcCurrFrame->getQImageBuffer(), m_pcCurrFrame->getWidth(), m_pcCurrFrame->getHeight(), QImage::Format_RGB32 );
setImage( QPixmap::fromImage( qimg ) );
}