MijickCamera/Sources/Internal/Manager/CameraManager+Attributes.swift

41 lines
1.3 KiB
Swift
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// CameraManager+Attributes.swift of MijickCamera
//
// Created by Tomasz Kurylik. Sending from Kraków!
// - Mail: tomasz.kurylik@mijick.com
// - GitHub: https://github.com/FulcrumOne
// - Medium: https://medium.com/@mijick
//
// Copyright ©2024 Mijick. All rights reserved.
import AVKit
import UIKit
struct CameraManagerAttributes {
var capturedMedia: MCameraMedia? = nil
var error: MCameraError? = nil
var outputType: CameraOutputType = .photo
var cameraPosition: CameraPosition = .back
var isAudioSourceAvailable: Bool = true
var zoomFactor: CGFloat = 1.0
var flashMode: CameraFlashMode = .off
var lightMode: CameraLightMode = .off
var resolution: AVCaptureSession.Preset = .hd1920x1080
var frameRate: Int32 = 30
var cameraExposure: CameraExposure = .init()
var hdrMode: CameraHDRMode = .auto
var cameraFilters: [CIFilter] = []
var mirrorOutput: Bool = false
var isGridVisible: Bool = true
/// Color for screen flash on front camera (nil = use default white)
var screenFlashColor: UIColor? = nil
var deviceOrientation: AVCaptureVideoOrientation = .portrait
var frameOrientation: CGImagePropertyOrientation = .right
var orientationLocked: Bool = false
var userBlockedScreenRotation: Bool = false
}