KSYTransitionFilter Class Reference

Inherits from GPUImageFilterGroup
Declared in KSYTransitionFilter.h

Overview

KSYTransitionFilter 转场效果滤镜 转场: 两段视频串联的时候, 前一段的结尾和后一段的开头叠加 渐入淡出: 前一段的画面慢慢变淡, 后一段的视频慢慢变清晰 闪黑/闪白: 作用在前一段的结尾画面慢慢变黑或变白,全黑/全白后, 切换为下一段视频 …

– initWithType:andOverlay:

初始化并指定KSYTransitionType类型来创建对应转场特效

- (instancetype)initWithType:(KSYTransitionType)type andOverlay:(KSYOverlapType)overlap

Parameters

type

效果类型

overlap

重叠方式

Declared In

KSYTransitionFilter.h

  transitionType

当前转场的类型

@property (atomic, readonly) KSYTransitionType transitionType

Declared In

KSYTransitionFilter.h

  overlapType

当前转场画面重叠的类型

@property (atomic, readonly) KSYOverlapType overlapType

Declared In

KSYTransitionFilter.h

  duration

转场重叠的帧数 (默认:30)

@property (nonatomic, readwrite) int duration

Declared In

KSYTransitionFilter.h

  frameIdx

转场已经处理的帧数

@property (nonatomic, readwrite) int frameIdx

Declared In

KSYTransitionFilter.h