整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

39
video/core/CodecID.cpp Normal file
View 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];
}
}
}