diff --git a/source/PlaYUVerFrame.cpp b/source/PlaYUVerFrame.cpp index 79d526d..d7d9ecd 100755 --- a/source/PlaYUVerFrame.cpp +++ b/source/PlaYUVerFrame.cpp @@ -184,7 +184,6 @@ Void PlaYUVerFrame::FrameFromBuffer( Pel *input_buffer, Int pel_format ) memcpy( &m_pppcInputPel[0][0][0], input_buffer, frame_bytes_input * sizeof(Pel) ); memcpy( &m_pppcInputPel[1][0][0], input_buffer + frame_bytes_input, frame_bytes_input / 4 * sizeof(Pel) ); memcpy( &m_pppcInputPel[2][0][0], input_buffer + frame_bytes_input * 5 / 4, frame_bytes_input / 4 * sizeof(Pel) ); - //YUV420toRGB(); break; case YUV422: break; @@ -320,10 +319,4 @@ Pixel PlaYUVerFrame::getPixelValue(const QPoint &pos, ColorSpace space) return pixel_value; } -Pel PlaYUVerFrame::getPixelValueFromYUV(const QPoint &pos, YUVcomponent color) -{ - return m_pppcInputPel[color][0][pos.y()*m_uiWidth+pos.x()]; -} - - } // NAMESPACE diff --git a/source/PlaYUVerFrame.h b/source/PlaYUVerFrame.h index edfba71..4275be9 100755 --- a/source/PlaYUVerFrame.h +++ b/source/PlaYUVerFrame.h @@ -62,8 +62,7 @@ public: return m_pppcRGBPel; } - Pel getPixelValueFromYUV(const QPoint &pos, YUVcomponent color); - Pixel ConvertPixel( Pixel sInputPixel, ColorSpace eOutputSpace ); + static Pixel ConvertPixel( Pixel sInputPixel, ColorSpace eOutputSpace ); Pixel getPixelValue(const QPoint &pos, ColorSpace color); QImage getQimage();