RtspFace/GraphicHelper.h
@@ -1,9 +1,19 @@ #ifndef _GRAPHIC_HELPER_H_ #define _GRAPHIC_HELPER_H_ #ifdef __ANDROID__ #undef _U #undef _L #undef _N #undef _S #undef _P #undef _C #undef _X #undef _B #endif #include <stdint.h> #include <vector> #include "GraphicHelper.h" struct PLGH_Color_RGBA { @@ -26,6 +36,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