From 0e021985f483e593c6ef872b8bcbe299566c7dd2 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期二, 03 十二月 2019 15:32:18 +0800
Subject: [PATCH] 增加获取国标图片接口

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

diff --git a/csrc/wrapper.hpp b/csrc/wrapper.hpp
index 5677ad0..4d51708 100644
--- a/csrc/wrapper.hpp
+++ b/csrc/wrapper.hpp
@@ -50,6 +50,8 @@
         void CPUDec(){cpu_ = 1;}
         void AudioSwitch(const bool a);
         void SetRecMinCacheTime(const int mind);
+
+        int GetFPS(){return fps_;}
     public: //decoder
         void BuildDecoder();
         void GetPicDecoder(unsigned char **data, int *w, int *h, int *format, int *length, int64_t *id);
@@ -74,6 +76,7 @@
         // 褰曞儚璇锋眰缂撳瓨,绛夊緟runstream鍚庢坊鍔�
         std::function<void()> fn_rec_lazy_;
         bool logit_;
+        int fps_;
     };
 
     uint8_t* Decode(const char *file, const int gb, int *w, int *h);
@@ -86,6 +89,8 @@
                           const int dstW, const int dstH, const int dstFormat, const int flag);
     uint8_t *Convert(void *h, uint8_t *src);
     void DestoryConvertor(void *h);
+
+    int GetGb28181Pic(const char *filename, char *retData, int *retDataLen);
 }
 
 #endif
\ No newline at end of file

--
Gitblit v1.8.0