p26001-store-acs-soc-fw-app/video/core/GOPMode.cpp
2026-09-28 21:33:04 +08:00

40 lines
1.1 KiB
C++

#ifndef BB0BDE8C_97B1_4665_97FE_505C703706CD
#define BB0BDE8C_97B1_4665_97FE_505C703706CD
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "GOPMode.h"
#include <Poco/Format.h>
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