Emx::MediaInfOsd::ParamTime结构体 参考

时间戳类型OSD持久化参数

#include "MediaInfOsd.hpp"

Public 属性

int size
 字体大小 更多...
 
int thickness
 边框大小 更多...
 
char font [64]
 字体文件名(字体文件均放置在configs/media/font目录下) 更多...
 
char formatString [128]
 
char weekFormat [7][16]
 
uint32_t color
 字体位图主体rgba颜色 0=黑白描边自动 更多...
 
bool autoSwitchColor
 是否自动翻转黑白颜色 更多...
 

类成员变量说明

◆ size

int Emx::MediaInfOsd::ParamTime::size

◆ thickness

int Emx::MediaInfOsd::ParamTime::thickness

◆ font

char Emx::MediaInfOsd::ParamTime::font[64]

◆ formatString

char Emx::MediaInfOsd::ParamTime::formatString[128]

时间显示格式,eg:Zy-m-d H:M:S 第一字节表示中英文显示:Z=中文,E=英文 y:年 m:月 d:日 w:星期 H:24小时制小时 h:24小时制小时 P:12小时制PM或AM显示 p:12小时制pm或am显示 M:分钟 S:秒 %:转义符 其他非上述字符显示为原字符

◆ weekFormat

char Emx::MediaInfOsd::ParamTime::weekFormat[7][16]

星期显示格式,下标0到6从星期日到星期六 eg:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]

◆ color

uint32_t Emx::MediaInfOsd::ParamTime::color

◆ autoSwitchColor

bool Emx::MediaInfOsd::ParamTime::autoSwitchColor