#ifndef BB0BDE8C_97B1_4665_97FE_505C703706CD #define BB0BDE8C_97B1_4665_97FE_505C703706CD /* ******************************************************************************* * INCLUDE ******************************************************************************* */ #include "GOPMode.h" #include namespace Video { namespace Core { /* ******************************************************************************* * LOCAL VARIABLES ******************************************************************************* */ static const std::string _gmString[] = { "NORMAL_P", "DUAL_P", "SMART_P", "ADV_SMART_P", "BIPRED_B", "LOWDELAY_B", }; /* ******************************************************************************* * FUNCTIONS ******************************************************************************* */ const std::string gopModeToString(GOPMode gm) { unsigned index = (unsigned)gm; if (index >= (unsigned)GOPMode::NB) return Poco::format("UNKNOWN(%u)", index); return _gmString[index]; } } } #endif