video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-11-29 7363d175bd62697a800a724f91795e87a5c6fd3c
csrc/wrapper.hpp
@@ -56,6 +56,7 @@
        void BuildDecoder();
        void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id);
    public: // push stream
        void CloseStream();
        void GetPacket(unsigned char **pktData, int *size, int *key);
    private:
        // stream 参数
@@ -63,6 +64,7 @@
        bool audio_;
        int gb_, cpu_;
        bool run_dec_;
        bool run_stream_;
        // decoder 参数
        std::unique_ptr<std::thread> thread_;
        std::atomic_bool    stop_stream_;