From a2d19baaa3996bc63edc042230074fb84a2433a1 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 03 十二月 2019 19:57:03 +0800
Subject: [PATCH] 修改bug

---
 csrc/wrapper.hpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/csrc/wrapper.hpp b/csrc/wrapper.hpp
index 9b866a1..43e3f61 100644
--- a/csrc/wrapper.hpp
+++ b/csrc/wrapper.hpp
@@ -53,16 +53,21 @@
 
         int GetFPS(){return fps_;}
     public: //decoder
-        void BuildDecoder();
+        void OpenDecoder();
         void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id);
     public: // push stream
+        void CloseStream();
         void GetPacket(unsigned char **pktData, int *size, int *key);
+    public: // recorder
+        void OpenRecorder();
     private:
         // stream 鍙傛暟
         std::string input_url_;
         bool audio_;
         int gb_, cpu_;
         bool run_dec_;
+        bool run_stream_;
+        bool run_rec_;
         // decoder 鍙傛暟
         std::unique_ptr<std::thread> thread_;
         std::atomic_bool    stop_stream_;
@@ -83,6 +88,7 @@
                         const int pix_fmt, const int scale_flag, const int gi);
     void DestroyEncoder(void *h);
     int Encode(void *hdl, uint8_t *in, const int w, const int h, uint8_t **out, int *size, int *key);
+    int GetGb28181Pic(const char *filename, char *retData, int *retDataLen);
 }
 
 #endif
\ No newline at end of file

--
Gitblit v1.8.0