Skip to main content
TypesSetting value types

One type per setting: the values its getter returns and its setter takes, with the types the typed getters and setters are declared with. This is one of the 5 pages of the types reference, which names every type. A field ending in ? may be absent: Slate leaves out what a camera does not report, and never guesses it.

import type { Iso, ShutterSpeed } from '@darkgrade/slate'

Setting values

One type per setting: the values its getter returns and its setter takes. The settings reference lists every value of each.

Aperture

An aperture in Slate's one spelling: f/ and the f-number without trailing zeros (f/4, f/2.8).

type Aperture = `f/${number}` | 'Auto'

The value of the Aperture setting.

AspectRatio

The shape of the photo, or a crop of the sensor.

type AspectRatio = CodecValue<'aspectRatio'>

Every value (5)

3:2 16:9 4:3 1:1 3:2 (APS-C crop)

The value of the Aspect ratio setting.

AudioRecording

Movie sound, Canon only for now: On, Off or On (manual level).

type AudioRecording = CodecValue<'audioRecording'>

Every value (3)

Off On On (manual level)

The value of the Audio recording setting.

ColorTemperature

A colour temperature in kelvin.

type ColorTemperature = number

The value of the Colour temperature setting.

DetectionSubject

What subject detection looks for: People, Animals, Birds, ...

type DetectionSubject = NamedControlValue<'detectionSubject'>

Every value (9)

Auto People Animals Vehicles Planes Animals and birds Birds Insects Cars and trains

The value of the Detection subject setting.

DigitalZoom

How far zoom reaches past the optics: Off is optical only.

type DigitalZoom = NameValues<typeof videoValueNames>

Every value (6)

Hi-Res Zoom Off Clear Image Zoom Digital Zoom Digital Zoom 2x Digital Zoom 4x

The value of the Digital zoom setting.

DriveMode

A drive mode in Slate's one spelling ('Single', 'Continuous high', 'Self-timer 10 s', ...).

type DriveMode = CodecValue<'driveMode'>

Every value (191)

