Transfer endianess from frame to stream only

This commit is contained in:
jfmcarreira committed 2017-01-11 01:37:26 +00:00
1 parent c8d7fb1c43
commit a69c32bfbf
12 files changed
+52 -51

No files matched your search

+12 -1
View File
@@ -319,8 +319,19 @@ Void VideoHandle::update()
if( pcFrame )
{
resolution.append( QString( " %1 bpp" ).arg( pcFrame->getBitsPel() ) );
m_pcResolutionLabel->setText( resolution );
}
if( pcStream && pcFrame->getBitsPel() > 8 )
{
if( pcStream->getEndianess() == PLAYUVER_BIG_ENDIAN )
{
resolution.append( QStringLiteral( " (BE)" ) );
}
else
{
resolution.append( QStringLiteral( " (LE)" ) );
}
}
m_pcResolutionLabel->setText( resolution );
m_pcFramePropertiesSideBar->setFrame( pcFrame );