From a1ba419d2c5a04a6d5d70e7f44a3960b676ee21b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sun, 23 Mar 2014 18:17:30 +0000 Subject: [PATCH] Remove old function --- source/PlaYUVerFrame.cpp | 7 ------- source/PlaYUVerFrame.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) 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();