mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
e284a79b48
Marks old AVFoundation capture source as deprecated.
25 lines
1.2 KiB
Objective-C
25 lines
1.2 KiB
Objective-C
//
|
|
// OBSAVCapturePresetInfo.h
|
|
// mac-avcapture
|
|
//
|
|
// Created by Patrick Heyer on 2023-03-07.
|
|
//
|
|
|
|
@import Foundation;
|
|
@import AVFoundation;
|
|
|
|
/// Stores format and framerate of a [AVCaptureSessionPreset](https://developer.apple.com/documentation/avfoundation/avcapturesessionpreset?language=objc).
|
|
///
|
|
/// Changing the [activeFormat](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc) of a device takes precedence over the configuration contained in a [AVCaptureSessionPreset](https://developer.apple.com/documentation/avfoundation/avcapturesessionpreset?language=objc). To restore a preset's configuration after changing to a different format, the values of a configured preset are stored in this object and restored when the source is switched back to a preset-based configuration.
|
|
@interface OBSAVCapturePresetInfo : NSObject
|
|
|
|
/// [activeFormat](https://developer.apple.com/documentation/avfoundation/avcapturedevice/1389221-activeformat?language=objc) used by the preset
|
|
@property (nonatomic) AVCaptureDeviceFormat *activeFormat;
|
|
|
|
/// Minimum framerate supported by the preset
|
|
@property (nonatomic) CMTime minFrameRate;
|
|
|
|
/// Maximum framerate supported by the preset
|
|
@property (nonatomic) CMTime maxFrameRate;
|
|
@end
|