FreeRDP
Loading...
Searching...
No Matches
modes.h
1
18#ifndef FREERDP_RDPECAM_AVFOUNDATION_MODES_H
19#define FREERDP_RDPECAM_AVFOUNDATION_MODES_H
20
21#import <AVFoundation/AVFoundation.h>
22#include "../camera.h"
23
24/* An immutable snapshot: descriptor order and native selections stay stable until
25 * the camera is enumerated again, including across idle capture restarts. */
26FREERDP_LOCAL
27@interface FreeRDPCameraAVFoundationModes : NSObject
28- (instancetype)initWithFormats:(NSArray<AVCaptureDeviceFormat *> *)formats;
29- (size_t)copyMediaTypes:(CAM_MEDIA_TYPE_DESCRIPTION *)mediaTypes capacity:(size_t)capacity;
30- (AVCaptureDeviceFormat *)formatForMediaType:(const CAM_MEDIA_TYPE_DESCRIPTION *)mediaType
31 frameDuration:(CMTime *)frameDuration;
32@end
33
34#endif