image-settings
Vendor-neutral image / picture-adjustment cap — the per-camera config cap shared by reolink / hikvision / amcrest.
Vendor-neutral image / picture-adjustment cap — the per-camera config cap shared by reolink / hikvision / amcrest. Models the common ISP surface: the four picture sliders (brightness / contrast / saturation / sharpness), orientation (mirror / flip / rotate), white-balance, exposure and backlight-compensation modes.
NORMALIZATION: every slider is a normalized int 0–100. Vendors expose these natively as 0–100 or 0–255 (or other ranges); each provider maps its native range to/from this normalized 0–100 space so the cap surface (and the derived form) is identical across cameras. warmth (manual white-balance) is likewise normalized 0–100.
No hand-written settings-contribution methods — the framework derives the UI + save routing from this surface.
Sensor/image rotation, degrees clockwise.
At a glance
| Capability | image-settings |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera |
| Device settings | Yes: its settings section on the device page is built from this capability's methods. |
| Source | packages/types/src/capabilities/image-settings.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
getOptions | query | yes | default |
setSettings | mutation | yes | admin |
getOptions
query
Input
No fields besides deviceId.
Output
Per-camera availability descriptor — drives which controls the admin UI renders. Booleans as supportsX; numeric ranges as { min, max, step } (the normalized 0–100 range); enums as arrays of supported values (empty array → control hidden). A provider returns honest, camera-probed values — never hardcoded.
| Field | Type | Required | Description |
|---|---|---|---|
supportsBrightness | boolean | yes | |
brightness | { min: number; max: number; step: number } | no | |
supportsContrast | boolean | yes | |
contrast | { min: number; max: number; step: number } | no | |
supportsSaturation | boolean | yes | |
saturation | { min: number; max: number; step: number } | no | |
supportsSharpness | boolean | yes | |
sharpness | { min: number; max: number; step: number } | no | |
supportsMirror | boolean | yes | |
supportsFlip | boolean | yes | |
rotateOptions | ("0" | "90" | "180" | "270")[] | yes | Supported rotation values. Empty → rotation not configurable. |
whiteBalanceModes | ("auto" | "manual")[] | yes | Supported white-balance modes. Empty → white-balance not configurable. |
supportsWarmth | boolean | yes | |
warmth | { min: number; max: number; step: number } | no | Present when supportsWarmth — the normalized 0–100 range. |
exposureModes | ("auto" | "manual")[] | yes | Supported exposure modes. Empty → exposure not configurable. |
backlightModes | ("off" | "blc" | "wdr" | "hlc")[] | yes | Supported backlight modes. Empty → backlight-compensation not configurable. |
setSettings
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
settings | { brightness?: number; contrast?: number; saturation?: number; sharpness?: number; mirror?: boolean; flip?: boolean; rotate?: "0" | "90" | "180" | "270"; whiteBalance?: "auto" | "manual"; warmth?: number; exposureMode?: … | yes |
Output
Nothing.
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number | no | Normalized 0–100. |
contrast | number | no | Normalized 0–100. |
saturation | number | no | Normalized 0–100. |
sharpness | number | no | Normalized 0–100. |
mirror | boolean | no | |
flip | boolean | no | |
rotate | "0" | "90" | "180" | "270" | no | |
whiteBalance | "auto" | "manual" | no | |
warmth | number | no | Manual white-balance warmth, NORMALIZED 0–100. Meaningful only when whiteBalance === 'manual'. |
exposureMode | "auto" | "manual" | no | |
backlightMode | "off" | "blc" | "wdr" | "hlc" | no | |
lastFetchedAt | number | yes |