2023-07-20 07:30:04 -06:00
|
|
|
//
|
|
|
|
// 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
|
2023-07-21 09:52:30 -06:00
|
|
|
- (instancetype _Nonnull)initWithWorklet:(std::shared_ptr<RNWorklet::JsiWorklet>)worklet
|
|
|
|
context:(std::shared_ptr<RNWorklet::JsiWorkletContext>)context;
|
2023-07-20 07:30:04 -06:00
|
|
|
|
|
|
|
- (void)callWithFrameHostObject:(std::shared_ptr<FrameHostObject>)frameHostObject;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
- (void)call:(Frame* _Nonnull)frame;
|
|
|
|
|
|
|
|
@end
|