csrc/wrapper.hpp
@@ -27,7 +27,8 @@ class Wrapper{ public: explicit Wrapper(const bool logit, const char *logfile); Wrapper(); explicit Wrapper(const char *logfile); ~Wrapper (); private: std::unique_ptr<ffwrapper::FormatIn> init_reader(const char* input); @@ -75,6 +76,7 @@ rec* rec_; // 录像请求缓存,等待runstream后添加 std::function<void()> fn_rec_lazy_; bool logit_; }; uint8_t* Decode(const char *file, const int gb, int *w, int *h);