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