Add a FrameShift module and support for keys commands to be sent to modules

This commit is contained in:
jfmcarreira committed 2015-09-24 01:10:03 +01:00
1 parent 64fd5cb1a9
commit 57b775f7d1
11 files changed
+154 -65

No files matched your search

+26
View File
@@ -229,6 +229,22 @@ Void PlaYUVerFrame::init( UInt width, UInt height, Int pel_format, Int bitsPixel
m_cPelFmtName = PlaYUVerFrame::supportedPixelFormatListNames()[m_iPixelFormat].c_str();
}
Void PlaYUVerFrame::clear()
{
Pel uiValue = 128;
for( UInt ch = 0; ch < m_pcPelFormat->numberChannels; ch++ )
{
//uiValue = ch > 0 ? 0 : 128;
memset( m_pppcInputPel[ch][0], uiValue,
CHROMASHIFT( m_uiHeight, m_pcPelFormat->log2ChromaHeight ) * CHROMASHIFT( m_uiWidth, m_pcPelFormat->log2ChromaWidth ) * sizeof(Pel) );
}
}
std::string PlaYUVerFrame::getPelFmtName()
{
return m_pcPelFormat->name;
}
Int PlaYUVerFrame::getColorSpace() const
{
return m_pcPelFormat->colorSpace;
@@ -262,6 +278,16 @@ UInt PlaYUVerFrame::getPixels() const
return ( m_uiWidth * m_uiHeight );
}
UInt8 PlaYUVerFrame::getChromaWidthRatio() const
{
return m_pcPelFormat->log2ChromaWidth;
}
UInt8 PlaYUVerFrame::getChromaHeightRatio() const
{
return m_pcPelFormat->log2ChromaHeight;
}
UInt PlaYUVerFrame::getChromaWidth() const
{
if( m_pcPelFormat->colorSpace == GRAY )