Add module to filter the ChromaU and add new function to PlaYUVerFrame to get chroma size

This commit is contained in:
jfmcarreira committed 2014-10-03 00:17:15 +01:00
1 parent 285f784b8f
commit 2256667c7e
6 files changed
+102 -16

No files matched your search

+43
View File
@@ -553,6 +553,49 @@ UInt64 PlaYUVerFrame::getBytesPerFrame( UInt uiWidth, UInt uiHeight, Int iPixelF
return 0;
}
UInt PlaYUVerFrame::getChromaWidth() const
{
switch( m_iPixelFormat )
{
case YUV420p:
return m_uiWidth / 2;
break;
case YUV444p:
case YUV422p:
case YUYV422:
case RGB8:
return m_uiWidth;
break;
case GRAY:
return 0;
break;
default:
return 0;
}
return 0;
}
UInt PlaYUVerFrame::getChromaHeight() const
{
switch( m_iPixelFormat )
{
case YUV420p:
case YUV422p:
case YUYV422:
return m_uiHeight / 2;
break;
case YUV444p:
case RGB8:
return m_uiHeight;
case GRAY:
return 0;
break;
default:
return 0;
}
return 0;
}
UInt PlaYUVerFrame::getChromaLength() const
{
switch( m_iPixelFormat )