From d4838060870f637fd1b627dda0117f31390423c4 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 19 七月 2017 20:12:29 +0800
Subject: [PATCH] PL_Paint add rgb565
---
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