From ab3d17cd44625a762fc10f0f1fd8f2c46b980aff Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 26 四月 2022 11:42:19 +0800 Subject: [PATCH] capture use cpu and add arm version --- csrc/worker/decoder.hpp | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/csrc/worker/decoder.hpp b/csrc/worker/decoder.hpp index a1946bd..7f87180 100644 --- a/csrc/worker/decoder.hpp +++ b/csrc/worker/decoder.hpp @@ -22,27 +22,19 @@ 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_; - - 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