Improve the usage of different structs for each pixel format. Change how PlaYUVerFrame return the pixel value (make it less dependent of Qt)

This commit is contained in:
jfmcarreira committed 2014-10-13 00:56:21 +01:00
1 parent b547d2bda4
commit ef8a8b6038
5 files changed
+304 -308

No files matched your search

+1 -1
View File
@@ -370,7 +370,7 @@ void ViewArea::paintEvent( QPaintEvent *event )
for( Int j = vr.y(); j <= vr.bottom(); j++ )
{
QPoint pixelTopLeft( i, j );
sPixelValue = m_pcCurrFrame->getPixelValue( pixelTopLeft, PlaYUVerFrame::COLOR_YUV );
sPixelValue = m_pcCurrFrame->getPixelValue( pixelTopLeft.x(), pixelTopLeft.y(), PlaYUVerFrame::COLOR_YUV );
QRect pixelRect( viewToWindow( pixelTopLeft ), QSize( m_zoomFactor, m_zoomFactor ) );
if( sPixelValue.Luma < 128 )