video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-09-24 9792631e9d038ac34e287323961b78cc3d470873
csrc/worker/decoder.hpp
@@ -9,15 +9,13 @@
#include <atomic>
#include <condition_variable>
#include "../common.hpp"
struct AVFrame;
namespace ffwrapper
{
    class FormatIn;
    class cvbridge;
    class CodedData;
} // namespace ffwrapper
namespace cffmpeg_wrap
@@ -41,12 +39,6 @@
        std::list<BGR24> list_pic_;
        std::mutex mutex_pic_;
        std::unique_ptr<std::thread> thread_;
        std::atomic_bool    stop_;
        std::list<CPacket> list_pkt_;
        std::mutex mutex_pkt_;
        std::condition_variable cv_;
    private:
        int initDecoder();
        int saveFrame(AVFrame *frame, int64_t &id);