From f5948ed9f21e65288f8772a3a9df0ab68bf4f727 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 27 七月 2017 12:51:44 +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