video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-10-10 b35d0da3fb4ceec328286851d0e2b316872ab04a
csrc/ffmpeg/bridge/cvbridge.hpp
@@ -22,18 +22,15 @@
      ~cvbridge();
   
   public:
      bool copyPicture(uint8_t *out, AVFrame *in);
      uint8_t* convert2Data(AVFrame *in);
      AVFrame* convert2Frame(AVFrame *in);
      bool getAVFrame(uint8_t *in, const int w, const int h, AVFrame * &output);
      AVFrame *getAVFrame(uint8_t *in, const int w, const int h);
      AVFrame *getAVFrame(AVFrame *in);
      bool getAVFrame(AVFrame *in, AVFrame * &output);
      static AVFrame *fillFrame(uint8_t *in, const int w, const int h, const int f);
      static uint8_t* extractFrame(AVFrame *in, int *length);
   private:
      ffwrapper::swscale_wrapper       *scale_;
      ffwrapper::PicData             *pic_;
      uint8_t                   *buff_fill_;
   };