Add function to show module info

This commit is contained in:
2018-07-24 20:39:37 +01:00
parent def17102e5
commit ac996ea577
2 changed files with 9 additions and 5 deletions
+8 -5
View File
@@ -38,12 +38,14 @@ HEVCIntraPrediction::HEVCIntraPrediction()
m_uiNumberOfFrames = 1;
m_uiModuleRequirements = CLP_MODULE_REQUIRES_NEW_WINDOW |
CLP_MODULE_USES_KEYS |
CLP_MODULES_HAS_INFO |
CLP_MODULE_REQUIRES_OPTIONS;
m_cModuleOptions.addOptions() /**/
( "mode", m_uiMode, "Intra mode (26-34) [26]" ) /**/
( "block_size", m_uiBlockSize, "Block size [4]" ) /**/
( "x_pel", m_uiXpel, "X coordinate [1]" ) /**/ ( "y_pel", m_uiXpel, "Y coordinate [1]" );
( "x_pel", m_uiXpel, "X coordinate [1]" ) /**/
( "y_pel", m_uiYpel, "Y coordinate [1]" );
m_pcPredBlock = NULL;
m_referenceMem = NULL;
@@ -84,10 +86,6 @@ int getInverseAngularParam( int angular_param )
assert( 0 );
}
ClpPel getNegativeReferenceSample( int ref_pos )
{
}
CalypFrame* HEVCIntraPrediction::process( std::vector<CalypFrame*> apcFrameList )
{
if( m_uiMode < 2 )
@@ -187,6 +185,11 @@ bool HEVCIntraPrediction::keyPressed( enum Module_Key_Supported value )
return false;
}
ClpString HEVCIntraPrediction::moduleInfo()
{
return ClpString( "Intra mode: " ) + std::to_string( m_uiMode );
}
void HEVCIntraPrediction::destroy()
{
if( m_pcPredBlock )