Single Continuous Timelapse Continuous high Continuous high+ Continuous high live Continuous low Continuous speed priority Continuous mid Continuous mid live Continuous low live Self-timer 5 s Self-timer 10 s Self-timer 2 s Continuous bracket 0.3 EV 2 frames + Continuous bracket 0.3 EV 2 frames - Continuous bracket 0.3 EV 3 frames Continuous bracket 0.3 EV 5 frames Continuous bracket 0.3 EV 7 frames Continuous bracket 0.3 EV 9 frames Continuous bracket 0.5 EV 2 frames + Continuous bracket 0.5 EV 2 frames - Continuous bracket 0.5 EV 3 frames Continuous bracket 0.5 EV 5 frames Continuous bracket 0.5 EV 7 frames Continuous bracket 0.5 EV 9 frames Continuous bracket 0.7 EV 2 frames + Continuous bracket 0.7 EV 2 frames - Continuous bracket 0.7 EV 3 frames Continuous bracket 0.7 EV 5 frames Continuous bracket 0.7 EV 7 frames Continuous bracket 0.7 EV 9 frames Continuous bracket 1.0 EV 2 frames + Continuous bracket 1.0 EV 2 frames - Continuous bracket 1.0 EV 3 frames Continuous bracket 1.0 EV 5 frames Continuous bracket 1.0 EV 7 frames Continuous bracket 1.0 EV 9 frames Continuous bracket 1.3 EV 2 frames + Continuous bracket 1.3 EV 2 frames - Continuous bracket 1.3 EV 3 frames Continuous bracket 1.3 EV 5 frames Continuous bracket 1.3 EV 7 frames Continuous bracket 1.5 EV 2 frames + Continuous bracket 1.5 EV 2 frames - Continuous bracket 1.5 EV 3 frames Continuous bracket 1.5 EV 5 frames Continuous bracket 1.5 EV 7 frames Continuous bracket 1.7 EV 2 frames + Continuous bracket 1.7 EV 2 frames - Continuous bracket 1.7 EV 3 frames Continuous bracket 1.7 EV 5 frames Continuous bracket 1.7 EV 7 frames Continuous bracket 2.0 EV 2 frames + Continuous bracket 2.0 EV 2 frames - Continuous bracket 2.0 EV 3 frames Continuous bracket 2.0 EV 5 frames Continuous bracket 2.0 EV 7 frames Continuous bracket 2.3 EV 2 frames + Continuous bracket 2.3 EV 2 frames - Continuous bracket 2.3 EV 3 frames Continuous bracket 2.3 EV 5 frames Continuous bracket 2.5 EV 2 frames + Continuous bracket 2.5 EV 2 frames - Continuous bracket 2.5 EV 3 frames Continuous bracket 2.5 EV 5 frames Continuous bracket 2.7 EV 2 frames + Continuous bracket 2.7 EV 2 frames - Continuous bracket 2.7 EV 3 frames Continuous bracket 2.7 EV 5 frames Continuous bracket 3.0 EV 2 frames + Continuous bracket 3.0 EV 2 frames - Continuous bracket 3.0 EV 3 frames Continuous bracket 3.0 EV 5 frames Single bracket 0.3 EV 2 frames + Single bracket 0.3 EV 2 frames - Single bracket 0.3 EV 3 frames Single bracket 0.3 EV 5 frames Single bracket 0.3 EV 7 frames Single bracket 0.3 EV 9 frames Single bracket 0.5 EV 2 frames + Single bracket 0.5 EV 2 frames - Single bracket 0.5 EV 3 frames Single bracket 0.5 EV 5 frames Single bracket 0.5 EV 7 frames Single bracket 0.5 EV 9 frames Single bracket 0.7 EV 2 frames + Single bracket 0.7 EV 2 frames - Single bracket 0.7 EV 3 frames Single bracket 0.7 EV 5 frames Single bracket 0.7 EV 7 frames Single bracket 0.7 EV 9 frames Single bracket 1.0 EV 2 frames + Single bracket 1.0 EV 2 frames - Single bracket 1.0 EV 3 frames Single bracket 1.0 EV 5 frames Single bracket 1.0 EV 7 frames Single bracket 1.0 EV 9 frames Single bracket 1.3 EV 2 frames + Single bracket 1.3 EV 2 frames - Single bracket 1.3 EV 3 frames Single bracket 1.3 EV 5 frames Single bracket 1.3 EV 7 frames Single bracket 1.5 EV 2 frames + Single bracket 1.5 EV 2 frames - Single bracket 1.5 EV 3 frames Single bracket 1.5 EV 5 frames Single bracket 1.5 EV 7 frames Single bracket 1.7 EV 2 frames + Single bracket 1.7 EV 2 frames - Single bracket 1.7 EV 3 frames Single bracket 1.7 EV 5 frames Single bracket 1.7 EV 7 frames Single bracket 2.0 EV 2 frames + Single bracket 2.0 EV 2 frames - Single bracket 2.0 EV 3 frames Single bracket 2.0 EV 5 frames Single bracket 2.0 EV 7 frames Single bracket 2.3 EV 2 frames + Single bracket 2.3 EV 2 frames - Single bracket 2.3 EV 3 frames Single bracket 2.3 EV 5 frames Single bracket 2.5 EV 2 frames + Single bracket 2.5 EV 2 frames - Single bracket 2.5 EV 3 frames Single bracket 2.5 EV 5 frames Single bracket 2.7 EV 2 frames + Single bracket 2.7 EV 2 frames - Single bracket 2.7 EV 3 frames Single bracket 2.7 EV 5 frames Single bracket 3.0 EV 2 frames + Single bracket 3.0 EV 2 frames - Single bracket 3.0 EV 3 frames Single bracket 3.0 EV 5 frames White balance bracket low White balance bracket high DRO bracket low DRO bracket high LPF bracket Remote commander Mirror up Self-portrait 1 person Self-portrait 2 people Continuous self-timer 3 frames Continuous self-timer 5 frames Continuous self-timer 3 frames 5 s Continuous self-timer 5 frames 5 s Continuous self-timer 3 frames 2 s Continuous self-timer 5 frames 2 s Spot burst low Spot burst mid Spot burst high Focus bracket Single soft Self-timer continuous Single silent Continuous soft Continuous silent high Continuous soft low Single bracket 2.5 EV Single bracket 1.5 EV Single bracket 1.3 EV Single bracket 0.7 EV Single bracket 0.5 EV Single bracket 0.3 EV Single bracket 1.0 EV Single bracket 1.7 EV Single bracket 2.0 EV Single bracket 2.3 EV Single bracket 2.7 EV Single bracket 3.0 EV Continuous bracket 2.5 EV Continuous bracket 1.5 EV Continuous bracket 1.3 EV Continuous bracket 0.7 EV Continuous bracket 0.5 EV Continuous bracket 0.3 EV Continuous bracket 1.0 EV Continuous bracket 1.7 EV Continuous bracket 2.0 EV Continuous bracket 2.3 EV Continuous bracket 2.7 EV Continuous bracket 3.0 EV Self-timer Quick setting Single bracket 1.5 EV 9 frames Single bracket 1.3 EV 9 frames Single bracket 1.7 EV 9 frames Continuous bracket 1.5 EV 9 frames Continuous bracket 1.3 EV 9 frames Continuous bracket 1.7 EV 9 frames

