24 lines
581 B
C
24 lines
581 B
C
|
//
|
||
|
// FrameProcessorPluginRegistry.h
|
||
|
// VisionCamera
|
||
|
//
|
||
|
// Created by Marc Rousavy on 24.03.21.
|
||
|
// Copyright © 2021 Facebook. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
#import <CoreMedia/CMSampleBuffer.h>
|
||
|
|
||
|
typedef id (^FrameProcessorPlugin) (CMSampleBufferRef buffer, NSArray<id>* arguments);
|
||
|
|
||
|
@interface FrameProcessorPluginRegistry : NSObject
|
||
|
|
||
|
+ (NSMutableDictionary<NSString*, FrameProcessorPlugin>*)frameProcessorPlugins;
|
||
|
+ (void) addFrameProcessorPlugin:(NSString*)name callback:(FrameProcessorPlugin)callback;
|
||
|
|
||
|
+ (void) markInvalid;
|
||
|
|
||
|
@end
|