From ac996ea577021ecd1e5cd0430389159c5a5ea25d Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 24 Jul 2018 20:39:37 +0100 Subject: [PATCH] Add function to show module info --- modules/HEVCIntraPrediction.cpp | 13 ++++++++----- modules/HEVCIntraPrediction.h | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/HEVCIntraPrediction.cpp b/modules/HEVCIntraPrediction.cpp index 1073547..29c7156 100644 --- a/modules/HEVCIntraPrediction.cpp +++ b/modules/HEVCIntraPrediction.cpp @@ -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 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 ) diff --git a/modules/HEVCIntraPrediction.h b/modules/HEVCIntraPrediction.h index 913f23e..499320d 100644 --- a/modules/HEVCIntraPrediction.h +++ b/modules/HEVCIntraPrediction.h @@ -46,6 +46,7 @@ public: bool create( std::vector apcFrameList ); CalypFrame* process( std::vector apcFrameList ); bool keyPressed( enum Module_Key_Supported value ); + ClpString moduleInfo(); void destroy(); };