Remove unecessary conversion from YUV2RGB inside PlaYUVerFrame

This commit is contained in:
jfmcarreira committed 2014-02-09 18:57:24 +00:00
1 parent a96db8ea57
commit 87cad865fe
2 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -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;
+2 -3
View File
@@ -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;