SPB Git

Repository Public License

camera-capability-matrix.md 12.4 KB

# Camera Capability Matrix

What ORIX Camera can ask of a camera, how it finds out at run time whether the camera can do it, and what happens when it cannot.

# 1. Status of this document

Tested device: none. No iPhone or iPad was connected to the development Mac. The audit found Xcode 27.2, the iOS 27.2 SDK, iOS 26.5 simulators and no physical device. The Simulator has no camera.

So this matrix cannot contain a "supported on tested device" column with real entries. What it contains instead:

  • the class each capability belongs to, from Apple's public API contract (iOS 27.2 SDK headers) and general knowledge of the iPhone line;
  • the exact run-time check the app performs, read from DeviceCameraBackend.resolveCapabilities and the capture code;
  • the behaviour when the capability is absent.

The app never decides from a model name. Every entry in the "detected by" column is an API call made on the running device, so the matrix that matters is the one the app computes itself: Settings → Cameras on this device and Selected camera list it for the device in hand. Filling the empty column is the first task of device validation.

Classes used (from the project brief):

Code Class
T Supported on tested device
S Supported on some devices
F Supported only in certain capture formats
C Supported only in certain camera configurations
U Unsupported by public APIs
R Requires additional testing

Every implemented capability is also R: none has run on hardware.

# 2. Photo capture

Capability Class Tested device Detected at run time by When absent
Processed photo, HEIC S, R none photoOutput.availablePhotoCodecTypes.contains(.hevc) falls back to JPEG; the saved extension follows the codec really used
Processed photo, JPEG S, R none always requested with AVVideoCodecType.jpeg —
Largest still size (12 MP, 48 MP…) F, R none activeFormat.supportedMaxPhotoDimensions, largest non-deferred entry set as photoOutput.maxPhotoDimensions the largest available size is used
24 MP stills U (in this design) none excluded: the SDK states 24 MP "is only serviced as 24MP via deferred photo delivery", which the app does not use not offered
"Largest photo size" off F, R none requests 4032 × 3024 if that size is in the format's list request ignored, output maximum used
Bayer RAW (DNG) C, R none availableRawPhotoPixelFormatTypes contains a format with isBayerRAWPixelFormat == true RAW and RAW+HEIC disabled with "This camera does not offer Bayer RAW in the current configuration."
Apple ProRAW S, C, R none isAppleProRAWSupported, then isAppleProRAWEnabled = true, then a format with isAppleProRAWPixelFormat == true ProRAW disabled with "Apple ProRAW is not offered by this iPhone or this lens."
Flash S, C, R none device.hasFlash && photoOutput.supportedFlashModes.contains(.on) flash button not shown; a stored flash setting is reset to off
Exposure bracket F, R none photoOutput.maxBracketedCapturePhotoCount (2 or more required) Bracket Fusion shows "Exposure bracketing is not offered by this camera."
Lens stabilisation during brackets S, R none isLensStabilizationDuringBracketedCaptureSupported bracket captured without it
Quality prioritisation S, R none maxPhotoQualityPrioritization = .quality; .speed for bursts and Bayer RAW —
Burst R none no dedicated API: repeated capturePhoto with speed prioritisation, up to 30 —
Live Photos, depth, portrait mattes, semantic segmentation not implemented — — —

# 3. Exposure, focus, white balance, zoom

Capability Class Tested device Detected by When absent
Manual ISO and shutter S, R none isExposureModeSupported(.custom); ranges from activeFormat.minISO/maxISO, minExposureDuration/maxExposureDuration ISO and shutter chips disabled: "This camera does not accept manual exposure."
Exposure compensation S, R none minExposureTargetBias…maxExposureTargetBias (dial limited to ±4) —
Exposure lock S, R none isExposureModeSupported(.locked) AE-L does nothing
Metered offset readout S, R none exposureTargetOffset reads 0
Manual focus C, R none isLockingFocusWithCustomLensPositionSupported focus chip disabled: "This lens has a fixed focus."
Tap to focus C, R none isFocusPointOfInterestSupported and .autoFocus supported tap sets exposure only, or nothing
Tap to expose C, R none isExposurePointOfInterestSupported; skipped in manual exposure —
Smooth autofocus (video) S, R none isSmoothAutoFocusSupported default autofocus
White balance lock with gains S, R none isLockingWhiteBalanceWithCustomDeviceGainsSupported; maxWhiteBalanceGain WB chip disabled: "This camera does not accept locked white-balance gains."
Temperature and tint S, R none deviceWhiteBalanceGains(for:), gains clamped to 1…maxWhiteBalanceGain keeping ratios —
Digital zoom S, R none minAvailableVideoZoomFactor…maxAvailableVideoZoomFactor, capped at 10× chip disabled when the range is 1…1
Optical zoom — none lens selection: each physical camera is a separate device only the lenses that exist are listed
Lens position as a distance U — the public API gives a unitless 0…1 position shown as a position, labelled "Not a distance"
Aperture control U — iPhone apertures are fixed; lensAperture is read-only shown in Analysis and Settings only

# 4. Lenses

Capability Class Tested device Detected by
Back ultra-wide, wide, telephoto S, R none DiscoverySession for .builtInUltraWideCamera, .builtInWideAngleCamera, .builtInTelephotoCamera, position .back
Front wide, front ultra-wide S, R none DiscoverySession, position .front
Lens label (0.5×, 1×, 3×, 5×…) R none computed: tan(wideFOV/2) / tan(lensFOV/2) from activeFormat.videoFieldOfView
35 mm-equivalent focal length estimate none computed from the field of view: 18 / tan(FOV/2); labelled an estimate
Virtual multi-camera devices (dual, triple) not used — physical cameras are driven individually, which is also what keeps Bayer RAW available
External cameras not handled — —

