添加自研批检仪检测命令

This commit is contained in:
ranchuan
2023-11-27 14:31:00 +08:00
parent b3a0d7b57c
commit a0b0f41c39
45 changed files with 3778 additions and 2628 deletions

View File

@@ -1,20 +1,14 @@
#include "interface/codec.h"
Codec *codecFind(const char *name)
{
extern const int __start_codecdef;
extern const int __stop_codecdef;
codec_def *start=(codec_def *)&__start_codecdef;
codec_def *end=(codec_def *)&__stop_codecdef;
extern const int __start_codecdef;
extern const int __stop_codecdef;
codec_def *start = (codec_def *)&__start_codecdef;
codec_def *end = (codec_def *)&__stop_codecdef;
codec_def *item = 0;
for (item=start;item<end;item++)
for (item = start; item < end; item++)
{
if (item != nullptr)
{
@@ -25,10 +19,3 @@ Codec *codecFind(const char *name)
qWarning("can not find codec named '%s'", name);
return nullptr;
}