The value of the Drive mode setting.

ExposureCompensation

Exposure compensation in stops with one decimal and a sign: +0.7, -1.0, 0.0.

type ExposureCompensation = `+${number}` | `-${number}` | '0.0'

The value of the Exposure compensation setting.

ExposureMode

Who picks the exposure: you (Manual), the camera (Program, Auto), or the two of you (aperture or shutter priority).

type ExposureMode = (typeof exposureModes)[number]

Every value (7)

Bulb Auto Manual Aperture priority Shutter priority Program Flexible priority

The value of the Exposure mode setting.

ExposureModeAlias

The short forms setExposureMode also accepts: the mode-dial letters, and Canon's Av, Tv and Fv.

type ExposureModeAlias = keyof typeof exposureModeAliases

Every value (8)

M A Av S Tv P Fv B

EyeSelection

Which eye subject detection focuses on: Auto, Right or Left; Off where a body can turn eye detection off (Canon).

type EyeSelection = NamedControlValue<'eyeSelection'>

Every value (4)

Auto Off Right Left

The value of the Eye selection setting.

FlashMode

Whether and how the flash fires.

type FlashMode = CodecValue<'flashMode'>

Every value (8)

Auto Off Fill Red-eye auto Red-eye fill External sync Slow sync Rear sync

The value of the Flash setting.

FocusArea

Wide, Zone, Spot M, Tracking Spot M, ...; Sony's Flexible Spot is Spot, Lock-on AF is Tracking.

type FocusArea = NamedControlValue<'focusArea'>

Every value (57)

Spot Wide Zone Center Tracking Spot S Spot M Spot L Expanded Spot Spot XS Spot XL Spot Free Size 1 Spot Free Size 2 Spot Free Size 3 Tracking Wide Tracking Zone Tracking Center Tracking Spot S Tracking Spot M Tracking Spot L Tracking Expanded Spot Tracking Spot Tracking Spot XS Tracking Spot XL Tracking Spot Free Size 1 Tracking Spot Free Size 2 Tracking Spot Free Size 3 Quick Single Point Face Tracking Multi Point Expanded Point Cross Expanded Point Around Large Zone Horizontal Large Zone Vertical Flexible Zone 1 Flexible Zone 2 Flexible Zone 3 Spot Without Tracking Single Point Without Tracking Expanded Point Cross Without Tracking Expanded Point Around Without Tracking Dynamic S Auto Area 3D Tracking Dynamic M Dynamic L Pinpoint Wide S Wide L Wide C1 Wide C2 Dynamic 25 Dynamic 72 Dynamic 153 Group Dynamic 9

The value of the Focus area setting.

FocusMode

AF-S, AF-C or MF, and the other modes a body offers (AF-A, DMF, AF-F, ...). Canon One-Shot is AF-S.

