From e878e92811a2dbfb6b4d3f7b2c357435f56e28db Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期日, 29 九月 2019 10:27:21 +0800 Subject: [PATCH] add trytime --- csrc/worker/decoder.hpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/csrc/worker/decoder.hpp b/csrc/worker/decoder.hpp index 0f3f76a..ae9fba2 100644 --- a/csrc/worker/decoder.hpp +++ b/csrc/worker/decoder.hpp @@ -5,6 +5,11 @@ #include <memory> #include <list> #include <mutex> +#include <thread> +#include <atomic> +#include <condition_variable> + +struct AVFrame; namespace ffwrapper { @@ -36,7 +41,9 @@ private: int initDecoder(); + int saveFrame(AVFrame *frame, int64_t &id); public: + void Start(); int SetFrame(std::shared_ptr<ffwrapper::CodedData> data, int64_t &id); void GetFrame(unsigned char **data, int *w, int *h, int64_t *id); public: -- Gitblit v1.8.0