From d81a5dd7415707137147ab6490162322df6f6363 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 28 七月 2017 13:49:09 +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