44ed42d5d6
* feat: Replace `FrameProcessorRuntimeManager` with `VisionCameraProxy` (iOS) * Make `FrameProcessorPlugin` a constructable HostObject * fix: Fix `name` override * Simplify `useFrameProcessor * fix: Fix lint errors * Remove FrameProcessorPlugin::name * JSIUtils -> JSINSObjectConversion
34 lines
752 B
Objective-C
34 lines
752 B
Objective-C
//
|
|
// FrameProcessorContext.h
|
|
// VisionCamera
|
|
//
|
|
// Created by Marc Rousavy on 13.07.23.
|
|
// Copyright © 2023 mrousavy. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import "Frame.h"
|
|
|
|
#ifdef __cplusplus
|
|
#import "WKTJsiWorklet.h"
|
|
#import <jsi/jsi.h>
|
|
#import "FrameHostObject.h"
|
|
#import <memory.h>
|
|
#endif
|
|
|
|
@interface FrameProcessor : NSObject
|
|
|
|
#ifdef __cplusplus
|
|
- (instancetype _Nonnull)initWithWorklet:(std::shared_ptr<RNWorklet::JsiWorklet>)worklet
|
|
context:(std::shared_ptr<RNWorklet::JsiWorkletContext>)context;
|
|
|
|
- (void)callWithFrameHostObject:(std::shared_ptr<FrameHostObject>)frameHostObject;
|
|
#endif
|
|
|
|
- (void)call:(Frame* _Nonnull)frame;
|
|
|
|
@end
|