NERtc Windows SDK  V4.6.0
Public 属性 | 所有成员列表
nertc::NERtcTimestampWatermarkConfig结构体 参考

#include <nertc_engine_defines.h>

Public 属性

char font_path [kNERtcMaxURILength]
 
int font_size
 
int font_color
 
int offset_x
 
int offset_y
 
int wm_color
 
int wm_width
 
int wm_height
 
int ts_type
 

详细描述

时间戳水印设置。

类成员变量说明

◆ font_color

int nertc::NERtcTimestampWatermarkConfig::font_color

水印左上角与视频画布左上角的水平距离。单位为像素(pixel)。

◆ font_path

char nertc::NERtcTimestampWatermarkConfig::font_path[kNERtcMaxURILength]

字体大小。默认值为 10,相当于 144 dpi 设备上的 10 x 15 磅。

◆ font_size

int nertc::NERtcTimestampWatermarkConfig::font_size

字体颜色。ARGB 格式。

◆ offset_x

int nertc::NERtcTimestampWatermarkConfig::offset_x

水印左上角与视频画布左上角的水平距离。单位为像素(pixel)。

◆ offset_y

int nertc::NERtcTimestampWatermarkConfig::offset_y

水印左上角与视频画布左上角的垂直距离。单位为像素(pixel)。

◆ ts_type

int nertc::NERtcTimestampWatermarkConfig::ts_type

时间戳类型,支持设置为:

  • 1:yyyy-MM-dd HH:mm:ss。
  • 2:yyyy-MM-dd HH:mm:ss.SSS。精确到毫秒。

◆ wm_color

int nertc::NERtcTimestampWatermarkConfig::wm_color

水印框内背景颜色。ARGB格式,支持透明度设置。

◆ wm_height

int nertc::NERtcTimestampWatermarkConfig::wm_height

水印框的高度。单位为像素(pixel),默认值为 0,表示没有水印框。

◆ wm_width

int nertc::NERtcTimestampWatermarkConfig::wm_width

水印框的宽度。单位为像素(pixel),默认值为 0,表示没有水印框。


该结构体的文档由以下文件生成: