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:
1 parent
3754caa865
commit
518d68483a
5 files changed
+37
-16
No files matched your search
@@ -430,7 +430,7 @@ UInt64 PlaYUVerFrame::getBytesPerFrame()
|
||||
return 0;
|
||||
}
|
||||
|
||||
Pixel PlaYUVerFrame::ConvertPixel( Pixel sInputPixel, ColorSpace eOutputSpace )
|
||||
Pixel PlaYUVerFrame::ConvertPixel( Pixel sInputPixel, Int eOutputSpace )
|
||||
{
|
||||
Pixel sOutputPixel =
|
||||
{
|
||||
@@ -453,7 +453,7 @@ Pixel PlaYUVerFrame::ConvertPixel( Pixel sInputPixel, ColorSpace eOutputSpace )
|
||||
return sOutputPixel;
|
||||
}
|
||||
|
||||
Pixel PlaYUVerFrame::getPixelValue( const QPoint &pos, ColorSpace space )
|
||||
Pixel PlaYUVerFrame::getPixelValue( const QPoint &pos, Int color_space )
|
||||
{
|
||||
Pixel pixel_value;
|
||||
switch( m_iPixelFormat )
|
||||
@@ -491,7 +491,7 @@ Pixel PlaYUVerFrame::getPixelValue( const QPoint &pos, ColorSpace space )
|
||||
default:
|
||||
break;
|
||||
}
|
||||
ConvertPixel( pixel_value, space );
|
||||
ConvertPixel( pixel_value, color_space );
|
||||
return pixel_value;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user