| 
									
										
										
										
											2021-06-09 10:57:05 +02: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 12:58:32 +02:00
										 |  |  | #import <Foundation/Foundation.h>
 | 
					
						
							| 
									
										
										
										
											2021-06-09 10:57:05 +02:00
										 |  |  | #import <UIKit/UIImage.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | NS_ASSUME_NONNULL_BEGIN | 
					
						
							| 
									
										
										
										
											2021-06-09 10:57:05 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | @interface Frame : NSObject | 
					
						
							| 
									
										
										
										
											2021-06-09 10:57:05 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | - (instancetype)initWithBuffer:(CMSampleBufferRef)buffer orientation:(UIImageOrientation)orientation; | 
					
						
							| 
									
										
										
										
											2024-01-12 16:00:36 +01:00
										 |  |  | - (instancetype)init NS_UNAVAILABLE; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | @property(nonatomic, readonly) CMSampleBufferRef buffer; | 
					
						
							| 
									
										
										
										
											2023-09-01 12:58:32 +02:00
										 |  |  | @property(nonatomic, readonly) UIImageOrientation orientation; | 
					
						
							| 
									
										
										
										
											2021-06-09 10:57:05 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | @property(nonatomic, readonly) NSString* pixelFormat; | 
					
						
							|  |  |  | @property(nonatomic, readonly) BOOL isMirrored; | 
					
						
							|  |  |  | @property(nonatomic, readonly) BOOL isValid; | 
					
						
							|  |  |  | @property(nonatomic, readonly) size_t width; | 
					
						
							|  |  |  | @property(nonatomic, readonly) size_t height; | 
					
						
							|  |  |  | @property(nonatomic, readonly) double timestamp; | 
					
						
							|  |  |  | @property(nonatomic, readonly) size_t bytesPerRow; | 
					
						
							|  |  |  | @property(nonatomic, readonly) size_t planesCount; | 
					
						
							| 
									
										
										
										
											2023-12-29 14:09:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-06-09 10:57:05 +02:00
										 |  |  | @end | 
					
						
							| 
									
										
										
										
											2024-01-16 20:02:03 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | NS_ASSUME_NONNULL_END |