773f278df8
* fix: Use property accessors on `Frame` * Format * Use `_Nonnull` * fix: Assume nonnull * Use `NS_ASSUME_NONNULL_BEGIN` more * Format C++
40 lines
829 B
Objective-C
40 lines
829 B
Objective-C
//
|
|
// FrameProcessorContext.h
|
|
// VisionCamera
|
|
//
|
|
// Created by Marc Rousavy on 13.07.23.
|
|
// Copyright © 2023 mrousavy. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#import "Frame.h"
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#ifdef __cplusplus
|
|
#import "FrameHostObject.h"
|
|
#import "WKTJsiWorklet.h"
|
|
#import <jsi/jsi.h>
|
|
#import <memory.h>
|
|
#endif
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface FrameProcessor : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
#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*)frame;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|