From 900cad1c378136885f131922c763095e0e12dcdc Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 25 七月 2017 14:20:30 +0800
Subject: [PATCH]
---
RtspFace/PL_ColorConv.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/RtspFace/PL_ColorConv.cpp b/RtspFace/PL_ColorConv.cpp
index 5488e98..c20d0c9 100644
--- a/RtspFace/PL_ColorConv.cpp
+++ b/RtspFace/PL_ColorConv.cpp
@@ -3,7 +3,7 @@
#include "logger.h"
#include <libyuv.h>
#include <PbFaceList.pb.h>
-#define SUBSAMPLE(v, a) ((((v) + (a) - 1)) / (a))
+
struct PL_ColorConv_Internal
{
uint8_t* buffer;
@@ -94,7 +94,7 @@
in->buffer = new uint8_t[dstSize];
in->buffSizeMax = dstSize;
in->buffSize = dstSize;
- LOG_INFO << "image_scale alloc buffer size=" << dstSize << std::endl;
+ LOG_INFO << "image_to_rgb565 alloc buffer size=" << dstSize << std::endl;
}
if (srcType == MB_Frame::MBFT_YUV420)
@@ -105,10 +105,10 @@
}
else if (srcType == MB_Frame::MBFT_NV12)
{
- const uint8_t * srcBuffer = (uint8_t *)in->tempFrame.buffer;
- const uint8_t *src_y = srcBuffer;
- const uint8_t *src_uv = src_y + (srcHeight * srcWidth);
- uint8_t *dst = (uint8_t *) (in->buffer);
+ const uint8_t* srcBuffer = (uint8_t*)in->tempFrame.buffer;
+ const uint8_t* src_y = srcBuffer;
+ const uint8_t* src_uv = src_y + (srcHeight * srcWidth);
+ uint8_t* dst = (uint8_t*)(in->buffer);
libyuv::NV12ToRGB565(src_y, srcWidth,
src_uv, srcWidth,
dst, srcWidth * 2,
--
Gitblit v1.8.0