type FocusMode = NamedControlValue<'focusMode'>

Every value (11)

AF-S AF-C AF-F DMF AF-A AF-D Preset focus MF MF reverse AF AF macro

The value of the Focus mode setting.

FrameRate

A frame rate: 24p, 23.98p, 60p, 50i.

type FrameRate = CodecValue<'frameRate'>

Every value (33)

120p 100p 60p 50p 30p 25p 24p 23.98p 29.97p 59.94p 19.98p 14.99p 12.50p 12.00p 11.99p 10.00p 9.99p 6.00p 5.99p 5.00p 4.995p 24.00p 119.88p 120i 100i 60i 50i 30i 25i 150p 179.82p 200p 239.76p

The value of the Frame rate setting.

Iso

An ISO sensitivity: ISO 800, Auto, and the Sony labels that are distinct settings rather than spellings (an extended sensitivity, the Multi Frame NR sensitivities). Auto/manual on a Sony body with a separate gain switch is the recorded exception: Slate flips that switch inside the write.

type Iso =
    | `ISO ${number}`
    | `ISO ${number} (extended)`
    | `Multi Frame NR ISO ${number}`
    | `Multi Frame NR High ISO ${number}`
    | 'Auto'

The value of the ISO setting.

JpegQuality

How much a JPEG is compressed: finer keeps more detail in a bigger file.

type JpegQuality = CodecValue<'jpegQuality'>

Every value (9)

Normal Standard Light Extra Fine Fine Basic Basic★ Normal★ Fine★

The value of the JPEG quality setting.

LiveViewQuality

The live-view picture's quality: High is sharper, Low lighter on the connection.

type LiveViewQuality = NameValues<typeof liveViewValueNames>

Every value (3)

Medium Low High

The value of the Live-view quality setting.

MeteringMode

Which part of the frame the camera measures light from.

type MeteringMode = (typeof meteringModes)[number]

Every value (7)

Multi Center-weighted Spot Large spot Partial Average Highlight

The value of the Metering setting.

PhotoFormat

A photo format, in each vendor codec's own spelling: 'RAW', 'RAW+JPEG', 'JPEG' on current Sony bodies; format and quality together ('RAW+JPEG Fine', 'HEIF Standard') on Sony bodies with one combined setting; Canon's format with its size ('RAW', 'cRAW+L', 'M').

type PhotoFormat =
    | Exclude<CodecValue<'photoFormat'>, CanonImageFormat>
    | CanonImageFormatLabel

Every value (440)

M S RAW RAW+JPEG JPEG JPEG Light JPEG Standard JPEG Fine JPEG Extra Fine RAW+JPEG Light RAW+JPEG Standard RAW+JPEG Fine RAW+JPEG Extra Fine HEIF Light HEIF Standard HEIF Fine HEIF Extra Fine RAW+HEIF Light RAW+HEIF Standard RAW+HEIF Fine RAW+HEIF Extra Fine L M1 M2 S1 S2 S3 HEIF RAW+HEIF mRAW sRAW cRAW cL cM cS cS1 cS2 cS3 cM1 cM2 M+M M+S M+RAW M+L M+M1 M+M2 M+S1 M+S2 M+S3 M+mRAW M+sRAW M+cRAW M+cL M+cM M+cS M+cS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2+cS3 cS2+cM1 cS2+cM2 cS3+M cS3+S cS3+RAW cS3+L cS3+M1 cS3+M2 cS3+S1 cS3+S2 cS3+S3 cS3+mRAW cS3+sRAW cS3+cRAW cS3+cL cS3+cM cS3+cS cS3+cS1 cS3+cS2 cS3+cS3 cS3+cM1 cS3+cM2 cM1+M cM1+S cM1+RAW cM1+L cM1+M1 cM1+M2 cM1+S1 cM1+S2 cM1+S3 cM1+mRAW cM1+sRAW cM1+cRAW cM1+cL cM1+cM cM1+cS cM1+cS1 cM1+cS2 cM1+cS3 cM1+cM1 cM1+cM2 cM2+M cM2+S cM2+RAW cM2+L cM2+M1 cM2+M2 cM2+S1 cM2+S2 cM2+S3 cM2+mRAW cM2+sRAW cM2+cRAW cM2+cL cM2+cM cM2+cS cM2+cS1 cM2+cS2 cM2+cS3 cM2+cM1 cM2+cM2

