Improvements in PlaYUVerFrame

Add bits per channel and number of channels
Add const return in some methods
This commit is contained in:
jfmcarreira committed 2014-04-05 05:54:52 +01:00
1 parent 6109ee6c2b
commit 915621addb
2 files changed
+13 -6

No files matched your search

+2
View File
@@ -38,6 +38,8 @@ PlaYUVerFrame::PlaYUVerFrame( UInt width, UInt height, Int pel_format )
m_uiHeight = height;
m_iPixelFormat = pel_format;
m_iNumberChannels = 3;
Int max_bits_per_pel = sizeof( Pel ) * 8;
m_iBitsChannels = assert( 8 <= max_bits_per_pel );
if( m_uiWidth == 0 || m_uiWidth == 0 || m_iPixelFormat == -1 )
{