Add support for portable maps from 1 to 6

This commit is contained in:
jfmcarreira committed 2016-04-02 04:04:19 +01:00
1 parent e9feb12367
commit 51834ae5a7
10 files changed
+120 -126

No files matched your search

+10 -3
View File
@@ -203,9 +203,6 @@ Bool StreamHandlerLibav::openHandler( std::string strFilename, Bool bInput )
m_uiBitsPerPixel = 16;
m_iEndianness = 0;
pix_fmt = AV_PIX_FMT_GRAY8;
case AV_PIX_FMT_PAL8:
pix_fmt = AV_PIX_FMT_GRAY8;
break;
}
m_uiWidth = m_cCodecCtx->width;
@@ -269,8 +266,18 @@ Void StreamHandlerLibav::closeHandler()
av_free( m_cFrame );
}
m_bHasStream = false;
if( m_pStreamBuffer )
freeMem1D( m_pStreamBuffer );
}
Bool StreamHandlerLibav::configureBuffer( PlaYUVerFrame* pcFrame )
{
return getMem1D<Byte>( &m_pStreamBuffer, pcFrame->getBytesPerFrame() );
}
Void StreamHandlerLibav::getFormat( UInt& rWidth, UInt& rHeight, Int& rInputFormat, UInt& rBitsPerPel, Int& rEndianness, Double& rFrameRate )
{
rWidth = m_uiWidth;