-
Notifications
You must be signed in to change notification settings - Fork 1
/
DVGStackableVideoCompositor.h
32 lines (28 loc) · 1.76 KB
/
DVGStackableVideoCompositor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "DVGStackableCompositionInstruction.h"
#import "DVGOglEffectKeyframedAnimation.h"
#import "DVGOglEffectDirectionalBlur.h"
#import "DVGOglEffectColorSaturation.h"
#import "DVGOglEffectAnimatedTrackFrameRemap.h"
#import "DVGOglEffectAnimatedRainbowMask.h"
#import "DVGOglEffectPixellate.h"
#import "DVGOglEffectPolkaDot.h"
#import "DVGOglEffectToonPoster.h"
#import "DVGOglEffectKuwahara.h"
#import "DVGOglEffectVignette.h"
#import "DVGOglEffectSketch.h"
#import "DVGEasing.h"
extern NSString* kCompEffectOptionExportSize;
extern NSString* kCompEffectOptionProgressBlock;
@interface DVGStackableVideoCompositor : NSObject <AVVideoCompositing>
+ (AVPlayerItem*)createPlayerItemWithAssets:(NSArray<AVAsset*>*)assets andEffectsStack:(NSArray<DVGOglEffectBase*>*)effstack options:(NSDictionary*)svcOptions;
+ (AVAssetExportSession*)createExportSessionWithAssets:(NSArray<AVAsset*>*)assets andEffectsStack:(NSArray<DVGOglEffectBase*>*)effstack options:(NSDictionary*)svcOptions;
+ (CVPixelBufferRef)renderSingleFrameWithInstruction:(DVGStackableCompositionInstruction*)currentInstruction trackFrameFabricator:(DVGStackableCompositionInstructionFrameBufferFabricator)ibf;
// Convinience methods for Typomatic, etc
+ (AVPlayerItem*)createPlayerItemWithAsset:(AVAsset*)asset andAnimationScene:(DVGKeyframedAnimationScene*)animscene;
+ (AVAssetExportSession*)createExportSessionWithAsset:(AVAsset*)asset andAnimationScene:(DVGKeyframedAnimationScene*)animscene;
+ (DVGStackableVideoCompositor*)getActiveVideoProcessingCompositor;
+ (UIImage*)renderSingleFrameWithImage:(UIImage*)frame andEffectsStack:(NSArray<DVGOglEffectBase*>*)effstack options:(NSDictionary*)svcOptions;
+ (void)enableCompositingGlobally:(BOOL)bEnable;
@end