From 8ee0c6b0d9b583ecc68387eeb8fcd458484cc0ac Mon Sep 17 00:00:00 2001
From: dupengyue <dupengyue@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 21 七月 2017 15:40:41 +0800
Subject: [PATCH] 调试接口添加
---
RtspFace/GraphicHelper.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/RtspFace/GraphicHelper.h b/RtspFace/GraphicHelper.h
index 71b9f21..36d7062 100644
--- a/RtspFace/GraphicHelper.h
+++ b/RtspFace/GraphicHelper.h
@@ -26,6 +26,10 @@
const uint16_t UV = (V << 8 | U);
return UV;
}
+ uint16_t toRGB565() const
+ {
+ return (((unsigned(R) << 8) & 0xF800) | ((unsigned(G) << 3) & 0x7E0) | ((unsigned(B) >> 3)));
+ }
};
struct PLGH_Color_YUV
--
Gitblit v1.8.0