video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-24 9792631e9d038ac34e287323961b78cc3d470873
csrc/wrapper.hpp
@@ -62,6 +62,7 @@
        int scale_w_, scale_h_, scale_f_;
        bool audio_;
        int gb_, cpu_;
        bool run_dec_;
        // decoder 参数
        std::unique_ptr<std::thread> thread_;
        std::atomic_bool    stop_stream_;
@@ -73,7 +74,7 @@
        // 录像类,一直存在
        rec* rec_;
        // 录像请求缓存,等待runstream后添加
        std::function<void(ffwrapper::FormatIn*)> fn_rec_lazy_;
        std::function<void()> fn_rec_lazy_;
    };
    uint8_t* Decode(const char *file, const int gb, int *w, int *h);