The value of the Photo format setting.

PhotoSize

A photo size: Sony's codec names ('Large', 'Medium', 'Small'), or the pixel dimensions a standard body lists. The standard ImageSize property is a free-form string, which collapses the codec union to string; Sony's enumerated size names come from its own codec instead.

type PhotoSize =
    | Exclude<CodecValue<'photoSize'>, string>
    | CodecType<(typeof sony.SonyImageSize)['codec']>
    | `${number}x${number}`

Every value (3, plus patterns)

Patterns: <number>x<number>

Large Medium Small

The value of the Photo size setting.

PhotoVideoMode

Whether the camera is set up to take photos or record video. One view of each vendor's own switch: Canon's movie select switch, Nikon's LiveViewSelector, and on Sony the photo and movie halves of the exposure program (Manual and Movie Manual).

type PhotoVideoMode = 'photo' | 'video'

The value of the Photo / video setting.

PictureProfile

A Sony Picture Profile ('Off', 'PP1' to 'PP11', 'PP LUT 1' to 'PP LUT 4').

type PictureProfile = CodecValue<'pictureProfile'>

Every value (19)

N-Log HLG Off PP1 PP2 PP3 PP4 PP5 PP6 PP7 PP8 PP9 PP10 PP11 PP LUT 1 PP LUT 2 PP LUT 3 PP LUT 4 SDR

The value of the Picture profile setting.

PictureStyle

A look in Slate's one spelling: Canon Picture Style, Nikon Picture Control and Sony Creative Look or Creative Style ('Standard', 'Portrait', 'Monochrome', ...).

type PictureStyle = CodecValue<'pictureStyle'>

Every value (71)

Auto Custom 1 Custom 2 Custom 3 Standard Portrait Neutral Vivid Vivid 2 Film Instant Soft highkey Monochrome Sepia Film 2 Film 3 Custom look 1 Custom look 2 Custom look 3 Custom look 4 Custom look 5 Custom look 6 Landscape Sunset Light Clear Deep Night view Autumn leaves Creative box 1 Creative box 2 Creative box 3 Creative box 4 Creative box 5 Creative box 6 Custom 4 Custom 5 Faithful Fine detail User defined 1 User defined 2 User defined 3 PC 1 PC 2 PC 3 Same as photo Flat Rich tone portrait Dream Morning Pop Sunday Somber Drama Silence Bleach Melancholic Pure Denim Toy Blue Red Pink Charcoal Graphite Binary Carbon Custom 6 Custom 7 Custom 8 Custom 9

The value of the Look setting.

RawCompression

A NEF compression the body names; a raw number it reports without a name is not a value to write.

type RawCompression =
    Exclude<CodecValue<'rawCompression'>, number>

Every value (4)

Compressed Lossless High efficiency★ High efficiency

The value of the RAW compression setting.

ShutterSpeed

A shutter speed in Slate's one spelling, whatever the vendor calls it: '1/250', '30"', '0.3"', '180°', 'Bulb'. Each vendor codec's label (Sony BULB, Canon 30, a standard ExposureTime tick count) is read through parseExposureTime and written back in this form.

type ShutterSpeed =
    | `${number}/${number}`
    | `${number}"`
    | `${number}°`
    | 'Bulb'
    | 'Time'
    | 'Flash sync'
    | 'Auto'

The value of the Shutter speed setting.

SubjectDetection

Whether the camera looks for faces, eyes and other subjects to focus on.

type SubjectDetection = NamedControlValue<'subjectDetection'>

Every value (2)

Off On

The value of the Subject detection setting.

ContinuousAutofocus

Whether the camera keeps focusing before a half-press (Canon Continuous AF): On or Off.

