MeiCam SDK For iOS
3.14.0
|
captions. More...
#import <NvsCaption.h>
Instance Methods | |
(bool) | - applyCaptionStyle: |
Apply the caption style. More... | |
(bool) | - applyModularCaptionContext: |
Applys modular caption context style. More... | |
(bool) | - applyModularCaptionRenderer: |
Applys modular caption render style. More... | |
(bool) | - applyModularCaptionAnimation: |
Applys modular caption loop-animation style. More... | |
(bool) | - applyModularCaptionInAnimation: |
Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works. More... | |
(bool) | - applyModularCaptionOutAnimation: |
Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works. More... | |
(void) | - setModularCaptionAnimationPeroid: |
Set modular caption Animation Peroid. More... | |
(int) | - getModularCaptionAnimationPeroid |
Get modular caption Animation Peroid. More... | |
(void) | - setModularCaptionInAnimationDuration: |
Set modular caption in-animation duration. More... | |
(int) | - getModularCaptionInAnimationDuration |
Get modular caption in-animation duration. More... | |
(void) | - setModularCaptionOutAnimationDuration: |
Set modular caption out-animation duration. More... | |
(int) | - getModularCaptionOutAnimationDuration |
Get modular caption out-animation duration. More... | |
(bool) | - applyCaptionStyleWithAssetDefaultParam:isUseDefaultAssetParam: |
apply the caption style. More... | |
(void) | - setText: |
Set the caption text. More... | |
(NSString *) | - getText |
Gets the caption text. More... | |
(void) | - setVerticalLayout: |
Sets whether the caption is vertical layout. More... | |
(BOOL) | - getVerticalLayout |
Gets the state whether the caption is vertical layout. More... | |
(void) | - setTextAlignment: |
Sets the caption horizontal alignment method. More... | |
(NvsTextAlignment) | - getTextAlignment |
Gets the caption horizontal alignment method. More... | |
(void) | - setTextVerticalAlignment: |
Sets the caption vertical alignment method, valid for frame-caption only. More... | |
(NvsTextAlignment) | - getTextVerticalAlignment |
Gets the caption vertical alignment method, valid for frame-caption only. More... | |
(void) | - setBold: |
Sets whether the caption font is bold. More... | |
(BOOL) | - getBold |
Gets the state whether the caption font is bold. More... | |
(void) | - setWeight: |
Sets caption weight. More... | |
(int) | - getWeight |
Gets the caption weight. More... | |
(void) | - setItalic: |
Sets whether the caption font is italic. More... | |
(BOOL) | - getItalic |
Gets the state whether the caption font is italic. More... | |
(void) | - setUnderline: |
Sets caption under line. More... | |
(BOOL) | - getUnderline |
Gets the caption under line. More... | |
(float) | - getLetterSpacing |
Gets caption word spacing. More... | |
(void) | - setLetterSpacing: |
Sets caption word spacing. More... | |
(NvsLetterSpacingType) | - getLetterSpacingType |
Gets caption word spacing type. More... | |
(void) | - setLetterSpacingType: |
Sets caption word spacing type. More... | |
(float) | - getLineSpacing |
Gets caption line spacing. More... | |
(void) | - setLineSpacing: |
Sets caption line spacing. More... | |
(void) | - setTextColor: |
Sets the color of the caption text. More... | |
(void) | - resetTextColorState |
Resets the color state of the caption text. More... | |
(NvsColor) | - getTextColor |
Gets the current color value of the caption font. More... | |
(void) | - setDrawOutline: |
Sets whether the caption draws the outline. More... | |
(BOOL) | - getDrawOutline |
Gets the status whether the caption draws the outline. More... | |
(void) | - setOutlineColor: |
Sets the color of the outline for the caption. More... | |
(NvsColor) | - getOutlineColor |
Gets the color of the outline for the caption. More... | |
(void) | - resetOutlineColorState |
Resets the outlinecolor state of the caption text. More... | |
(void) | - setOutlineWidth: |
Sets the width of the outline for the caption. More... | |
(float) | - getOutlineWidth |
Gets the width of the outline for the caption. More... | |
(void) | - setDrawShadow: |
Sets the caption shadows. More... | |
(BOOL) | - getDrawShadow |
Gets the state of the current caption shadow. More... | |
(void) | - setShadowColor: |
Sets the color of the caption shadow. More... | |
(NvsColor) | - getShadowColor |
Gets the color of the caption shadow. More... | |
(void) | - setShadowOffset: |
Sets the offset of the caption shadow. More... | |
(CGPoint) | - getShadowOffset |
Gets the offset of the caption shadow. More... | |
(void) | - setShadowFeather: |
Sets the feathering degree of the caption shadow. More... | |
(float) | - getShadowFeather |
Gets the feathering degree of the caption shadow. More... | |
(void) | - setFontSize: |
Sets the font size of the caption. More... | |
(float) | - getFontSize |
Gets the font size of the caption. More... | |
(void) | - setFrameCaptionMaxFontSize: |
Sets the max font size of the frame caption. only apply to frame caption. More... | |
(void) | - setFontWithFilePath: |
Sets the caption font. More... | |
(NSString *) | - getFontFilePath |
Gets the file path of the caption font. More... | |
(NSString *) | - getFontFamily |
Gets the caption font. More... | |
(void) | - setFontFamily: |
Sets the caption font. More... | |
(void) | - setCaptionTranslation: |
Sets the translation amount of the caption. More... | |
(CGPoint) | - getCaptionTranslation |
Gets the translation amount of the caption. More... | |
(void) | - translateCaption: |
translates the caption. More... | |
(void) | - setAnchorPoint: |
Sets the caption anchor. More... | |
(CGPoint) | - getAnchorPoint |
Gets the caption anchor. More... | |
(void) | - setScaleX: |
Sets the horizontal scaling factor for the caption. More... | |
(float) | - getScaleX |
Gets the horizontal scaling factor for the caption. More... | |
(void) | - setScaleY: |
Sets the vertical scaling factor for the caption. More... | |
(float) | - getScaleY |
Gets the vertical scaling factor for the caption. More... | |
(void) | - scaleCaption:anchor: |
Scales the caption. More... | |
(void) | - setRotationZ: |
Sets the rotation angle for the caption. More... | |
(float) | - getRotationZ |
Gets the rotation angle for the caption. More... | |
(void) | - rotateCaption:anchor: |
Rotates the caption. More... | |
(void) | - rotateCaption: |
Rotates the caption with the caption center point as the anchor point. More... | |
(void) | - setTextFrameOriginRect: |
Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size. More... | |
(NvsRect) | - getTextBoundingRect |
Gets the rectangle of the caption text. More... | |
(NSArray *) | - getBoundingRectangleVertices |
Gets the vertex position of the original enclosing rectangle of the caption after transformation. More... | |
(NSArray *) | - getCaptionBoundingVertices: |
Gets the transformed vertices position of the original caption bounding. More... | |
(void) | - setCenterPolarAngle: |
Sets the polar angle of the center point for the caption. It's only valid for the panorama caption. More... | |
(float) | - getCenterPolarAngle |
Gets the polar angle of the center point for the caption. It's only valid for the panorama caption. More... | |
(float) | - getTextCenterPolarAngle |
Gets the polar angle of the center point for the caption text. It's only valid for the panorama caption. More... | |
(void) | - setCenterAzimuthAngle: |
Sets the azimuth angle of the center point for the caption. It's only valid for the panorama caption. More... | |
(float) | - getCenterAzimuthAngle |
Gets the azimuth angle of the center point for the caption. It's only valid for the panorama caption. More... | |
(float) | - getTextCenterAzimuthAngle |
Gets the azimuth angle of the center point for the caption text. It's only valid for the panorama caption. More... | |
(void) | - setPolarAngleRange: |
Sets the ranging angle of the polar angle for the caption. It's only valid for the panorama caption. More... | |
(float) | - getPolarAngleRange |
Gets the ranging angle of the polar angle for the caption. It's only valid for the panorama caption. More... | |
(float) | - getTextPolarAngleRange |
Gets the ranging angle of the polar angle for the caption text. It's only valid for the panorama caption. More... | |
(float) | - getOrthoAngleRange |
Gets the ranging angle which is perpendicular with the polar angle for the caption. It's only valid for the panorama caption. More... | |
(float) | - getTextOrthoAngleRange |
Gets the ranging angle of which is perpendicular with the polar angle for the caption text. It's only valid for the panorama caption. More... | |
(void) | - setPanoramicScaleX: |
Sets the horizontal scaling factor for the caption. It's only valid for the panorama caption. More... | |
(float) | - getPanoramicScaleX |
Gets the horizontal scaling factor for the caption. It's only valid for the panorama caption. More... | |
(void) | - setPanoramicScaleY: |
Sets the vertical scaling factor for the caption. It's only valid for the panorama caption. More... | |
(float) | - getPanoramicScaleY |
Gets the vertical scaling factor for the caption. It's only valid for the panorama caption. More... | |
(void) | - setPanoramicRotation: |
Sets the rotation angle for the caption. It's only valid for the panorama caption. More... | |
(float) | - getPanoramicRotation |
Gets the rotation angle for the caption. It's only valid for the panorama caption. More... | |
(void) | - setZValue: |
Sets the Z value of the caption. More... | |
(float) | - getZValue |
Gets the Z value of the caption. More... | |
(void) | - setRecordingUserOperation: |
Sets whether to record user actions. More... | |
(void) | - setOpacity: |
Set the caption opacity. More... | |
(float) | - getOpacity |
Get the caption opacity. More... | |
(void) | - setBackgroundColor: |
Set text background color. More... | |
(NvsColor) | - getBackgroundColor |
Get the current text background color value. More... | |
(void) | - setBackgroundRadius: |
Set text background rectangle's corner radius. More... | |
(float) | - getBackgroundRadius |
Get the current text background rectangle's corner radius value. More... | |
(void) | - setBoundaryPaddingRatio: |
Sets the caption boundary padding ratio. More... | |
(float) | - getBoundaryPaddingRatio |
Gets the caption boundary padding ratio. More... | |
(void) | - setSecondaryColor: |
Sets caption secondary color. it is only used in karaoke subtitles now. More... | |
(NvsColor) | - getSecondaryColor |
Gets the current color value of the caption. More... | |
(void) | - setSecondaryOutlineColor: |
Sets caption secondary outline color. it is only used in karaoke subtitles now. More... | |
(NvsColor) | - getSecondaryOutlineColor |
Gets the current outline sencondary color value of the caption. More... | |
(void) | - setCurrentKeyFrameTime: |
Set the caption KeyFrameTime. More... | |
(bool) | - setControlPoint:controlPointPair: |
Set the caption's control point pair. More... | |
(NvsControlPointPair *) | - getControlPoint: |
Get the caption's key frame control point pair. More... | |
(BOOL) | - isFrameCaption |
Gets whether the caption is a frame caption. More... | |
(void) | - setTextSpanList: |
(NSArray< NvsCaptionSpan * > *) | - getTextSpanList |
(NvsCaptionTextLayout *) | - getTextLayout |
(int) | - getComplexRenderLayerCount |
Gets the number of complex caption layers. More... | |
(BOOL) | - hasOutlineLayerInComplexRender: |
Determine if the current layer has outline. More... | |
(NvsColor) | - getComplexRenderLayerOutlineColor: |
Gets the outline color value for a layer of complex caption. More... | |
(BOOL) | - setComplexRenderLayerOutlineColor:color: |
Set the outline color value for a layer of complex caption. More... | |
(float) | - getComplexRenderLayerOutlineWidth: |
Gets the outline width of a layer of complex caption. More... | |
(BOOL) | - setComplexRenderLayerOutlineWidth:width: |
set the outline width of a layer of complex caption More... | |
(float) | - getComplexRenderLayerOpacity: |
Gets the opacity of a certain layer of complex caption. More... | |
(BOOL) | - setComplexRenderLayerOpacity:opacity: |
set the opacity of a certain layer of complex caption. More... | |
![]() | |
(void) | - setIntVal:val: |
Set the integer parameter of NvsFx. More... | |
(int) | - getIntVal: |
Get the integer parameter of NvsFx. More... | |
(void) | - setIntValAtTime:val:time: |
Set the NvsFx's integer parameter at a specified time point. More... | |
(int) | - getIntValAtTime:time: |
Get the NvsFx's integer parameter at a specified time point. More... | |
(void) | - setFloatVal:val: |
Set the float parameter of NvsFx. More... | |
(double) | - getFloatVal: |
Get the float parameter of NvsFx. More... | |
(void) | - setFloatValAtTime:val:time: |
Set the NvsFx's float parameter at a specified time point. More... | |
(double) | - getFloatValAtTime:time: |
Get the NvsFx's float parameter at a specified time point. More... | |
(void) | - setBooleanVal:val: |
Set the BOOL parameter of NvsFx. More... | |
(BOOL) | - getBooleanVal: |
Get the BOOL parameter of NvsFx. More... | |
(void) | - setBooleanValAtTime:val:time: |
Set the NvsFx’s BOOL parameter at a specified time point. More... | |
(BOOL) | - getBooleanValAtTime:time: |
Get the NvsFx's BOOL parameter at a specified time point. More... | |
(void) | - setStringVal:val: |
Set the string parameter of NvsFx. More... | |
(NSString *) | - getStringVal: |
Get the string parameter of NvsFx. More... | |
(void) | - setStringValAtTime:val:time: |
Set the NvsFx's string parameter at a specified time point. More... | |
(NSString *) | - getStringValAtTime:time: |
Get the NvsFx's string parameter at a specified time point. More... | |
(void) | - setColorVal:val: |
Set the color parameter of NvsFx. More... | |
(NvsColor) | - getColorVal: |
Get the color parameter of NvsFx. More... | |
(void) | - setColorValAtTime:val:time: |
Set the NvsFx's color parameter at a specified time point. More... | |
(NvsColor) | - getColorValAtTime:time: |
Get the NvsFx's color parameter at a specified time point. More... | |
(void) | - setPosition2DVal:val: |
Set the two dimentional coordinates parameter of NvsFx. More... | |
(NvsPosition2D) | - getPosition2DVal: |
Get the two dimentional coordinates parameter of NvsFx. More... | |
(void) | - setPosition2DValAtTime:val:time: |
Set the NvsFx's two dimentional coordinates parameter at a specified time point. More... | |
(NvsPosition2D) | - getPosition2DValAtTime:time: |
Get the NvsFx's two dimentional coordinates parameter at a specified time point. More... | |
(void) | - setPosition3DVal:val: |
Set the three dimentional coordinates parameter of NvsFx. More... | |
(NvsPosition3D) | - getPosition3DVal: |
Get the three dimentional coordinates parameter of NvsFx. More... | |
(void) | - setPosition3DValAtTime:val:time: |
Set the NvsFx's three dimentional coordinates parameter at a specified time point. More... | |
(NvsPosition3D) | - getPosition3DValAtTime:time: |
Get the NvsFx's three dimentional coordinates parameter at a specified time point. More... | |
(void) | - setMenuVal:val: |
Set the menu parameter of NvsFx. More... | |
(NSString *) | - getMenuVal: |
Get the menu parameter of NvsFx. More... | |
(void) | - setMenuValAtTime:val:time: |
Set the NvsFx's menu parameter at a specified time point. More... | |
(NSString *) | - getMenuValAtTime:time: |
Get the NvsFx menu parameter at a specified time point. More... | |
(void) | - setArbDataVal:val: |
Set custom data parameter value. More... | |
(NvsArbitraryData *) | - getArbDataVal: |
Get custom data parameter value. More... | |
(void) | - setArbDataValAtTime:val:time: |
Sets custom data parameter value. More... | |
(NvsArbitraryData *) | - getArbDataValAtTime:time: |
Get custom data parameter value at a specified time point. More... | |
(bool) | - removeKeyframeAtTime:time: |
Remove key frame at a specified time point from key frame list. More... | |
(bool) | - removeAllKeyframe: |
Remove all key frames from key frame list. More... | |
(bool) | - hasKeyframeList: |
Check whether the parameter has key frame list or not. More... | |
(int64_t) | - findKeyframeTime:time:flags: |
Get key frame at a specified time point. More... | |
(bool) | - setKeyFrameControlPoint:time:controlPointPair: |
Set key frame control point pair. More... | |
(NvsControlPointPair *) | - getKeyFrameControlPoint:time: |
Get key frame control point pair. More... | |
(bool) | - setKeyFrameControlPointMode:time:controlPointModePair: |
Set key frame control point mode pair. More... | |
(NvsControlPointModePair *) | - getKeyFrameControlPointMode:time: |
Get key frame control point mode pair. More... | |
(void) | - setFilterIntensity: |
Set the intensity of the filter. More... | |
(float) | - getFilterIntensity |
Get the intensity of the filter. More... | |
(void) | - setFilterMask: |
Set the mask of the filter. More... | |
(bool) | - getFilterMask |
Get the usage of the filter's mask. More... | |
(void) | - setRegional: |
Set whether the filter is regional. More... | |
(BOOL) | - getRegional |
Get whether the filter is regional. More... | |
(void) | - setIgnoreBackground: |
Set whether the regional filter ignores background. More... | |
(BOOL) | - getIgnoreBackground |
Get whether the regional filter ignores background. More... | |
(void) | - setInverseRegion: |
Set whether the regional filter inverses region. More... | |
(BOOL) | - getInverseRegion |
Get whether the regional filter inverses region. More... | |
(NSArray *) | - getRegion |
Get the region of this regional filter. More... | |
(void) | - setRegion: |
Set the region of this regional filter. More... | |
(NvsMaskRegionInfo *) | - getRegionInfo |
Get the mask region informations of the regional filter. More... | |
(void) | - setRegionInfo: |
Set the mask region informations of the regional filter. More... | |
(void) | - setRegionInfoAtTime:time: |
Set the regional filter's mask region informations at a specified time point. More... | |
(NvsMaskRegionInfo *) | - getRegionInfoAtTime: |
Get the the regional filter's mask region informations at a specified time. More... | |
(void) | - setRegionalFeatherWidth: |
Set the feather width of the regional filter. More... | |
(float) | - getRegionalFeatherWidth |
Get the feather width of the regional filter. More... | |
(void) | - setRegionalFeatherWidthAtTime:time: |
Set the regional filter's feather width at a specified time point. More... | |
(float) | - getRegionalFeatherWidthAtTime: |
Get the regional filter's feather width at a specified time point. More... | |
(void) | - setRegionCoordinateSystemType: |
Set the coordinate system of the region. More... | |
(int) | - getRegionCoordinateSystemType |
Get the coordinate system of the region. More... | |
(NvsParticleSystemContext *) | - getParticleSystemContext |
Get the particle effect context pointer.Please refer to NvsParticleSystemContext. More... | |
(NvsARFaceContext *) | - getARFaceContext |
Get face effect context pointer.Please refer to NvsARFaceContext. More... | |
(NvsPaintingEffectContext *) | - getPaintingEffectContext |
Get the particle effect context pointer.Please refer to NvsPaintingEffectContext. More... | |
(NvsARSceneManipulate *) | - getARSceneManipulate |
Get the AR scene operation pointer.Please refer to NvsARSceneManipulate. More... | |
(void) | - setExprVar:varValue: |
Set the value of the defined parameter in the expression. More... | |
(double) | - getExprVar: |
Get the value of the defined parameter in the expression. More... | |
(void) | - setColorExprVar:varValue: |
Set the color value of the defined parameter in the expression. More... | |
(NvsColor) | - getColorExprVar: |
Get the color value of the defined parameter in the expression. More... | |
(void) | - clearExprVar: |
Clear the value of the defined parameter in the expression and set it to the default value of 0. More... | |
(void) | - clearExprVarCtx |
Clear all parameter values defined in the expression and set them to the default value of 0. More... | |
![]() | |
(void) | - setAttachment:forKey: |
Adds an attachment to the NvsObject object to identify the object of the NvsObject or for other purposes. More... | |
(void) | - setTemplateAttachment:forKey: |
Adds additional template data to the NvsObject object to identify the NvsObject template object. More... | |
(NSObject *) | - getAttachment: |
Gets attached attachments. More... | |
(NSString *) | - getTemplateAttachment: |
Gets an template attachment to NvsObject. More... | |
Properties | |
BOOL | isPanoramic |
Whether it is a panorama caption. More... | |
BOOL | isModular |
whether the current caption is a modular caption More... | |
NvsRoleInTheme | roleInTheme |
The role of captions in the theme (general, title, and trailer.) More... | |
NvsCategory | category |
Clip type. More... | |
NSString * | captionStylePackageId |
The package ID of the caption style. More... | |
NSString * | modularCaptionContextPackageId |
The package ID of the modular caption context style. More... | |
NSString * | modularCaptionRendererPackageId |
The package ID of the modular caption render style. More... | |
NSString * | modularCaptionAnimationPackageId |
The package ID of the modular caption animation style. More... | |
NSString * | modularCaptionInAnimationPackageId |
The package ID of the modular caption in-animation style. More... | |
NSString * | modularCaptionOutAnimationPackageId |
The package ID of the modular caption out-animation style. More... | |
![]() | |
NvsFxDescription * | description |
Special effect description. More... | |
captions.
captions are custom text that is superimposed on the video. When editing a video, users can add and remove timeline captions and adjust the captions position. After adding captions, user can also set the style, including font size, color, shadow, stroke, etc.
- (bool) applyCaptionStyle: | (NSString *) | captionStylePackageId |
Apply the caption style.
captionStylePackageId | The resource package ID of the caption style |
- (bool) applyCaptionStyleWithAssetDefaultParam: | (NSString *) | captionStylePackageId | |
isUseDefaultAssetParam: | (NvsAssetDefaultParam) | isUseDefaultAssetParam | |
apply the caption style.
captionStylePackageId | The resource package ID of the caption style |
isUseDefaultAssetParam | Whether to use the default material parameters. |
- (bool) applyModularCaptionAnimation: | (NSString *) | captionAnimationPackageId |
Applys modular caption loop-animation style.
captionAnimationPackageId | Modular caption loop-animation style resource package ID. |
- (bool) applyModularCaptionContext: | (NSString *) | captionContextPackageId |
Applys modular caption context style.
captionContextPackageId | Modular caption context style resource package ID. |
- (bool) applyModularCaptionInAnimation: | (NSString *) | captionInAnimationPackageId |
Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works.
captionInAnimationPackageId | Modular caption in-animation style resource package ID. |
- (bool) applyModularCaptionOutAnimation: | (NSString *) | captionOutAnimationPackageId |
Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works.
captionOutAnimationPackageId | Modular caption out-animation style resource package ID. |
- (bool) applyModularCaptionRenderer: | (NSString *) | captionRendererPackageId |
Applys modular caption render style.
captionRendererPackageId | Modular caption render style resource package ID. |
- (CGPoint) getAnchorPoint |
- (NvsColor) getBackgroundColor |
Get the current text background color value.
- (float) getBackgroundRadius |
Get the current text background rectangle's corner radius value.
- (BOOL) getBold |
Gets the state whether the caption font is bold.
- (float) getBoundaryPaddingRatio |
Gets the caption boundary padding ratio.
- (NSArray *) getBoundingRectangleVertices |
Gets the vertex position of the original enclosing rectangle of the caption after transformation.
- (NSArray *) getCaptionBoundingVertices: | (NvsBoundingType) | boundingType |
Gets the transformed vertices position of the original caption bounding.
boundingType | Bounding type. Please refer to Bounding Type |
- (CGPoint) getCaptionTranslation |
Gets the translation amount of the caption.
- (float) getCenterAzimuthAngle |
Gets the azimuth angle of the center point for the caption. It's only valid for the panorama caption.
- (float) getCenterPolarAngle |
Gets the polar angle of the center point for the caption. It's only valid for the panorama caption.
- (int) getComplexRenderLayerCount |
Gets the number of complex caption layers.
- (float) getComplexRenderLayerOpacity: | (int) | layerIndex |
Gets the opacity of a certain layer of complex caption.
layerIndex | layer index |
- (NvsColor) getComplexRenderLayerOutlineColor: | (int) | layerIndex |
Gets the outline color value for a layer of complex caption.
layerIndex | layer index |
- (float) getComplexRenderLayerOutlineWidth: | (int) | layerIndex |
Gets the outline width of a layer of complex caption.
layerIndex | layer index |
- (NvsControlPointPair*) getControlPoint: | (NSString *) | fxParam |
Get the caption's key frame control point pair.
fxParam | The type of data parameter for the caption. |
- (BOOL) getDrawOutline |
Gets the status whether the caption draws the outline.
- (BOOL) getDrawShadow |
Gets the state of the current caption shadow.
- (NSString *) getFontFamily |
Gets the caption font.
- (NSString *) getFontFilePath |
Gets the file path of the caption font.
- (float) getFontSize |
Gets the font size of the caption.
- (BOOL) getItalic |
Gets the state whether the caption font is italic.
- (float) getLetterSpacing |
Gets caption word spacing.
- (NvsLetterSpacingType) getLetterSpacingType |
Gets caption word spacing type.
- (float) getLineSpacing |
Gets caption line spacing.
- (int) getModularCaptionAnimationPeroid |
Get modular caption Animation Peroid.
- (int) getModularCaptionInAnimationDuration |
Get modular caption in-animation duration.
- (int) getModularCaptionOutAnimationDuration |
Get modular caption out-animation duration.
- (float) getOpacity |
- (float) getOrthoAngleRange |
Gets the ranging angle which is perpendicular with the polar angle for the caption. It's only valid for the panorama caption.
- (NvsColor) getOutlineColor |
Gets the color of the outline for the caption.
- (float) getOutlineWidth |
Gets the width of the outline for the caption.
- (float) getPanoramicRotation |
Gets the rotation angle for the caption. It's only valid for the panorama caption.
- (float) getPanoramicScaleX |
Gets the horizontal scaling factor for the caption. It's only valid for the panorama caption.
- (float) getPanoramicScaleY |
Gets the vertical scaling factor for the caption. It's only valid for the panorama caption.
- (float) getPolarAngleRange |
Gets the ranging angle of the polar angle for the caption. It's only valid for the panorama caption.
- (float) getRotationZ |
Gets the rotation angle for the caption.
- (float) getScaleX |
Gets the horizontal scaling factor for the caption.
- (float) getScaleY |
Gets the vertical scaling factor for the caption.
- (NvsColor) getSecondaryColor |
Gets the current color value of the caption.
- (NvsColor) getSecondaryOutlineColor |
Gets the current outline sencondary color value of the caption.
- (NvsColor) getShadowColor |
Gets the color of the caption shadow.
- (float) getShadowFeather |
Gets the feathering degree of the caption shadow.
- (CGPoint) getShadowOffset |
Gets the offset of the caption shadow.
- (NSString *) getText |
- (NvsTextAlignment) getTextAlignment |
Gets the caption horizontal alignment method.
- (NvsRect) getTextBoundingRect |
Gets the rectangle of the caption text.
- (float) getTextCenterAzimuthAngle |
Gets the azimuth angle of the center point for the caption text. It's only valid for the panorama caption.
- (float) getTextCenterPolarAngle |
Gets the polar angle of the center point for the caption text. It's only valid for the panorama caption.
- (NvsColor) getTextColor |
Gets the current color value of the caption font.
- (NvsCaptionTextLayout *) getTextLayout |
- (float) getTextOrthoAngleRange |
Gets the ranging angle of which is perpendicular with the polar angle for the caption text. It's only valid for the panorama caption.
- (float) getTextPolarAngleRange |
Gets the ranging angle of the polar angle for the caption text. It's only valid for the panorama caption.
- (NSArray<NvsCaptionSpan *>*) getTextSpanList |
- (NvsTextAlignment) getTextVerticalAlignment |
Gets the caption vertical alignment method, valid for frame-caption only.
- (BOOL) getUnderline |
Gets the caption under line.
- (BOOL) getVerticalLayout |
Gets the state whether the caption is vertical layout.
- (int) getWeight |
Gets the caption weight.
- (float) getZValue |
- (BOOL) hasOutlineLayerInComplexRender: | (int) | layerIndex |
Determine if the current layer has outline.
layerIndex | layer index |
- (BOOL) isFrameCaption |
Gets whether the caption is a frame caption.
- (void) resetOutlineColorState |
Resets the outlinecolor state of the caption text.
- (void) resetTextColorState |
Resets the color state of the caption text.
- (void) rotateCaption: | (float) | angle |
Rotates the caption with the caption center point as the anchor point.
angle | The rotation angle of caption |
- (void) rotateCaption: | (float) | angle | |
anchor: | (CGPoint) | anchor | |
Rotates the caption.
angle | The rotation angle of the caption |
anchor | The rotation anchor of the caption |
- (void) scaleCaption: | (float) | scaleFactor | |
anchor: | (CGPoint) | anchor | |
Scales the caption.
scaleFactor | The scaling factor for the caption |
anchor | The anchor for Scaling the caption |
- (void) setAnchorPoint: | (CGPoint) | anchor |
- (void) setBackgroundColor: | (const NvsColor *) | backgroundColor |
Set text background color.
backgroundColor | Background color value. |
- (void) setBackgroundRadius: | (float) | radius |
Set text background rectangle's corner radius.
radius | Corner radius value |
- (void) setBold: | (BOOL) | bold |
Sets whether the caption font is bold.
bold | Indicates whether the caption font is bold.YES means it is bold, NO means it is not. |
- (void) setBoundaryPaddingRatio: | (float) | ratio |
Sets the caption boundary padding ratio.
ratio | The padding ratio is a multiple of the font size, default is 0.15 |
- (void) setCaptionTranslation: | (CGPoint) | translation |
Sets the translation amount of the caption.
translation | The horizontal and vertical absolute translation of the caption. |
- (void) setCenterAzimuthAngle: | (float) | centerAzimuthAngle |
Sets the azimuth angle of the center point for the caption. It's only valid for the panorama caption.
centerAzimuthAngle | the azimuth angle of the center point (in degrees) Note: Panorama is not enabled by default after 3.13.0 |
- (void) setCenterPolarAngle: | (float) | centerPolarAngle |
Sets the polar angle of the center point for the caption. It's only valid for the panorama caption.
centerPolarAngle | The polar angle of the center point (in degrees). Note: Panorama is not enabled by default after 3.13.0 |
- (BOOL) setComplexRenderLayerOpacity: | (int) | layerIndex | |
opacity: | (float) | opacity | |
set the opacity of a certain layer of complex caption.
layerIndex | layer index |
opacity | opacity |
- (BOOL) setComplexRenderLayerOutlineColor: | (int) | layerIndex | |
color: | (NvsColor) | color | |
Set the outline color value for a layer of complex caption.
layerIndex | layer index |
color | color |
- (BOOL) setComplexRenderLayerOutlineWidth: | (int) | layerIndex | |
width: | (float) | width | |
set the outline width of a layer of complex caption
layerIndex | layer index |
width | outline width |
- (bool) setControlPoint: | (NSString *) | fxParam | |
controlPointPair: | (NvsControlPointPair *) | controlPointPair | |
Set the caption's control point pair.
fxParam | The type of data parameter for the caption. |
controlPointPair | control point pair.Set the control point to {0, 0}, that is, the current control point is linear interpolation, otherwise it is curve interpolation. |
- (void) setCurrentKeyFrameTime: | (int64_t) | time |
Set the caption KeyFrameTime.
- (void) setDrawOutline: | (BOOL) | drawOutline |
Sets whether the caption draws the outline.
drawOutline | whether the caption draws the outline。YES means it draws the outline. NO means it does not. |
- (void) setDrawShadow: | (BOOL) | drawShadow |
Sets the caption shadows.
drawShadow | Whether to set the caption shadow. YES means to set the caption shadow. NO means not. |
- (void) setFontFamily: | (NSString *) | family |
Sets the caption font.
family | The font family. if it's a null string, it's set as the default font. |
- (void) setFontSize: | (float) | fontSize |
Sets the font size of the caption.
fontSize | the font size of the caption |
- (void) setFontWithFilePath: | (NSString *) | filePath |
Sets the caption font.
filePath | The file path of the caption font. If it's a null string,it's set as the default font. |
- (void) setFrameCaptionMaxFontSize: | (float) | maxFontSize |
Sets the max font size of the frame caption. only apply to frame caption.
- (void) setItalic: | (BOOL) | italic |
Sets whether the caption font is italic.
italic | Whether it is italic. YES means the caption font is italic, and NO means it is not. |
- (void) setLetterSpacing: | (float) | letterSpacing |
Sets caption word spacing.
letterSpacing | Word spacing is expressed in percentage value by default. (LETTER_SPACING_TYPE) |
- (void) setLetterSpacingType: | (NvsLetterSpacingType) | letterSpacingType |
Sets caption word spacing type.
letterSpacingType | Word spacing type.(LETTER_SPACING_TYPE) |
- (void) setLineSpacing: | (float) | lineSpacing |
Sets caption line spacing.
lineSpacing | line spacing is expressed in absolute value. |
- (void) setModularCaptionAnimationPeroid: | (int) | periodInMS |
Set modular caption Animation Peroid.
periodInMS | Animation peroid in million second |
- (void) setModularCaptionInAnimationDuration: | (int) | inAnimationDurationInMS |
Set modular caption in-animation duration.
inAnimationDurationInMS | in-animation duration in million second |
- (void) setModularCaptionOutAnimationDuration: | (int) | outAnimationDurationInMS |
Set modular caption out-animation duration.
outAnimationDurationInMS | out-animation duration in million second |
- (void) setOpacity: | (float) | opacity |
- (void) setOutlineColor: | (const NvsColor *) | outlineColor |
Sets the color of the outline for the caption.
outlineColor | the color of the outline |
- (void) setOutlineWidth: | (float) | outlineWidth |
Sets the width of the outline for the caption.
outlineWidth | the width of the outline |
- (void) setPanoramicRotation: | (float) | rotationAngle |
Sets the rotation angle for the caption. It's only valid for the panorama caption.
rotationAngle | The rotation angle Note: Panorama is not enabled by default after 3.13.0 |
- (void) setPanoramicScaleX: | (float) | scaleX |
Sets the horizontal scaling factor for the caption. It's only valid for the panorama caption.
scaleX | The horizontal scaling factor Note: Panorama is not enabled by default after 3.13.0 |
- (void) setPanoramicScaleY: | (float) | scaleY |
Sets the vertical scaling factor for the caption. It's only valid for the panorama caption.
scaleY | The vertical scaling factor Note: Panorama is not enabled by default after 3.13.0 |
- (void) setPolarAngleRange: | (float) | polarAngleRange |
Sets the ranging angle of the polar angle for the caption. It's only valid for the panorama caption.
polarAngleRange | the ranging angle of the polar angle (in degrees) Note: Panorama is not enabled by default after 3.13.0 |
- (void) setRecordingUserOperation: | (BOOL) | recordingUserOperation |
Sets whether to record user actions.
recordingUserOperation |
- (void) setRotationZ: | (float) | angle |
Sets the rotation angle for the caption.
angle | The rotation angle |
- (void) setScaleX: | (float) | scale |
Sets the horizontal scaling factor for the caption.
scale | The horizontal scaling factor |
- (void) setScaleY: | (float) | scale |
Sets the vertical scaling factor for the caption.
scale | the vertical scaling factor |
- (void) setSecondaryColor: | (const NvsColor *) | color |
Sets caption secondary color. it is only used in karaoke subtitles now.
textColor | Caption color value. |
- (void) setSecondaryOutlineColor: | (const NvsColor *) | color |
Sets caption secondary outline color. it is only used in karaoke subtitles now.
color | Caption outline color value. |
- (void) setShadowColor: | (const NvsColor *) | shadowColor |
Sets the color of the caption shadow.
shadowColor | The color of the caption shadow |
- (void) setShadowFeather: | (float) | feather |
Sets the feathering degree of the caption shadow.
feather | feathering degree |
- (void) setShadowOffset: | (CGPoint) | shadowOffset |
Sets the offset of the caption shadow.
shadowOffset | The offset of the caption shadow. |
- (void) setText: | (NSString *) | text |
- (void) setTextAlignment: | (NvsTextAlignment) | textAlign |
Sets the caption horizontal alignment method.
textAlign | the caption horizontal alignment method |
- (void) setTextColor: | (const NvsColor *) | textColor |
Sets the color of the caption text.
textColor | the color of the caption text |
- (void) setTextFrameOriginRect: | (NvsRect) | rc |
Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size.
rc | New frame size. |
- (void) setTextSpanList: | (NSArray< NvsCaptionSpan * > *) | storyboardCaptionSpanList |
- (void) setTextVerticalAlignment: | (NvsTextAlignment) | textVerticalAlign |
Sets the caption vertical alignment method, valid for frame-caption only.
textAlign | the caption vertical alignment method |
- (void) setUnderline: | (BOOL) | underline |
Sets caption under line.
underline | Whether it is set to under line. |
- (void) setVerticalLayout: | (BOOL) | verticalLayout |
Sets whether the caption is vertical layout.
verticalLayout | Indicates whether the caption is vertical layout.YES means it is vertical layout, NO means it is not. |
- (void) setWeight: | (int) | weight |
- (void) setZValue: | (float) | value |
- (void) translateCaption: | (CGPoint) | translationOffset |
translates the caption.
translationOffset | The horizontal and vertical offset values for the caption translation |
|
readatomicassign |
The package ID of the caption style.
|
readatomicassign |
Clip type.
|
readatomicassign |
whether the current caption is a modular caption
|
readatomicassign |
Whether it is a panorama caption.
|
readatomicassign |
The package ID of the modular caption animation style.
|
readatomicassign |
The package ID of the modular caption context style.
|
readatomicassign |
The package ID of the modular caption in-animation style.
|
readatomicassign |
The package ID of the modular caption out-animation style.
|
readatomicassign |
The package ID of the modular caption render style.
|
readatomicassign |
The role of captions in the theme (general, title, and trailer.)