Remove unecessary conversion from YUV2RGB inside PlaYUVerFrame
This commit is contained in:
1 parent
a96db8ea57
commit
87cad865fe
2 files changed
+4
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user