From b0914c9c39bd1226f1789cc3b53b05cb87797527 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期一, 13 五月 2019 13:54:47 +0800
Subject: [PATCH] shrink scale buffer

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

diff --git a/csrc/wrapper.hpp b/csrc/wrapper.hpp
index 02bb23f..10f699f 100644
--- a/csrc/wrapper.hpp
+++ b/csrc/wrapper.hpp
@@ -69,6 +69,7 @@
             void ActiveRecorder(const char *dir, const int mind, const int maxd,
                                 FUNC_REC func);
 
+            void ScalePicture(const int w, const int h, const int flags);
         public: //decoder
             void BuildDecoder();
             void GetPicDecoder(unsigned char **data, int *w, int *h);
@@ -99,6 +100,7 @@
             FUNC_REC func_rec_;
             FUNC_DEC func_dec_;
 
+            int scale_w_, scale_h_, scale_f_;
         //////////////////test frame to bgr24
         public:
             uint8_t *decodeJPEG(const char *file, int *w, int *h);

--
Gitblit v1.8.0