MeiCam SDK For iOS
3.7.2
|
#import <NvsVideoEffectCompoundCaption.h>
Instance Methods | |
(int64_t) | - changeInPoint: |
Changes the in-point of the caption. More... | |
(int64_t) | - changeOutPoint: |
Changes the out-point of the caption. More... | |
(void) | - movePosition: |
Changes the display position of the caption (the in and out points are offset from the offset value at the same time). More... | |
(void) | - setText:text: |
Sets caption text. More... | |
(NSString *) | - getText: |
Get caption text. More... | |
(void) | - setFontFamily:family: |
Sets caption font family. More... | |
(NSString *) | - getFontFamily: |
Get the name of caption font. More... | |
(void) | - setTextColor:textColor: |
Sets caption text color. More... | |
(NvsEffectColor) | - getTextColor: |
Gets the color value of the caption. More... | |
(void) | - setWeight:captionIndex: |
Sets caption weight. More... | |
(int) | - getWeight: |
Gets the caption weight. More... | |
(void) | - setCaptionTranslation: |
Sets the amount of caption translation. More... | |
(CGPoint) | - getCaptionTranslation |
Gets the amount of caption translation. More... | |
(void) | - translateCaption: |
Translate caption. More... | |
(void) | - setAnchorPoint: |
Sets caption anchor. More... | |
(CGPoint) | - getAnchorPoint |
Gets caption anchor. More... | |
(void) | - setScaleX: |
Sets horizontal scaling factor for caption. More... | |
(float) | - getScaleX |
Gets caption horizontal scaling factor. More... | |
(void) | - setScaleY: |
Sets vertical scaling factor for captions. More... | |
(float) | - getScaleY |
Gets caption vertical scaling factor. More... | |
(void) | - scaleCaption:anchor: |
Zooms caption. More... | |
(void) | - setRotationZ: |
Sets the rotation angle for the caption. More... | |
(float) | - getRotationZ |
Gets caption rotation angle. More... | |
(void) | - rotateCaption:anchor: |
Rotates captions. More... | |
(void) | - rotateCaptionAroundCenter:boundingType: |
Rotates caption around center of the bounding. More... | |
(NSArray *) | - getCaptionBoundingVertices:boundingType: |
Gets the transformed vertices position of the original caption bounding. More... | |
(NSArray *) | - getCompoundBoundingVertices: |
Gets the transformed vertices position of the original compound caption bounding. More... | |
(void) | - setZValue: |
Sets caption Z value. More... | |
(float) | - getZValue |
Gets caption Z value. More... | |
(void) | - setOpacity: |
Set the caption opacity. More... | |
(float) | - getOpacity |
Get the caption opacity. More... | |
(void) | - setVideoResolution: |
Set the Compound Caption's video resolution. More... | |
![]() | |
(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 | |
NSInteger | captionCount |
Gets number of sub-cpations in this compound caption. 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... | |
NSString * | captionStylePackageId |
The package ID of the caption style. More... | |
![]() | |
NvsEffectDescription * | description |
- (int64_t) changeInPoint: | (int64_t) | newInPoint |
Changes the in-point of the caption.
newInPoint | The new in-point of the caption (in microseconds). |
- (int64_t) changeOutPoint: | (int64_t) | newOutPoint |
Changes the out-point of the caption.
newOutPoint | The new out-point of the caption (in microseconds). |
- (CGPoint) getAnchorPoint |
Gets caption anchor.
- (NSArray *) getCaptionBoundingVertices: | (NSInteger) | captionIndex | |
boundingType: | (NvsEffectBoundingType) | boundingType | |
Gets the transformed vertices position of the original caption bounding.
captionIndex | Caption index to get vertices positions |
boundingType | Bounding type. Please refer to Bounding Type |
- (CGPoint) getCaptionTranslation |
Gets the amount of caption translation.
- (NSArray *) getCompoundBoundingVertices: | (NvsEffectBoundingType) | boundingType |
Gets the transformed vertices position of the original compound caption bounding.
boundingType | Bounding type. Please refer to Bounding Type |
- (NSString *) getFontFamily: | (NSInteger) | captionIndex |
Get the name of caption font.
captionIndex | caption index to get font family |
- (float) getOpacity |
- (float) getRotationZ |
Gets caption rotation angle.
- (float) getScaleX |
Gets caption horizontal scaling factor.
- (float) getScaleY |
Gets caption vertical scaling factor.
- (NSString *) getText: | (NSInteger) | captionIndex |
Get caption text.
captionIndex | caption index to get text |
- (NvsEffectColor) getTextColor: | (NSInteger) | captionIndex |
Gets the color value of the caption.
captionIndex | caption index to get text color |
- (int) getWeight: | (int) | captionIndex |
Gets the caption weight.
captionIndex | caption index |
- (float) getZValue |
Gets caption Z value.
- (void) movePosition: | (int64_t) | offset |
Changes the display position of the caption (the in and out points are offset from the offset value at the same time).
offset | Offset value for in and out points changes (in microseconds). |
- (void) rotateCaption: | (float) | angle | |
anchor: | (CGPoint) | anchor | |
Rotates captions.
angle | Angle of caption rotation. |
anchor | Anchor of caption rotation. |
- (void) rotateCaptionAroundCenter: | (float) | angle | |
boundingType: | (NvsEffectBoundingType) | boundingType | |
Rotates caption around center of the bounding.
angle | Angle of rotation, in degree |
boundingType | Bounding type to calculate center point. Please refer to Bounding Type |
- (void) scaleCaption: | (float) | scaleFactor | |
anchor: | (CGPoint) | anchor | |
Zooms caption.
scaleFactor | Caption scaling factor. |
anchor | Caption zoom anchor. |
- (void) setAnchorPoint: | (CGPoint) | anchor |
- (void) setCaptionTranslation: | (CGPoint) | translation |
Sets the amount of caption translation.
translation | The horizontal and vertical translation of the caption. |
- (void) setFontFamily: | (NSInteger) | captionIndex | |
family: | (NSString *) | family | |
Sets caption font family.
captionIndex | caption index to set font family |
family | Caption font family name. It will be set to default font if family is an empty string |
- (void) setOpacity: | (float) | opacity |
- (void) setRotationZ: | (float) | angle |
- (void) setScaleX: | (float) | scale |
Sets horizontal scaling factor for caption.
scale | Horizontal scaling factor. |
- (void) setScaleY: | (float) | scale |
Sets vertical scaling factor for captions.
scale | Vertical scaling factor. |
- (void) setText: | (NSInteger) | captionIndex | |
text: | (NSString *) | text | |
Sets caption text.
captionIndex | caption index to set text |
text | Caption text |
- (void) setTextColor: | (NSInteger) | captionIndex | |
textColor: | (const NvsEffectColor *) | textColor | |
Sets caption text color.
captionIndex | caption index to set text color |
textColor | Caption text color value. |
- (void) setVideoResolution: | (NvsEffectVideoResolution *) | resolution |
Set the Compound Caption's video resolution.
resolution | The Compound Caption's video resolution |
- (void) setWeight: | (int) | weight | |
captionIndex: | (int) | captionIndex | |
Sets caption weight.
weight | the value in opentype weight integer. |
captionIndex | caption index |
- (void) setZValue: | (float) | value |
Sets caption Z value.
value | Z value |
- (void) translateCaption: | (CGPoint) | translationOffset |
Translate caption.
translationOffset | Horizontal and vertical offset values for caption. |
|
readatomicassign |
Gets number of sub-cpations in this compound caption.
|
readatomicassign |
The package ID of the caption style.
|
readatomicassign |
The in point of the caption on the timeline(in microseconds)
|
readatomicassign |
The out point of the caption on the timeline (in microseconds)