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: