houxiao
2017-07-24 364c97e3a055201af18e70f951dd0f0de26044af
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;
};