diff --git a/source/PlaYUVerFrame.cpp b/source/PlaYUVerFrame.cpp index 6c84840..cfbd498 100755 --- a/source/PlaYUVerFrame.cpp +++ b/source/PlaYUVerFrame.cpp @@ -172,7 +172,7 @@ 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(); + //YUV420toRGB(); break; case YUV422: break; @@ -196,7 +196,7 @@ Void PlaYUVerFrame::CopyFrom( PlaYUVerFrame* input_frame ) memcpy( &m_pppcInputPel[0][0][0], &( input_frame->getPelBufferYUV()[0][0][0] ), num_bytes * sizeof(Pel) ); memcpy( &m_pppcInputPel[1][0][0], &( input_frame->getPelBufferYUV()[1][0][0] ), num_bytes / 4 * sizeof(Pel) ); memcpy( &m_pppcInputPel[2][0][0], &( input_frame->getPelBufferYUV()[2][0][0] ), num_bytes / 4 * sizeof(Pel) ); - YUV420toRGB(); + //YUV420toRGB(); break; case YUV422: break; diff --git a/source/PlaYUVerFrame.h b/source/PlaYUVerFrame.h index cb048b0..e57d65c 100755 --- a/source/PlaYUVerFrame.h +++ b/source/PlaYUVerFrame.h @@ -44,6 +44,8 @@ public: static QStringList supportedPixelFormatList(); + Void YUV420toRGB(); + Void FrameFromBuffer( Pel *input_buffer, Int pel_format ); Void CopyFrom( PlaYUVerFrame* ); @@ -70,9 +72,6 @@ public: return m_iPixelFormat; } private: - - Void YUV420toRGB(); - UInt m_uiWidth; UInt m_uiHeight; Int m_iPixelFormat;