video analysis2.0拆分,ffmpeg封装go接口库
chenshijun
2019-07-17 0367d8e503ca5df1eae359929b8753050ccd9980
csrc/wrapper.hpp
@@ -49,6 +49,7 @@
        private: 
            std::unique_ptr<ffwrapper::FormatIn> init_reader(const char* input);
            ffwrapper::FormatIn* init_reader_gb28181(const char* input);
            void init_worker(ffwrapper::FormatIn *in);
            int init_recorder(ffwrapper::FormatIn *in, std::string dir, const int mind, const int maxd);
            void run_worker(ffwrapper::FormatIn *in, buz::avpacket &pkt);
@@ -69,6 +70,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 +101,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);