video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-26 1f005df2f3ff78458f332f9bf1cf2e78b6a8e8e4
csrc/ffmpeg/format/FormatIn.hpp
@@ -3,6 +3,7 @@
#include <stdint.h>
#include <memory>
#include <vector>
#include "PsToEs.hpp"
struct AVFormatContext;
@@ -41,10 +42,12 @@
      
      bool isVideoPkt(AVPacket *pkt);
      bool isAudioPkt(AVPacket *pkt);
      bool notVideoAudio(AVPacket *pkt);
   private:
      bool allocCodec(AVCodec *dec, AVStream *s, AVDictionary **options);
   public:
      AVStream *getStream(int type = -1);
      std::vector<AVStream*> allStreams();
      AVCodecContext *getCodecContext(int type = 0);
      AVFormatContext *getFromatContext(){return ctx_;}
      const double getFPS()const{return fps_;}