2021-06-09 02:57:05 -06:00
|
|
|
//
|
|
|
|
// Frame.h
|
|
|
|
// VisionCamera
|
|
|
|
//
|
|
|
|
// Created by Marc Rousavy on 15.03.21.
|
|
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#import <CoreMedia/CMSampleBuffer.h>
|
2023-09-01 04:58:32 -06:00
|
|
|
#import <Foundation/Foundation.h>
|
2021-06-09 02:57:05 -06:00
|
|
|
#import <UIKit/UIImage.h>
|
|
|
|
|
|
|
|
@interface Frame : NSObject
|
|
|
|
|
2023-09-01 04:58:32 -06:00
|
|
|
- (instancetype _Nonnull)initWithBuffer:(CMSampleBufferRef _Nonnull)buffer
|
|
|
|
orientation:(UIImageOrientation)orientation;
|
2021-06-09 02:57:05 -06:00
|
|
|
|
2023-09-01 04:58:32 -06:00
|
|
|
@property(nonatomic, readonly) CMSampleBufferRef _Nonnull buffer;
|
|
|
|
@property(nonatomic, readonly) UIImageOrientation orientation;
|
2021-06-09 02:57:05 -06:00
|
|
|
|
|
|
|
@end
|