|
MeiCam SDK For iOS
3.14.4
|
captions. More...
#import <NvsVideoEffectCaption.h>
Instance Methods | |
| (void) | - setVideoResolution: |
| Set the sticker's video resolution. More... | |
| (int64_t) | - changeInPoint: |
| Changes the out point of the caption on the timeline. More... | |
| (int64_t) | - changeOutPoint: |
| Changes the out point of the caption on the timeline. More... | |
| (void) | - movePosition: |
| Changes the display position of the caption on the timeline (the in and out points move the value of "offset" at the same time). More... | |
| (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... | |
| (NvsVideoEffectTextAlignment) | - getTextAlignment |
| Gets the caption horizontal alignment method. More... | |
| (void) | - setTextVerticalAlignment: |
| Sets the caption vertical alignment method. More... | |
| (NvsVideoEffectTextAlignment) | - getTextVerticalAlignment |
| Gets the caption vertical alignment method. 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... | |
| (NvsVideoEffectLetterSpacingType) | - 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... | |
| (NvsEffectColor) | - 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... | |
| (NvsEffectColor) | - getOutlineColor |
| Gets the color of the outline for the caption. 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... | |
| (NvsEffectColor) | - 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... | |
| (NvsEffectRect) | - getTextBoundingRect: |
| Gets the rectangle of the caption text. 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... | |
| (NvsEffectColor) | - 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) | - setSecondaryColor: |
| Sets caption secondary color. it is only used in karaoke subtitles now. More... | |
| (NvsEffectColor) | - getSecondaryColor |
| Gets the current color value of the caption. More... | |
| (void) | - setCurrentKeyFrameTime: |
| Set the caption KeyFrameTime. More... | |
| (BOOL) | - isFrameCaption |
| Gets whether the caption is a frame caption. More... | |
Instance Methods inherited from NvsEffect | |
| (void) | - setIntVal:val: |
| Sets effect parameter of integer type. More... | |
| (int) | - getIntVal: |
| Get effect parameter of integer type. More... | |
| (void) | - setFloatVal:val: |
| Sets effect parameter of float type. More... | |
| (double) | - getFloatVal: |
| Gets effect parameter of float type. More... | |
| (void) | - setBooleanVal:val: |
| Sets effect parameter of BOOL type. More... | |
| (BOOL) | - getBooleanVal: |
| Gets effect parameter of BOOL type. More... | |
| (void) | - setStringVal:val: |
| Sets effect parameter of string type. More... | |
| (NSString *) | - getStringVal: |
| Gets effect parameter of string value. More... | |
| (void) | - setColorVal:val: |
| Sets effect parameter of color type. More... | |
| (NvsEffectColor) | - getColorVal: |
| Gets effect parameter of color value. More... | |
| (void) | - setPosition2DVal:val: |
| Sets effect parameter of 2D coordinates type. More... | |
| (NvsEffectPosition2D) | - getPosition2DVal: |
| Gets effect parameter of 2D coordinates value. More... | |
| (void) | - setPosition3DVal:val: |
| Sets effect parameter of 3D coordinates type. More... | |
| (NvsEffectPosition3D) | - getPosition3DVal: |
| Gets effect parameter of 3D coordinates value. More... | |
| (void) | - setMenuVal:val: |
| Sets effect parameter of menu type. More... | |
| (NSString *) | - getMenuVal: |
| Gets effect parameter of menu value. More... | |
| (void) | - setArbDataVal:val: |
| Sets the effect parameter of custom type. More... | |
| (NvsArbitraryData *) | - getArbDataVal: |
| Gets the effect parameter of custom type. 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 filter intensity. More... | |
| (float) | - getFilterIntensity |
| Gets the filter intensity. More... | |
| (void) | - setFilterMask: |
| Sets the mask of the filter. More... | |
| (bool) | - getFilterMask |
| Gets the usage of the filter's mask. More... | |
| (void) | - setRegional: |
| Sets whether the filter is regional. More... | |
| (BOOL) | - getRegional |
| Gets whether the filter is regional. More... | |
| (void) | - setIgnoreBackground: |
| Sets whether the regional filter ignore Background. More... | |
| (BOOL) | - getIgnoreBackground |
| Gets whether the regional filter ignores Background. More... | |
| (void) | - setInverseRegion: |
| Sets whether the regional filter inverse region. More... | |
| (BOOL) | - getInverseRegion |
| Gets whether the regional filter inverse region. More... | |
| (void) | - setRegion: |
| Sets the region of this regional filter. More... | |
| (NSArray *) | - getRegion |
| Get the region of this regional filter. More... | |
| (NvsMaskRegionInfo *) | - getRegionInfo |
| Get the region of this regional filter. More... | |
| (void) | - setRegionInfo: |
| Sets the region of this regional filter. More... | |
| (void) | - setRegionInfoAtTime:time: |
| Sets the region of this regional filter at certain time. More... | |
| (void) | - setRegionalFeatherWidth: |
| Sets the feather width of this regional filter. More... | |
| (float) | - getRegionalFeatherWidth |
| Gets the feather width of this regional filter. More... | |
| (void) | - setRegionCoordinateSystemType: |
| Sets the coordinate system of the region. More... | |
| (int) | - getRegionCoordinateSystemType |
| Gets the coordinate system of the region. More... | |
| (NvsParticleSystemContext *) | - getParticleSystemContext |
| Gets the particle effect context. More... | |
| (NvsPaintingEffectContext *) | - getPaintingEffectContext |
| Gets the particle effect context. More... | |
| (NvsARSceneManipulate *) | - getARSceneManipulate |
| Get the AR scene operation pointer. More... | |
| (void) | - setExprVar:varValue: |
| Sets the value of the defined parameter in the expression. More... | |
| (double) | - getExprVar: |
| Gets the value of the defined parameter in the expression. More... | |
| (void) | - clearExprVar: |
| Clears the value of the defined parameter in the expression and sets it to the default value of 0. More... | |
| (void) | - clearExprVarCtx |
| Clears the value of all parameters defined in the expression and sets it to the default value of 0. More... | |
Properties | |
| BOOL | isPanoramic |
| Whether it is a panorama caption. More... | |
| BOOL | isModular |
| whether the current caption is a modular caption More... | |
| BOOL | clipAffinityEnabled |
| Whether to enable the affinity with clip. More... | |
| int64_t | inPoint |
| The in point of the caption on the timeline(in microseconds) More... | |
| int64_t | outPoint |
| The out point of the caption on the timeline (in microseconds) More... | |
| NvsVideoEffectRoleInTheme | roleInTheme |
| The role of captions in the theme (general, title, and trailer.) More... | |
| NvsVideoEffectCategory | 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... | |
Properties inherited from NvsEffect | |
| NvsEffectDescription * | description |
captions.
captions are custom text that is superimposed on the video. When editing a video, users can create and remove 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: | (NvsVideoEffectAssetDefaultParam) | 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. |
| - (int64_t) changeInPoint: | (int64_t) | newInPoint |
Changes the out point of the caption on the timeline.
| newInPoint | The new out point of the caption on the timeline (in microseconds) |
| - (int64_t) changeOutPoint: | (int64_t) | newOutPoint |
Changes the out point of the caption on the timeline.
| newOutPoint | The new out point of the caption on the timeline (in microseconds) |
| - (CGPoint) getAnchorPoint |
| - (NvsEffectColor) 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.
| - (NSArray *) getCaptionBoundingVertices: | (NvsVideoEffectBoundingType) | 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.
| - (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.
| - (NvsVideoEffectLetterSpacingType) 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.
| - (NvsEffectColor) 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.
| - (NvsEffectColor) getSecondaryColor |
Gets the current color value of the caption.
| - (NvsEffectColor) 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 |
| - (NvsVideoEffectTextAlignment) getTextAlignment |
Gets the caption horizontal alignment method.
| - (NvsEffectRect) getTextBoundingRect: | (BOOL) | actualBoundingRect |
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.
| - (NvsEffectColor) getTextColor |
Gets the current color value of the caption font.
| - (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.
| - (NvsVideoEffectTextAlignment) getTextVerticalAlignment |
Gets the caption vertical alignment method.
| - (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) isFrameCaption |
Gets whether the caption is a frame caption.
| - (void) movePosition: | (int64_t) | offset |
Changes the display position of the caption on the timeline (the in and out points move the value of "offset" at the same time).
| offset | The offset value (in microseconds) |
| - (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 NvsEffectColor *) | 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) 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) |
| - (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). |
| - (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: | (NvsVideoEffectLetterSpacingType) | 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 NvsEffectColor *) | 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 |
| - (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 |
| - (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 |
| - (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) |
| - (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 NvsEffectColor *) | color |
Sets caption secondary color. it is only used in karaoke subtitles now.
| textColor | Caption color value. |
| - (void) setShadowColor: | (const NvsEffectColor *) | 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: | (NvsVideoEffectTextAlignment) | textAlign |
Sets the caption horizontal alignment method.
| textAlign | the caption horizontal alignment method |
| - (void) setTextColor: | (const NvsEffectColor *) | textColor |
Sets the color of the caption text.
| textColor | the color of the caption text |
| - (void) setTextFrameOriginRect: | (NvsEffectRect) | 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) setTextVerticalAlignment: | (NvsVideoEffectTextAlignment) | textVerticalAlign |
Sets the caption vertical alignment method.
| 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) setVideoResolution: | (NvsEffectVideoResolution) | resolution |
Set the sticker's video resolution.
| resolution | The sticker's video resolution |
| - (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.
|
readwritenonatomicassign |
Whether to enable the affinity with clip.
|
readatomicassign |
The in point of the caption on the timeline(in microseconds)
|
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 out point of the caption on the timeline (in microseconds)
|
readatomicassign |
The role of captions in the theme (general, title, and trailer.)
1.8.18