2023-07-31 11:52:10 +02:00
|
|
|
//
|
|
|
|
// FrameProcessorPlugin.m
|
|
|
|
// VisionCamera
|
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 31.07.23.
|
|
|
|
// Copyright © 2023 mrousavy. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "FrameProcessorPlugin.h"
|
|
|
|
|
|
|
|
// Base implementation (empty)
|
|
|
|
@implementation FrameProcessorPlugin
|
|
|
|
|
2024-01-12 16:00:36 +01:00
|
|
|
- (instancetype)initWithProxy:(VisionCameraProxyHolder* _Nonnull)proxy withOptions:(NSDictionary* _Nullable)options {
|
2023-10-19 10:35:14 +02:00
|
|
|
self = [super init];
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2023-07-31 11:52:10 +02:00
|
|
|
- (id _Nullable)callback:(Frame* _Nonnull)frame withArguments:(NSDictionary* _Nullable)arguments {
|
2023-09-01 19:39:25 +02:00
|
|
|
[NSException raise:NSInternalInconsistencyException
|
|
|
|
format:@"Frame Processor Plugin does not override the `callback(frame:withArguments:)` method!"];
|
2023-07-31 11:52:10 +02:00
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|