video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-27 0c98249d381d6e56c78d6e752a49e768a4c4d22e
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);