美摄SDK For iOS  3.7.2
NvsVideoEffectCaption.h 文件参考
#import "NvsEffect.h"
#import <CoreGraphics/CGGeometry.h>

浏览源代码.

class  NvsVideoEffectCaption
 字幕 更多...
 

字幕种类

enum  NvsVideoEffectCategory { NvsVideoEffectDefaultCategory, NvsVideoEffectUserCategory, NvsVideoEffectThemeCategory }
 
enum  NvsVideoEffectRoleInTheme { NvsVideoEffectRoleInThemeGeneral, NvsVideoEffectRoleInThemeTitle, NvsVideoEffectRoleInThemeTrailer }
 片段在主题中的角色 更多...
 
enum  NvsVideoEffectTextAlignment {
  NvsVideoEffectTextAlignmentLeft = 0, NvsVideoEffectTextAlignmentCenter, NvsVideoEffectTextAlignmentRight, NvsVideoEffectTextAlignmentTop,
  NvsVideoEffectTextAlignmentBottom, NvsVideoEffectTextAlignmentVCenter
}
 字幕对齐方式 更多...
 
enum  NvsVideoEffectAssetDefaultParam { VIDEO_EFFECT_USE_ASSET_DEFAULT_PARAM = 0, VIDEO_EFFECT_NOT_USE_ASSET_DEFAULT_PARAM }
 使用默认的字幕包属性 更多...
 
typedef enum NvsVideoEffectCategory NvsVideoEffectCategory
 
typedef enum NvsVideoEffectRoleInTheme NvsVideoEffectRoleInTheme
 片段在主题中的角色 更多...
 
typedef enum NvsVideoEffectTextAlignment NvsVideoEffectTextAlignment
 字幕对齐方式 更多...
 
typedef enum NvsVideoEffectAssetDefaultParam NvsVideoEffectAssetDefaultParam
 使用默认的字幕包属性 更多...
 

边框类型

enum  NvsVideoEffectBoundingType {
  NvsVideoEffectBoundingType_Text = 0, NvsVideoEffectBoundingType_Text_Frame = 1, NvsVideoEffectBoundingType_Frame = 2, NvsVideoEffectBoundingType_Text_Origin_Frame = 3,
  NvsVideoEffectBoundingType_Typographic_Text = 4
}
 
enum  NvsVideoEffectLetterSpacingType { NvsVideoEffectLetterSpacingTypePercentage = 0, NvsVideoEffectLetterSpacingTypeAbsolute }
 字间距类型 更多...
 
typedef enum NvsVideoEffectLetterSpacingType NvsVideoEffectLetterSpacingType
 字间距类型 更多...
 

类型定义说明

◆ NvsVideoEffectAssetDefaultParam

使用默认的字幕包属性

◆ NvsVideoEffectCategory

◆ NvsVideoEffectLetterSpacingType

字间距类型

◆ NvsVideoEffectRoleInTheme

片段在主题中的角色

◆ NvsVideoEffectTextAlignment

字幕对齐方式

枚举类型说明

◆ NvsVideoEffectAssetDefaultParam

使用默认的字幕包属性

枚举值
VIDEO_EFFECT_USE_ASSET_DEFAULT_PARAM 
VIDEO_EFFECT_NOT_USE_ASSET_DEFAULT_PARAM 

◆ NvsVideoEffectBoundingType

枚举值
NvsVideoEffectBoundingType_Text 

文字的实际边框

NvsVideoEffectBoundingType_Text_Frame 

文字框的边框

NvsVideoEffectBoundingType_Frame 

包括装饰在内的整体边框

NvsVideoEffectBoundingType_Text_Origin_Frame 

没有经过变换的文字框的边框

NvsVideoEffectBoundingType_Typographic_Text 

文字的排版边框

◆ NvsVideoEffectCategory

枚举值
NvsVideoEffectDefaultCategory 

默认类型

NvsVideoEffectUserCategory 

用户自定义类型

NvsVideoEffectThemeCategory 

主题类型

◆ NvsVideoEffectLetterSpacingType

字间距类型

枚举值
NvsVideoEffectLetterSpacingTypePercentage 
NvsVideoEffectLetterSpacingTypeAbsolute 

◆ NvsVideoEffectRoleInTheme

片段在主题中的角色

枚举值
NvsVideoEffectRoleInThemeGeneral 

通用

NvsVideoEffectRoleInThemeTitle 

片头

NvsVideoEffectRoleInThemeTrailer 

片尾

◆ NvsVideoEffectTextAlignment

字幕对齐方式

枚举值
NvsVideoEffectTextAlignmentLeft 
NvsVideoEffectTextAlignmentCenter 
NvsVideoEffectTextAlignmentRight 
NvsVideoEffectTextAlignmentTop 
NvsVideoEffectTextAlignmentBottom 
NvsVideoEffectTextAlignmentVCenter