KSYTransitionFadesInOutFilter Class Reference

Inherits from KSYGPUTwoInputFiter : GPUImageTwoInputFilter
Conforms to KSYTransition
Declared in KSYTransitionFadesInOutFilter.h

Overview

KSYTransitionFadesInOutFilter 渐入淡出的转场效果

  • 转场: 两段视频串联的时候, 前一段的结尾和后一段的开头叠加
  • 渐入淡出: 前一段的画面慢慢变淡, 后一段的视频慢慢变清晰

  masterLayer

视频所在的图层

@property (nonatomic, readwrite) NSInteger masterLayer

Declared In

KSYTransitionFadesInOutFilter.h

  bReverse

NO: 第一段视频淡入,第二段视频淡出 YES: 第一段视频淡出,第二段视频淡入 (默认为NO)

@property (nonatomic, readwrite) BOOL bReverse

Declared In

KSYTransitionFadesInOutFilter.h

  duration

转场重叠的帧数

@property (nonatomic, readwrite) int duration

Declared In

KSYTransitionFadesInOutFilter.h

  frameIdx

转场已经处理的帧数

@property (nonatomic, readwrite) int frameIdx

Declared In

KSYTransitionFadesInOutFilter.h