From 57de3dd4c7b2e0a7be1bcb4de49eb2046921b7ff Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期三, 26 七月 2017 17:47:04 +0800
Subject: [PATCH]
---
RtspFace/PL_Paint.h | 23 ++++++++---------------
1 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/RtspFace/PL_Paint.h b/RtspFace/PL_Paint.h
index a541343..66ada4c 100644
--- a/RtspFace/PL_Paint.h
+++ b/RtspFace/PL_Paint.h
@@ -4,6 +4,8 @@
#include "PipeLine.h"
#include "GraphicHelper.h"
+#define ENABLE_WTEXT
+
/*
PLPaint Language:
COLOR F/B,R,G,B,A
@@ -31,22 +33,13 @@
{
int val_i;
float val_f;
- char val_s[10];
+ char val_s[20];
PLPLType() : val_i(0) {}
PLPLType(int _val_i) : val_i(_val_i) {}
PLPLType(float _val_f) : val_f(_val_f) {}
- PLPLType(const char* _val_s)
- {
- for (int i = 0; i < sizeof(val_s); i++)
- val_s[i] = _val_s[i];
- }
- PLPLType(const wchar_t* _val_s)
- {
- wchar_t* w_val_s = (wchar_t*)val_s;
- for (int i = 0; i < sizeof(val_s) / sizeof(wchar_t); i++)
- w_val_s[i] = _val_s[i];
- }
+ PLPLType(const char* _val_s);
+ PLPLType(const wchar_t* _val_s);
};
typedef std::vector<PLPLCmd> plplc_vec_t;
@@ -77,7 +70,7 @@
std::string fontPath;
PL_Paint_Config() :
- copyData(false), plplCtx(nullptr), fontPath(" ")
+ copyData(false), plplCtx(nullptr), fontPath()
{ }
};
@@ -94,8 +87,8 @@
virtual bool gain(PipeMaterial& pm);
private:
- static bool pay_breaker_MBFT_YUV(const PipeMaterial* pm, void* args);
-
+ static bool pay_breaker_MBFT(const PipeMaterial* pm, void* args);
+
private:
void* internal;
};
--
Gitblit v1.8.0