Major changes in ColorSpace Definition

Now color space is defined in PlaYUVerFrame
New function to check if a pixel format is RGB or YUV or Gray or ARGB
implemented
This commit is contained in:
2014-04-05 06:24:54 +01:00
parent 3754caa865
commit 518d68483a
5 changed files with 37 additions and 16 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ void ViewArea::paintEvent( QPaintEvent *event )
for(Int j=vr.y() ; j<=vr.bottom() ; j++)
{
QPoint pixelTopLeft(i,j);
sPixelValue = curFrame->getPixelValue( pixelTopLeft, COLOR_YUV );
sPixelValue = curFrame->getPixelValue( pixelTopLeft, PlaYUVerFrame::COLOR_YUV );
QRect pixelRect(viewToWindow(pixelTopLeft), QSize(m_zoomFactor,m_zoomFactor));
if( sPixelValue.Luma < 128 )