Transfer endianess from frame to stream only

This commit is contained in:
2017-01-11 01:37:26 +00:00
parent c8d7fb1c43
commit a69c32bfbf
12 changed files with 52 additions and 51 deletions
+2 -2
View File
@@ -81,13 +81,13 @@ Bool StreamHandlerRaw::read( PlaYUVerFrame* pcFrame )
UInt64 processed_bytes = fread( m_pStreamBuffer, sizeof(Byte), m_uiNBytesPerFrame, m_pFile );
if( processed_bytes != m_uiNBytesPerFrame )
return false;
pcFrame->frameFromBuffer( m_pStreamBuffer );
pcFrame->frameFromBuffer( m_pStreamBuffer, m_iEndianness );
return true;
}
Bool StreamHandlerRaw::write( PlaYUVerFrame* pcFrame )
{
pcFrame->frameToBuffer( m_pStreamBuffer );
pcFrame->frameToBuffer( m_pStreamBuffer, m_iEndianness );
UInt64 processed_bytes = fwrite( m_pStreamBuffer, sizeof(Byte), m_uiNBytesPerFrame, m_pFile );
if( processed_bytes != m_uiNBytesPerFrame )
return false;