40 lines
1.1 KiB
C++
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
|