提交 df53bec2 authored 作者: blu's avatar blu

init

上级 79f9f34e
...@@ -38,7 +38,8 @@ mux: demuxing_decoding.c ...@@ -38,7 +38,8 @@ mux: demuxing_decoding.c
$(CC) $(CFLAGS) -o mux demuxing_decoding.c $(LIBFFMPEG) $(CC) $(CFLAGS) -o mux demuxing_decoding.c $(LIBFFMPEG)
clean: clean:
mkdir -p vendor/lib/pkgconfig/bak #mkdir -p vendor/lib/pkgconfig/bak
mv vendor/lib/pkgconfig/*.pc vendor/lib/pkgconfig/bak rm -fr *.dSYM
#mv vendor/lib/pkgconfig/*.pc vendor/lib/pkgconfig/bak
rm -fr rtspr evmgr evpusher *.dSYM vendor/lib/pkgconfig/*.pc rm -fr rtspr evmgr evpusher *.dSYM vendor/lib/pkgconfig/*.pc
#cd vendor/libzmq && make clean #cd vendor/libzmq && make clean
\ No newline at end of file
...@@ -14,13 +14,11 @@ namespace fs = std::filesystem; ...@@ -14,13 +14,11 @@ namespace fs = std::filesystem;
#endif #endif
#include "vendor/include/zmq.h" #include "vendor/include/zmq.h"
#include "json.hpp"
#include "tinythread.hpp" #include "tinythread.hpp"
#include "common.hpp" #include "common.hpp"
#include "database.h" #include "database.h"
using namespace std; using namespace std;
using json = nlohmann::json;
class PacketProducer: public TinyThread { class PacketProducer: public TinyThread {
private: private:
......
...@@ -15,7 +15,6 @@ namespace fs = std::filesystem; ...@@ -15,7 +15,6 @@ namespace fs = std::filesystem;
#endif #endif
#include "vendor/include/zmq.h" #include "vendor/include/zmq.h"
#include "json.hpp"
#include "tinythread.hpp" #include "tinythread.hpp"
#include "common.hpp" #include "common.hpp"
#include "database.h" #include "database.h"
...@@ -23,7 +22,6 @@ namespace fs = std::filesystem; ...@@ -23,7 +22,6 @@ namespace fs = std::filesystem;
#define MAX_ZMQ_MSG_SIZE 1204 * 1024 * 2 #define MAX_ZMQ_MSG_SIZE 1204 * 1024 * 2
using namespace std; using namespace std;
using json = nlohmann::json;
class PacketPusher: public TinyThread { class PacketPusher: public TinyThread {
private: private:
......
...@@ -6,6 +6,8 @@ extern "C" { ...@@ -6,6 +6,8 @@ extern "C" {
} }
#include <libavutil/timestamp.h> #include <libavutil/timestamp.h>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#include <json.hpp>
using json = nlohmann::json;
#undef av_err2str #undef av_err2str
#define av_err2str(errnum) av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE), AV_ERROR_MAX_STRING_SIZE, errnum) #define av_err2str(errnum) av_make_error_string((char*)__builtin_alloca(AV_ERROR_MAX_STRING_SIZE), AV_ERROR_MAX_STRING_SIZE, errnum)
...@@ -217,5 +219,15 @@ namespace AVFormatCtxSerializer { ...@@ -217,5 +219,15 @@ namespace AVFormatCtxSerializer {
} }
} }
namespace cloudutils {
json registry(const char *scn) {
json jret;
// find local info
// request cloud info
return jret;
}
}
#endif #endif
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论