美摄SDK For iOS  3.7.2
NvsVideoEffectAnimatedSticker.h
浏览该文件的文档.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2016. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Jan 15. 2021
11 // Author: NewAuto video team
12 //================================================================================
13 #pragma once
14 
15 #import "NvsEffect.h"
16 #import <CoreGraphics/CGGeometry.h>
17 
35 
36 
37 @property (readonly) BOOL isPanoramic;
38 @property (readonly) int64_t inPoint;
39 @property (readonly) int64_t outPoint;
40 @property (readonly) int64_t defaultDuration;
41 
42 
52 - (NSString *)getAnimatedStickerPackageId;
53 
72 - (int64_t)changeInPoint:(int64_t)newInPoint;
73 
92 - (int64_t)changeOutPoint:(int64_t)newOutPoint;
93 
106 - (void)movePosition:(int64_t)offset;
107 
117 - (void)setScale:(float)scale;
118 
128 - (float)getScale;
129 
139 - (void)setHorizontalFlip:(bool)flip;
140 
150 - (BOOL)getHorizontalFlip;
151 
161 - (void)setVerticalFlip:(bool)flip;
162 
172 - (BOOL)getVerticalFlip;
173 
183 - (void)setRotationZ:(float)angle;
184 
195 - (float)getRotationZ;
196 
207 - (void)setTranslation:(CGPoint)translation;
208 
218 - (CGPoint)getTransltion;
219 
231 - (void)translateAnimatedSticker:(CGPoint)translationOffset;
232 
244 - (void)scaleAnimatedSticker:(float)scaleFactor anchor:(CGPoint)anchor;
245 
257 - (void)rotateAnimatedSticker:(float)angle anchor:(CGPoint)anchor;
258 
268 - (void)rotateAnimatedSticker:(float)angle;
269 
279 
289 - (NSArray *)getBoundingRectangleVertices;
290 
300 - (void)setCenterPolarAngle:(float)centerPolarAngle;
301 
311 - (float)getCenterPolarAngle;
312 
322 - (void)setCenterAzimuthAngle:(float)centerAzimuthAngle;
323 
333 - (float)getCenterAzimuthAngle;
334 
344 - (void)setPolarAngleRange:(float)polarAngleRange;
345 
355 - (float)getPolarAngleRange;
356 
366 - (float)getOrthoAngleRange;
367 
377 - (void)setZValue:(float)value;
378 
388 - (float)getZValue;
389 
400 - (void)setOpacity:(float)opacity;
401 
412 - (float)getOpacity;
413 
424 - (void)setCurrentKeyFrameTime:(int64_t)time;
425 
435 - (void)setVideoResolution:(NvsEffectVideoResolution*)resolution;
436 
451 - (bool)applyAnimatedStickerPeriodAnimation:(NSString*) animatedStickerPeriodAnimationPackageId;
452 
467 - (bool)applyAnimatedStickerInAnimation:(NSString*) animatedStickerInAnimationPackageId;
468 
483 - (bool)applyAnimatedStickerOutAnimation:(NSString*) animatedStickerOutAnimationPackageId;
484 
495 - (void)setAnimatedStickerAnimationPeriod:(int)periodInMS;
496 
508 
519 - (void)setAnimatedStickerInAnimationDuration:(int)inAnimationDurationInMS;
520 
532 
543 - (void)setAnimatedStickerOutAnimationDuration:(int)outAnimationDurationInMS;
544 
556 
557 @end
558 
-[NvsVideoEffectAnimatedSticker getZValue]
float getZValue()
获取贴纸Z值
NvsVideoEffectAnimatedSticker
动画贴纸类
Definition: NvsVideoEffectAnimatedSticker.h:35
-[NvsVideoEffectAnimatedSticker getAnimatedStickerAnimationPeriod]
int getAnimatedStickerAnimationPeriod()
获取动画贴纸循环动画的周期
-[NvsVideoEffectAnimatedSticker getVerticalFlip]
BOOL getVerticalFlip()
获取动画贴纸的竖直翻转状态
NvsEffectRect
矩形
Definition: NvsEffectCommonDef.h:120
-[NvsVideoEffectAnimatedSticker getAnimatedStickerPackageId]
NSString * getAnimatedStickerPackageId()
获取动画贴纸包ID
NvsVideoEffectAnimatedSticker::isPanoramic
BOOL isPanoramic
是否为全景图动画贴纸,默认为否
Definition: NvsVideoEffectAnimatedSticker.h:37
NvsVideoEffectAnimatedSticker::defaultDuration
int64_t defaultDuration
动画贴纸在时间线上的默认长度(单位微秒)
Definition: NvsVideoEffectAnimatedSticker.h:40
-[NvsVideoEffectAnimatedSticker getOrthoAngleRange]
float getOrthoAngleRange()
获取动画贴纸与极角垂直的张角。只对全景图动画贴纸有效
-[NvsVideoEffectAnimatedSticker getCenterPolarAngle]
float getCenterPolarAngle()
获取动画贴纸中心点的极角。只对全景图动画贴纸有效
-[NvsVideoEffectAnimatedSticker getBoundingRectangleVertices]
NSArray * getBoundingRectangleVertices()
获取动画贴纸在时间线坐标系下原始包络框的顶点位置。请参见时间线与视图坐标
NvsVideoEffectAnimatedSticker::inPoint
int64_t inPoint
动画贴纸在时间线上显示的入点(单位微秒)
Definition: NvsVideoEffectAnimatedSticker.h:38
-[NvsVideoEffectAnimatedSticker getOriginalBoundingRect]
NvsEffectRect getOriginalBoundingRect()
获取动画贴纸在时间线坐标系下的原始包络框。请参见时间线与视图坐标
-[NvsVideoEffectAnimatedSticker getScale]
float getScale()
获取动画贴纸的缩放值
-[NvsVideoEffectAnimatedSticker getPolarAngleRange]
float getPolarAngleRange()
获取动画贴纸极角的张角。只对全景图动画贴纸有效
NvsVideoEffectAnimatedSticker::outPoint
int64_t outPoint
动画贴纸在时间线上显示的出点(单位微秒)
Definition: NvsVideoEffectAnimatedSticker.h:39
-[NvsVideoEffectAnimatedSticker getRotationZ]
float getRotationZ()
获取动画贴纸沿Z轴顺时针旋转的角度值,Z轴垂直于屏幕
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsEffect
特效
Definition: NvsEffect.h:46
-[NvsVideoEffectAnimatedSticker getOpacity]
float getOpacity()
获取透明度
NvsEffectVideoResolution
视频解析度
Definition: NvsEffectCommonDef.h:39
-[NvsVideoEffectAnimatedSticker getAnimatedStickerOutAnimationDuration]
int getAnimatedStickerOutAnimationDuration()
获取动画贴纸出动画的时长
-[NvsVideoEffectAnimatedSticker getAnimatedStickerInAnimationDuration]
int getAnimatedStickerInAnimationDuration()
获取动画贴纸入动画的时长
-[NvsVideoEffectAnimatedSticker getTransltion]
CGPoint getTransltion()
获取动画贴纸在时间线坐标系下的平移坐标
-[NvsVideoEffectAnimatedSticker getHorizontalFlip]
BOOL getHorizontalFlip()
获取动画贴纸的水平翻转状态
-[NvsVideoEffectAnimatedSticker getCenterAzimuthAngle]
float getCenterAzimuthAngle()
获取动画贴纸中心点的方位角。只对全景图动画贴纸有效
NvsEffect.h