From 1fdf750d6ad5bede73d7b92bd1d8dab261e69d5b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 2 Apr 2016 01:42:09 +0100 Subject: [PATCH] Save endianness type --- app/VideoSubWindow.cpp | 7 ++++--- app/VideoSubWindow.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index 50385da..c861320 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -51,7 +51,7 @@ QDataStream& operator<<( QDataStream& out, const PlaYUVerStreamInfoVector& array << d.m_uiHeight << d.m_iPelFormat << d.m_uiBitsPelPixel - << d.m_uiEndianness + << d.m_iEndianness << d.m_uiFrameRate << d.m_uiFileSize; } @@ -70,7 +70,7 @@ QDataStream& operator>>( QDataStream& in, PlaYUVerStreamInfoVector& array ) in >> d.m_uiHeight; in >> d.m_iPelFormat; in >> d.m_uiBitsPelPixel; - in >> d.m_uiEndianness; + in >> d.m_iEndianness; in >> d.m_uiFrameRate; in >> d.m_uiFileSize; array.append( d ); @@ -346,6 +346,7 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog ) m_sStreamInfo.m_uiHeight = Height; m_sStreamInfo.m_iPelFormat = InputFormat; m_sStreamInfo.m_uiBitsPelPixel = BitsPel; + m_sStreamInfo.m_iEndianness = Endianness; m_sStreamInfo.m_uiFrameRate = FrameRate; m_sStreamInfo.m_uiFileSize = QFileInfo( cFilename ).size(); @@ -368,7 +369,7 @@ Bool VideoSubWindow::loadFile( PlaYUVerStreamInfo* streamInfo ) } if( !m_pCurrStream->open( streamInfo->m_cFilename.toStdString(), streamInfo->m_uiWidth, streamInfo->m_uiHeight, streamInfo->m_iPelFormat, - streamInfo->m_uiBitsPelPixel, streamInfo->m_uiEndianness, streamInfo->m_uiFrameRate ) ) + streamInfo->m_uiBitsPelPixel, streamInfo->m_iEndianness, streamInfo->m_uiFrameRate ) ) { return false; } diff --git a/app/VideoSubWindow.h b/app/VideoSubWindow.h index 33cbc18..b397429 100644 --- a/app/VideoSubWindow.h +++ b/app/VideoSubWindow.h @@ -52,7 +52,7 @@ typedef struct UInt m_uiHeight; Int m_iPelFormat; UInt m_uiBitsPelPixel; - UInt m_uiEndianness; + UInt m_iEndianness; UInt m_uiFrameRate; UInt64 m_uiFileSize; } PlaYUVerStreamInfo;