34 lines
752 B
C
34 lines
752 B
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::JsiWorkletContext>)context
|
||
|
worklet:(std::shared_ptr<RNWorklet::JsiWorklet>)worklet;
|
||
|
|
||
|
- (void)callWithFrameHostObject:(std::shared_ptr<FrameHostObject>)frameHostObject;
|
||
|
#endif
|
||
|
|
||
|
- (void)call:(Frame* _Nonnull)frame;
|
||
|
|
||
|
@end
|