03b57a7d27
* Use clang-format * Create .clang-format * Update .clang-format * Update .clang-format * Update .clang-format * Only search in cpp dirs * Update clang-format.sh * Update .clang-format * Update .clang-format * Update .clang-format * Format C++ code! * Use version 16 * Update clang-format.sh * Remove Shaders.ts * fix: Lint Swift
29 lines
572 B
Objective-C
29 lines
572 B
Objective-C
//
|
|
// FrameHostObject.h
|
|
// VisionCamera
|
|
//
|
|
// Created by Marc Rousavy on 22.03.21.
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#import <CoreMedia/CMSampleBuffer.h>
|
|
#import <jsi/jsi.h>
|
|
|
|
#import "Frame.h"
|
|
|
|
using namespace facebook;
|
|
|
|
class JSI_EXPORT FrameHostObject : public jsi::HostObject {
|
|
public:
|
|
explicit FrameHostObject(Frame* frame) : frame(frame) {}
|
|
|
|
public:
|
|
jsi::Value get(jsi::Runtime&, const jsi::PropNameID& name) override;
|
|
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& rt) override;
|
|
|
|
public:
|
|
Frame* frame;
|
|
};
|