Improvements in PlaYUVerFrame
Add bits per channel and number of channels Add const return in some methods
This commit is contained in:
1 parent
6109ee6c2b
commit
915621addb
2 files changed
+13
-6
No files matched your search
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user