整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
39
video/core/CodecID.cpp
Normal file
39
video/core/CodecID.cpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "CodecID.h"
|
||||
#include <Poco/Format.h>
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace Core
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* LOCAL VARIABLES
|
||||
*******************************************************************************
|
||||
*/
|
||||
static const std::string _strings[] = {
|
||||
"H264", "H265", "MJPEG",
|
||||
|
||||
"MP3", "AAC", "OPUS", "G711A", "G711U",
|
||||
};
|
||||
|
||||
/*
|
||||
*******************************************************************************
|
||||
* FUNCTIONS
|
||||
*******************************************************************************
|
||||
*/
|
||||
const std::string codecIDToString(const CodecID id)
|
||||
{
|
||||
unsigned index = (unsigned)id;
|
||||
|
||||
if (index >= (unsigned)CodecID::NB)
|
||||
return Poco::format("UNKNOWN(%u)", index);
|
||||
|
||||
return _strings[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue