提交 f80b25ac 编写于 作者: H HappyAngel 提交者: GitHub

fix ios v8 build error, test=develop (#3301)

上级 05e5cfd0
......@@ -1133,7 +1133,7 @@ bgr3 bgr2 bgr1
#ifdef __aarch64__
void rotate180_hwc(const uint8_t* src, uint8_t* dst, int w, int h_in) {
int w_in = w * 3;
uint8_t zerobuff[30000]; // [w_in];
uint8_t* zerobuff = new uint8_t[w_in];
memset(zerobuff, 0, w_in * sizeof(uint8_t));
int64_t stride_w = 24;
for (int i = 0; i < h_in; i += 4) {
......@@ -1331,7 +1331,7 @@ void rotate180_hwc(const uint8_t* src, uint8_t* dst, int w, int h_in) {
#else
void rotate180_hwc(const uint8_t* src, uint8_t* dst, int w, int h_in) {
int w_in = w * 3;
uint8_t zerobuff[30000]; // w_in
uint8_t* zerobuff = new uint8_t[w_in];
memset(zerobuff, 0, w_in * sizeof(uint8_t));
int stride_w = 24;
// 4*8
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册