From 3b4275366b252df97c0273e30ed7f1bbee6e9995 Mon Sep 17 00:00:00 2001 From: zhangmeng <zhangmeng@aiiot.com> Date: 星期三, 25 三月 2020 14:45:52 +0800 Subject: [PATCH] debug for local video --- csrc/worker/decoder.hpp | 18 ++++-------------- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/csrc/worker/decoder.hpp b/csrc/worker/decoder.hpp index a2f226f..7f87180 100644 --- a/csrc/worker/decoder.hpp +++ b/csrc/worker/decoder.hpp @@ -18,33 +18,23 @@ { class FormatIn; class CodedData; - class cvbridge; } // namespace ffwrapper namespace cffmpeg_wrap { - typedef struct _frm{ - uint8_t *data; - int length; - int width; - int height; - int format; - int64_t id; - }FRM; - class decoder { private: ffwrapper::FormatIn *decRef_; - ffwrapper::cvbridge *conv_; - std::list<FRM> list_frm_; - std::mutex mutex_frm_; + std::list<CPacket> list_pkt_; + std::mutex mutex_pkt_; + int64_t next_idx_; + private: int initDecoder(); - int saveFrame(AVFrame *frame, const int64_t &id); public: void Start(); int SetFrame(const CPacket &pkt); -- Gitblit v1.8.0