MeiCam SDK For iOS
3.14.0
|
Go to the documentation of this file.
16 #import <CoreGraphics/CGGeometry.h>
58 -(bool) applyCaptionStyle:(NSString*) captionStylePackageId;
74 -(bool) applyModularCaptionContext:(NSString*) captionContextPackageId;
90 -(bool) applyModularCaptionRenderer:(NSString*) captionRendererPackageId;
106 -(bool) applyModularCaptionAnimation:(NSString*) captionAnimationPackageId;
122 -(bool) applyModularCaptionInAnimation:(NSString*) captionInAnimationPackageId;
138 -(bool) applyModularCaptionOutAnimation:(NSString*) captionOutAnimationPackageId;
150 -(void) setModularCaptionAnimationPeroid:(
int)periodInMS;
174 -(void) setModularCaptionInAnimationDuration:(
int)inAnimationDurationInMS;
198 -(void) setModularCaptionOutAnimationDuration:(
int)outAnimationDurationInMS;
226 -(bool) applyCaptionStyleWithAssetDefaultParam:(NSString*) captionStylePackageId isUseDefaultAssetParam:(
NvsAssetDefaultParam)isUseDefaultAssetParam;
237 - (void)setText:(NSString *)text;
259 - (void)setVerticalLayout:(BOOL)verticalLayout;
329 - (void)setBold:(BOOL)bold;
351 - (void)setWeight:(
int)weight;
373 - (void)setItalic:(BOOL)italic;
395 - (void)setUnderline:(BOOL)underline;
432 - (void)setLetterSpacing:(
float)letterSpacing;
480 - (void)setLineSpacing:(
float)lineSpacing;
492 - (void)setTextColor:(const
NvsColor *)textColor;
523 - (void)setDrawOutline:(BOOL)drawOutline;
545 - (void)setOutlineColor:(const
NvsColor *)outlineColor;
576 - (void)setOutlineWidth:(
float)outlineWidth;
598 - (void)setDrawShadow:(BOOL)drawShadow;
620 - (void)setShadowColor:(const
NvsColor *)shadowColor;
642 - (void)setShadowOffset:(CGPoint)shadowOffset;
664 - (void)setShadowFeather:(
float)feather;
686 - (void)setFontSize:(
float)fontSize;
706 - (void)setFrameCaptionMaxFontSize:(
float)maxFontSize;
718 - (void)setFontWithFilePath:(NSString *)filePath;
752 - (void)setFontFamily:(NSString *)family;
764 - (void)setCaptionTranslation:(CGPoint)translation;
788 - (void)translateCaption:(CGPoint)translationOffset;
800 - (void)setAnchorPoint:(CGPoint)anchor;
825 - (void)setScaleX:(
float)scale;
851 - (void)setScaleY:(
float)scale;
877 - (void)scaleCaption:(
float)scaleFactor anchor:(CGPoint)anchor;
889 - (void)setRotationZ:(
float)angle;
915 - (void)rotateCaption:(
float)angle anchor:(CGPoint)anchor;
927 - (void)rotateCaption:(
float)angle;
939 - (void)setTextFrameOriginRect:(
NvsRect)rc;
986 - (void)setCenterPolarAngle:(
float)centerPolarAngle;
1025 - (void)setCenterAzimuthAngle:(
float)centerAzimuthAngle;
1065 - (void)setPolarAngleRange:(
float)polarAngleRange;
1130 - (void)setPanoramicScaleX:(
float)scaleX;
1156 - (void)setPanoramicScaleY:(
float)scaleY;
1182 - (void)setPanoramicRotation:(
float)rotationAngle;
1206 - (void)setZValue:(
float)value;
1228 - (void)setRecordingUserOperation:(BOOL)recordingUserOperation;
1239 - (void)setOpacity:(
float)opacity;
1262 - (void)setBackgroundColor:(const
NvsColor *)backgroundColor;
1286 - (void)setBackgroundRadius:(
float)radius;
1310 -(void)setBoundaryPaddingRatio:(
float)ratio;
1333 - (void)setSecondaryColor:(const
NvsColor *)color;
1357 - (void)setSecondaryOutlineColor:(const
NvsColor *)color;
1379 - (void)setCurrentKeyFrameTime:(int64_t)time;
1393 - (bool)setControlPoint:(NSString *)fxParam controlPointPair:(
NvsControlPointPair *)controlPointPair;
1430 - (void)setTextSpanList:(NSArray<
NvsCaptionSpan *>*)storyboardCaptionSpanList;
1472 - (BOOL)hasOutlineLayerInComplexRender:(
int)layerIndex;
1484 - (
NvsColor)getComplexRenderLayerOutlineColor:(
int)layerIndex;
1498 - (BOOL)setComplexRenderLayerOutlineColor:(
int)layerIndex color:(
NvsColor)color;
1510 - (float)getComplexRenderLayerOutlineWidth:(
int)layerIndex;
1524 - (BOOL)setComplexRenderLayerOutlineWidth:(
int)layerIndex width:(
float)width;
1536 - (float)getComplexRenderLayerOpacity:(
int)layerIndex;
1550 - (BOOL)setComplexRenderLayerOpacity:(
int)layerIndex opacity:(
float)opacity;
CGPoint getShadowOffset()
Gets the offset of the caption shadow.
float getCenterPolarAngle()
Gets the polar angle of the center point for the caption. It's only valid for the panorama caption.
NvsCaptionTextLayout * getTextLayout()
NvsRoleInTheme
The role of the clip in the theme.
Definition: NvsCommonDef.h:121
float getOrthoAngleRange()
Gets the ranging angle which is perpendicular with the polar angle for the caption....
NSString * modularCaptionAnimationPackageId
The package ID of the modular caption animation style.
Definition: NvsCaption.h:42
NvsLetterSpacingType
letter spacing type
Definition: NvsCommonDef.h:150
Key frame control point pair structure.
Definition: NvsControlPointPair.h:27
NSString * modularCaptionInAnimationPackageId
The package ID of the modular caption in-animation style.
Definition: NvsCaption.h:43
int getModularCaptionOutAnimationDuration()
Get modular caption out-animation duration.
Rectangle.
Definition: NvsCommonDef.h:361
float getScaleY()
Gets the vertical scaling factor for the caption.
float getLetterSpacing()
Gets caption word spacing.
BOOL getDrawOutline()
Gets the status whether the caption draws the outline.
NvsLetterSpacingType getLetterSpacingType()
Gets caption word spacing type.
int getModularCaptionInAnimationDuration()
Get modular caption in-animation duration.
BOOL getItalic()
Gets the state whether the caption font is italic.
float getBoundaryPaddingRatio()
Gets the caption boundary padding ratio.
BOOL getVerticalLayout()
Gets the state whether the caption is vertical layout.
NvsTextAlignment getTextVerticalAlignment()
Gets the caption vertical alignment method, valid for frame-caption only.
NSString * modularCaptionRendererPackageId
The package ID of the modular caption render style.
Definition: NvsCaption.h:41
NvsBoundingType
Definition: NvsCompoundCaption.h:44
void resetOutlineColorState()
Resets the outlinecolor state of the caption text.
NSString * getText()
Gets the caption text.
NSString * modularCaptionOutAnimationPackageId
The package ID of the modular caption out-animation style.
Definition: NvsCaption.h:44
effect class.
Definition: NvsFx.h:83
float getScaleX()
Gets the horizontal scaling factor for the caption.
CGPoint getCaptionTranslation()
Gets the translation amount of the caption.
float getOpacity()
Get the caption opacity.
NvsColor getBackgroundColor()
Get the current text background color value.
BOOL isPanoramic
Whether it is a panorama caption.
Definition: NvsCaption.h:35
NvsColor getOutlineColor()
Gets the color of the outline for the caption.
CGPoint getAnchorPoint()
Gets the caption anchor.
BOOL getDrawShadow()
Gets the state of the current caption shadow.
float getZValue()
Gets the Z value of the caption.
NvsColor getTextColor()
Gets the current color value of the caption font.
BOOL getUnderline()
Gets the caption under line.
float getTextCenterAzimuthAngle()
Gets the azimuth angle of the center point for the caption text. It's only valid for the panorama cap...
Self-defined color.
Definition: NvsCommonDef.h:403
int getModularCaptionAnimationPeroid()
Get modular caption Animation Peroid.
float getBackgroundRadius()
Get the current text background rectangle's corner radius value.
NSArray< NvsCaptionSpan * > * getTextSpanList()
float getRotationZ()
Gets the rotation angle for the caption.
void resetTextColorState()
Resets the color state of the caption text.
captions.
Definition: NvsCaption.h:34
Definition: NvsCaptionSpan.h:45
float getCenterAzimuthAngle()
Gets the azimuth angle of the center point for the caption. It's only valid for the panorama caption.
NvsTextAlignment
Text alignment style.
Definition: NvsCommonDef.h:134
NvsColor getShadowColor()
Gets the color of the caption shadow.
float getTextCenterPolarAngle()
Gets the polar angle of the center point for the caption text. It's only valid for the panorama capti...
BOOL isFrameCaption()
Gets whether the caption is a frame caption.
NSArray * getBoundingRectangleVertices()
Gets the vertex position of the original enclosing rectangle of the caption after transformation.
int getComplexRenderLayerCount()
Gets the number of complex caption layers.
NSString * modularCaptionContextPackageId
The package ID of the modular caption context style.
Definition: NvsCaption.h:40
NvsColor getSecondaryColor()
Gets the current color value of the caption.
NvsRect getTextBoundingRect()
Gets the rectangle of the caption text.
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NSString * captionStylePackageId
The package ID of the caption style.
Definition: NvsCaption.h:39
NvsColor getSecondaryOutlineColor()
Gets the current outline sencondary color value of the caption.
NSString * getFontFamily()
Gets the caption font.
NvsAssetDefaultParam
Uses the default caption package.
Definition: NvsCommonDef.h:162
int getWeight()
Gets the caption weight.
BOOL getBold()
Gets the state whether the caption font is bold.
float getPanoramicScaleX()
Gets the horizontal scaling factor for the caption. It's only valid for the panorama caption.
NvsRoleInTheme roleInTheme
The role of captions in the theme (general, title, and trailer.)
Definition: NvsCaption.h:37
float getPanoramicScaleY()
Gets the vertical scaling factor for the caption. It's only valid for the panorama caption.
float getOutlineWidth()
Gets the width of the outline for the caption.
Definition: NvsCaptionTextLayout.h:16
float getPolarAngleRange()
Gets the ranging angle of the polar angle for the caption. It's only valid for the panorama caption.
float getFontSize()
Gets the font size of the caption.
NvsTextAlignment getTextAlignment()
Gets the caption horizontal alignment method.
float getPanoramicRotation()
Gets the rotation angle for the caption. It's only valid for the panorama caption.
float getTextOrthoAngleRange()
Gets the ranging angle of which is perpendicular with the polar angle for the caption text....
float getTextPolarAngleRange()
Gets the ranging angle of the polar angle for the caption text. It's only valid for the panorama capt...
NSString * getFontFilePath()
Gets the file path of the caption font.
float getLineSpacing()
Gets caption line spacing.
NvsCategory
The type of clip in theme.
Definition: NvsCommonDef.h:174
NvsCategory category
Clip type.
Definition: NvsCaption.h:38
BOOL isModular
whether the current caption is a modular caption
Definition: NvsCaption.h:36
float getShadowFeather()
Gets the feathering degree of the caption shadow.