# 5. Video

Capability Class Tested device Detected by When absent
720p, 1080p, 4K F, R none enumeration of the lens's formats with pixel format 8-bit bi-planar full range resolution not listed
24, 25, 30, 50, 60 fps F, R none videoSupportedFrameRateRanges of those formats rate not listed
100, 120, 240 fps F, C, R none same rate not listed
H.264, HEVC S, R none VideoToolbox encoder list (VTCopyVideoEncoderList) codec disabled
Apple ProRes 422 S, R none VideoToolbox encoder list contains ProRes 422 codec disabled: "Apple ProRes encoding is not available on this device."
Stabilisation F, R none isVideoStabilizationModeSupported(.standard) on a matching format; badge from activeVideoStabilizationMode row reads "Not offered by this camera in this format"
Torch S, C, R none hasTorch, isTorchModeSupported button not shown
Microphone S, R none AVCaptureDevice.default(for: .audio) and authorisation video is recorded without sound
System pressure S, R none KVO on systemPressureState no heat badge
10-bit HDR (HLG) not implemented; detected only none a format with 10-bit bi-planar video-range pixel format exists Settings and the format sheet say it is offered but not recorded
Apple Log not implemented; detected only none a format whose supportedColorSpaces contains .appleLog same
ProRes RAW, Cinematic mode, spatial video, Dolby Vision metadata not implemented — — —

# 6. Session and system

Capability Class Tested device Detected by Behaviour
Horizon-level rotation S, R none AVCaptureDevice.RotationCoordinator (preview and capture angles, KVO) preview rotated in the shader; photos tagged through the photo connection; movies through the track transform
Interruptions S, R none wasInterruptedNotification with reason recording stopped and saved; a card explains the reason
Runtime errors S, R none runtimeErrorNotification toast; session restarted after a media-services reset
Multitasking camera access (iPad) not used — the app requires full screen —
Background capture U — iOS stops the camera in the background the session is suspended; a running recording is finished and saved first

# 7. AVFoundation rules applied

Read in the iOS 27.2 SDK headers (AVCapturePhotoOutput.h, AVCaptureSession.h, AVCaptureDevice.h) before the device backend was written.

Rule in the header What the code does
Bayer RAW: "photoQualityPrioritization must be set to AVCapturePhotoQualityPrioritizationSpeed" makeSettings uses .speed whenever the RAW format is Bayer
Bayer RAW: the device's videoZoomFactor "must … be 1.0. Ensure no zoom is applied before requesting a RAW capture" capturePhoto resets zoom to 1 before a RAW or RAW+HEIC capture
ProRAW formats appear in availableRawPhotoPixelFormatTypes only after appleProRAWEnabled is set, which requires appleProRAWSupported enabled during configuration when supported; formats told apart with isBayerRAWPixelFormat / isAppleProRAWPixelFormat
maxPhotoDimensions must be one of the active format's supportedMaxPhotoDimensions taken from that list
"The maxPhotoDimensions setting for 24MP (5712, 4284) … is only serviced as 24MP via deferred photo delivery" 5712 × 4284 is filtered out
maxBracketedCapturePhotoCount "may return a value of 0"; exceeding it throws the bracket is truncated to the limit; fewer than 2 disables the feature
videoRotationAngle on a video data output physically rotates buffers and "requires a lengthy configuration"; clients rotating video data themselves should set it to 0 and account for the default (180° on the front camera of 2024 iPads) the data connection is set to 0 explicitly; frames stay in sensor orientation
Rotation coordinator "will return 0 degrees of rotation from videoRotationAngleForHorizonLevelPreview if a layer was not specified" the Metal view's layer is given to the coordinator; before it exists, the capture angle is used as a fallback
setVideoRotationAngle: throws for unsupported values isVideoRotationAngleSupported is checked first
Tap-to-focus points are in the unrotated sensor frame, origin top left CaptureGeometry.sensorPoint converts from the displayed picture; tested against rendered pixels

# 8. Simulator virtual camera

VirtualCameraBackend is compiled only for the Simulator. It declares these capabilities so the interface and the pipeline can be exercised; they describe the test double, not any iPhone.

Item Value
Lenses ultra-wide 0.5× (108°, f/2.2), wide 1× (73.7°, f/1.78), telephoto 3× (26.8°, f/2.8), front 1× (80°, f/1.9)
ISO 32–6400
Shutter 1/8000 s – 1 s
Exposure compensation ±4 EV
Manual focus back lenses only; the scene is sharp at lens position 0.72
White balance lock supported, maximum gain 4
Zoom 1–10×
Bayer RAW, ProRAW no ("RAW needs a real sensor; the simulator has none.")
Flash, torch no
Bracket 3 frames, rendered at 2016 × 1512
Stills 4032 × 3024 HEIC rendered from the scene, EXIF make "ORIX", model "Simulator virtual camera"
Video 4K 30/24, 1080p 60/30/24, 720p 30 (4K is rendered at 1080p, frame rate capped at 60)
Codecs whatever VideoToolbox reports on the host Mac
Marking isSynthetic = true; the monitor shows "SIMULATOR · TEST SCENE"; library items carry a synthetic flag

# 9. To do on the first device

  1. Open Settings → Cameras on this device and copy the detected capabilities here, per lens.
  2. Replace "none" in the tested-device columns with the model and iOS version, and the class T where confirmed.
  3. Note every difference between this document and what the device reports.
Files main
Menu

Theme