Add chroma value to pixel information representation when zooming image. Add support for RGB pixel information.
This commit is contained in:
1 parent
58b19940f3
commit
3e21e3cdfc
3 files changed
+64
-8
No files matched your search
@@ -670,6 +670,32 @@ Pixel PlaYUVerFrame::getPixelValue( const QPoint &pos, Int color_space )
|
||||
return pixel_value;
|
||||
}
|
||||
|
||||
Int PlaYUVerFrame::getColorSpace() const
|
||||
{
|
||||
Int iColorSpace;
|
||||
|
||||
switch (m_iPixelFormat) {
|
||||
case YUV420p:
|
||||
case YUV422p:
|
||||
case YUV444p:
|
||||
case YUYV422:
|
||||
iColorSpace = COLOR_YUV ;
|
||||
break;
|
||||
case RGB8:
|
||||
iColorSpace = COLOR_RGB ;
|
||||
break;
|
||||
case GRAY:
|
||||
iColorSpace = COLOR_GRAY ;
|
||||
break;
|
||||
default:
|
||||
iColorSpace = COLOR_INVALID ;
|
||||
break;
|
||||
}
|
||||
|
||||
return iColorSpace;
|
||||
}
|
||||
|
||||
|
||||
Pixel PlaYUVerFrame::ConvertPixel( Pixel sInputPixel, Int eOutputSpace )
|
||||
{
|
||||
Int outA, outB, outC;
|
||||
|
||||
@@ -133,6 +133,7 @@ public:
|
||||
}
|
||||
|
||||
Pixel getPixelValue( const QPoint&, Int );
|
||||
Int getColorSpace() const;
|
||||
|
||||
UChar* getQImageBuffer() const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user