video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 f6aa35eedbc76e7467a68dbe3aba63ec8cb352a5
csrc/ffmpeg/format/FormatIn.hpp
@@ -3,6 +3,7 @@
#include <stdint.h>
#include <memory>
#include "PsToEs.hpp"
struct AVFormatContext;
struct AVDictionary;
@@ -28,7 +29,8 @@
      ~FormatIn();
      
   public:
      int openWithCustomIO(read_packet fn, AVDictionary **options=NULL);
      int openWithCustomIO(void *opaque, read_packet fn, AVDictionary **options=NULL);
        int openGb28181(const char *filename, AVDictionary **options);
      int open(const char *filename, AVDictionary **options);
      bool findStreamInfo(AVDictionary **options);
@@ -61,6 +63,7 @@
      AVIOContext         *io_ctx_;
      uint8_t          *read_io_buff_;
      const int          read_io_buff_size_;
      GB28181API         *handle_gb28181;
   };
}