video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-05-13 b0914c9c39bd1226f1789cc3b53b05cb87797527
csrc/wrapper.hpp
@@ -69,6 +69,7 @@
            void ActiveRecorder(const char *dir, const int mind, const int maxd,
                                FUNC_REC func);
            void ScalePicture(const int w, const int h, const int flags);
        public: //decoder
            void BuildDecoder();
            void GetPicDecoder(unsigned char **data, int *w, int *h);
@@ -99,6 +100,7 @@
            FUNC_REC func_rec_;
            FUNC_DEC func_dec_;
            int scale_w_, scale_h_, scale_f_;
        //////////////////test frame to bgr24
        public:
            uint8_t *decodeJPEG(const char *file, int *w, int *h);