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 "Frame.h"
|
2023-09-01 04:58:32 -06:00
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
|
|
#import <Foundation/Foundation.h>
|
2023-07-20 07:30:04 -06:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2023-09-01 04:58:32 -06:00
|
|
|
#import "FrameHostObject.h"
|
2023-07-20 07:30:04 -06:00
|
|
|
#import "WKTJsiWorklet.h"
|
|
|
|
#import <jsi/jsi.h>
|
|
|
|
#import <memory.h>
|
|
|
|
#endif
|
|
|
|
|
2024-01-16 12:02:03 -07:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2023-07-20 07:30:04 -06:00
|
|
|
@interface FrameProcessor : NSObject
|
|
|
|
|
2024-01-12 08:00:36 -07:00
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
|
2023-07-20 07:30:04 -06:00
|
|
|
#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
|
|
|
|
|
2024-01-16 12:02:03 -07:00
|
|
|
- (void)call:(Frame*)frame;
|
2023-07-20 07:30:04 -06:00
|
|
|
|
|
|
|
@end
|
2024-01-16 12:02:03 -07:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|