type ContinuousAutofocus =
    NamedControlValue<'continuousAutofocus'>

Every value (2)

Off On

The value of the Continuous AF setting.

VideoFormat

A video format: Sony's codec names (XAVC S 4K), Nikon's file type (H.265 10-bit (MOV)) or Canon's complete movie record. A raw number a body reports without a name is not a value to write.

type VideoFormat =
    | Exclude<
          CodecValue<'videoFormat'>,
          CanonMovieFormat | CanonMovieRecordValue | number
      >
    | CanonMovieRecord

Every value (15, plus patterns)

Patterns: <text> fps · MOV · unknown <text> fps · MOV · ALL-I <text> fps · MOV · IPB (Standard) <text> fps · MOV · IPB (Light) <text> fps · MP4 · unknown <text> fps · MP4 · ALL-I <text> fps · MP4 · IPB (Standard) <text> fps · MP4 · IPB (Light) <text> fps · unknown · unknown <text> fps · unknown · ALL-I <text> fps · unknown · IPB (Standard) <text> fps · unknown · IPB (Light)

AVCHD XAVC S 4K XAVC S HD XAVC HS 8K XAVC HS 4K XAVC S 4K (modern) XAVC S HD (modern) XAVC S-I 4K XAVC S-I HD H.264 8-bit (MP4) H.265 8-bit (MOV) H.265 10-bit (MOV) N-RAW 12-bit (NEV) ProRes 422 HQ 10-bit (MOV) ProRes RAW HQ 12-bit (MOV)

The value of the Video format setting.

VideoQuality

A video quality (bit rate, sampling and depth), as the vendor codecs name it: 150M 4:2:0 10-bit.

type VideoQuality = CodecValue<'videoQuality'>

Every value (94)

60p 50M · XAVC S 30p 50M · XAVC S 24p 50M · XAVC S 50p 50M · XAVC S 25p 50M · XAVC S 60i 24M (FX) · AVCHD 50i 24M (FX) · AVCHD 60i 17M (FH) · AVCHD 50i 17M (FH) · AVCHD 60p 28M (PS) · AVCHD 50p 28M (PS) · AVCHD 24p 24M (FX) · AVCHD 25p 24M (FX) · AVCHD 24p 17M (FH) · AVCHD 25p 17M (FH) · AVCHD 720 120p 50M · XAVC S 720 100p 50M · XAVC S 1080 30p 16M · MP4 1080 25p 16M · MP4 720 30p 6M · MP4 720 25p 6M · MP4 1080 60p 28M · MP4 1080 50p 28M · MP4 60p 25M · XAVC S HD 50p 25M · XAVC S HD 30p 16M · XAVC S HD 25p 16M · XAVC S HD 1080 120p 100M · XAVC S HD 1080 100p 100M · XAVC S HD 1080 120p 60M · XAVC S HD 1080 100p 60M · XAVC S HD 30p 100M · XAVC S 4K 25p 100M · XAVC S 4K 24p 100M · XAVC S 4K 30p 60M · XAVC S 4K 25p 60M · XAVC S 4K 24p 60M · XAVC S 4K 600M 4:2:2 10-bit 500M 4:2:2 10-bit 400M 4:2:0 10-bit 300M 4:2:2 10-bit 280M 4:2:2 10-bit 250M 4:2:2 10-bit 240M 4:2:2 10-bit 222M 4:2:2 10-bit 200M 4:2:2 10-bit 200M 4:2:0 10-bit 200M 4:2:0 8-bit 185M 4:2:2 10-bit 150M 4:2:0 10-bit 150M 4:2:0 8-bit 140M 4:2:2 10-bit 111M 4:2:2 10-bit 100M 4:2:2 10-bit 100M 4:2:0 10-bit 100M 4:2:0 8-bit 93M 4:2:2 10-bit 89M 4:2:2 10-bit 75M 4:2:0 10-bit 60M 4:2:0 8-bit 50M 4:2:2 10-bit 50M 4:2:0 10-bit 50M 4:2:0 8-bit 45M 4:2:0 10-bit 30M 4:2:0 10-bit 25M 4:2:0 8-bit 16M 4:2:0 8-bit 520M 4:2:2 10-bit 260M 4:2:2 10-bit 1920x1080 1280x720 640x480 4096x2160 3840x2160 2048x1080 8192x4320 7680x4320 1920x1080 (option 16) 1280x720 (option 16) 640x480 (option 16) 4096x2160 (option 16) 3840x2160 (option 16) 2048x1080 (option 16) 8192x4320 (option 16) 7680x4320 (option 16) 3984x2240 4032x2268 4128x2322 5376x3024 5392x3032 6048x3402 8256x4644 1920x1080 4x slow motion 1920x1080 5x slow motion

