整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
40
video/core/GOPMode.cpp
Normal file
40
video/core/GOPMode.cpp
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue