4038db2e28
* batch * Init Frame as box * Use ObjC syntax * Fix access * Revert "Fix access" This reverts commit 7de09e52739d4c2b53f485d5ed696f1665fa5737. * Revert "Use ObjC syntax" This reverts commit e33f05ae8451cc4ee24af41d14dc76a57c157554. * Revert "Init Frame as box" This reverts commit 5adafb6109bfbf7fddb8ddc4af7d306b7b76b476. * use holder * convert buffer <-> jsi object * add docs * add more docs * Update JSIUtils.mm * Update FRAME_PROCESSORS_CREATE_OVERVIEW.mdx * Update CameraView+RecordVideo.swift
26 lines
471 B
Objective-C
26 lines
471 B
Objective-C
//
|
|
// CMSampleBufferRefHolder.m
|
|
// VisionCamera
|
|
//
|
|
// Created by Marc Rousavy on 08.06.21.
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
|
//
|
|
|
|
#import "CMSampleBufferRefHolder.h"
|
|
#import <Foundation/Foundation.h>
|
|
#import <CoreMedia/CMSampleBuffer.h>
|
|
|
|
@implementation CMSampleBufferRefHolder
|
|
|
|
- (instancetype) initWithBuffer:(CMSampleBufferRef)buffer {
|
|
self = [super init];
|
|
if (self) {
|
|
self.buffer = buffer;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@synthesize buffer;
|
|
|
|
@end
|