The value of the Video quality setting.

WhiteBalance

A white balance in Slate's one spelling, whatever the vendor calls it: Nikon's "Sunny" is 'Daylight', Canon's kebab-case codes are 'Auto', 'Shade', 'Color Temperature' and so on. The names come from the vendor codecs, one table per vendor and mode.

type WhiteBalance = CodecValue<'whiteBalance'>

Every value (28)

Flash Auto Custom One-push Auto Daylight Fluorescent Tungsten Shade Cloudy Fluorescent Warm White Fluorescent Cool White Fluorescent Day White Fluorescent Daylight Underwater Auto Color Temperature Custom 1 Custom 2 Custom 3 PC Custom 1 PC Custom 2 PC Custom 3 Custom 4 Custom 5 PC Custom 4 PC Custom 5 Auto White Priority Same as photo Natural Light Auto

The value of the White balance setting.

Typed settings

The types the typed getters and setters are declared with.

SettingInput

What the typed setter of a setting accepts.

type SettingInput<Id extends TypedSettingId> =
    TypedSettingTypes[Id]['input']

SettingValue

What the typed getter of a setting returns, and its setter resolves to.

type SettingValue<Id extends TypedSettingId> =
    TypedSettingTypes[Id]['value']

TypedSettingId

The settings with a typed getter and setter. Each is a canonical control id.

type TypedSettingId = keyof TypedSettingTypes & CameraControlId

Every value (33)

shutterSpeed aperture iso exposureMode exposureCompensation meteringMode photoVideoMode driveMode whiteBalance colorTemperature pictureStyle pictureProfile focusMode focusArea subjectDetection continuousAutofocus imageStabilization audioLevel shutterType detectionSubject eyeSelection photoFormat photoSize aspectRatio jpegQuality rawCompression flashMode videoFormat videoQuality frameRate audioRecording digitalZoom liveViewQuality

Uses CameraControlId.

TypedSettingMethods

One getter and one setter per typed setting, declared once over setControl: setShutterSpeed is setControl('shutterSpeed', …) and resolves to the value the camera read back; the getter reads the current value.

type TypedSettingMethods = {
    [Id in TypedSettingId as SettingGetterName<Id>]:
        () => Promise<SettingValue<Id>>
} & {
    [Id in TypedSettingId as SettingSetterName<Id>]: (
        value: SettingInput<Id>,
        ...options: SettingOptions<Id>
    ) => Promise<SettingValue<Id>>
}

Uses TypedSettingId, SettingValue, SettingInput.

Exposure time

A shutter speed as a duration or an angle, whatever its spelling.

ExposureTime

A shutter speed as a duration in seconds, an angle in degrees, or a named mode. Exposure duration is independent of the vendor's wire encoding or display spelling.

type ExposureTime =
    | { kind: 'duration'; seconds: number }
    | { kind: 'angle'; degrees: number }
    | { kind: 'bulb' | 'time' | 'flash-sync' | 'auto' }

ExposureTimeInput

An ExposureTime, or text that parseExposureTime reads, such as 1/250, 0.5" or 180°.

type ExposureTimeInput = ExposureTime | string

ExposureContext

The frame rate that converting between a shutter angle and a duration needs.

interface ExposureContext {
    framesPerSecond: number
}
Show ExposureContext fields
framesPerSecondnumber

Actual capture rate, including fractional rates such as 24000/1001. Never inferred from a label.

Other types

⌘I