2021-06-09 02:57:05 -06:00
|
|
|
//
|
|
|
|
// Frame.m
|
|
|
|
// VisionCamera
|
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 08.06.21.
|
|
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "Frame.h"
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <CoreMedia/CMSampleBuffer.h>
|
|
|
|
|
|
|
|
@implementation Frame {
|
2023-07-20 07:30:04 -06:00
|
|
|
CMSampleBufferRef _Nonnull buffer;
|
2021-06-09 02:57:05 -06:00
|
|
|
UIImageOrientation orientation;
|
|
|
|
}
|
|
|
|
|
2023-07-20 07:30:04 -06:00
|
|
|
- (instancetype) initWithBuffer:(CMSampleBufferRef _Nonnull)buffer orientation:(UIImageOrientation)orientation {
|
2021-06-09 02:57:05 -06:00
|
|
|
self = [super init];
|
|
|
|
if (self) {
|
|
|
|
_buffer = buffer;
|
|
|
|
_orientation = orientation;
|
|
|
|
}
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
@synthesize buffer = _buffer;
|
|
|
|
@synthesize orientation = _orientation;
|
|
|
|
|
|
|
|
@end
|