⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tsubtitleprops.h

📁 从FFMPEG转换而来的H264解码程序,VC下编译..
💻 H
字号:
#ifndef _TSUBTITLEPROPS_H_
#define _TSUBTITLEPROPS_H_
struct TfontSettings;

struct TSubtitleProps
{
 TSubtitleProps(void) {reset();}
 TSubtitleProps(unsigned int IrefResX,unsigned int IrefResY) {reset();refResX=IrefResX;refResY=IrefResY;}
 TSubtitleProps(bool Ibold,bool Iitalic, bool Iunderline) {reset();bold=Ibold;italic=Iitalic;underline=Iunderline;}
 int bold;
 bool italic,underline,strikeout,bluredges;
 bool isColor;COLORREF color;
 bool isPos;int posx,posy;
 unsigned int refResX,refResY;
 int size;
 int scaleX,scaleY; //in percents, -1 default
 char_t fontname[LF_FACESIZE];
 int encoding; //-1 = default
 int spacing;  //-1 = default
 void reset(void);
 void toLOGFONT(LOGFONT &lf,const TfontSettings &fontSettings,unsigned int dx,unsigned int dy) const;

 // Alignment. This sets how text is "justified" within the Left/Right onscreen margins,
 // and also the vertical placing. Values may be 1=Left, 2=Centered, 3=Right.
 // Add 4 to the value for a "Toptitle". Add 8 to the value for a "Midtitle".
 // eg. 5 = left-justified toptitle]
 // -1 = default(center)
 int alignment;

 int marginR,marginL,marginV,marginTop,marginBottom; // -1 = default
 int borderStyle; // -1 = default
 double outlineWidth,shadowDepth; // -1 = default
 unsigned int get_marginR(unsigned int screenWidth) const;
 unsigned int get_marginL(unsigned int screenWidth) const;
 unsigned int get_marginTop(unsigned int screenHeight) const;
 unsigned int get_marginBottom(unsigned int screenHeight) const;
 static int alignASS2SSA(int align);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -