Dominevo
ReferenceDevice capabilities

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

Capabilityimage-settings
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera
Device settingsYes: its settings section on the device page is built from this capability's methods.
Sourcepackages/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.

MethodKindRequired of a providerAccess
getOptionsqueryyesdefault
setSettingsmutationyesadmin

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.

FieldTypeRequiredDescription
supportsBrightnessbooleanyes
brightness{ min: number; max: number; step: number }no
supportsContrastbooleanyes
contrast{ min: number; max: number; step: number }no
supportsSaturationbooleanyes
saturation{ min: number; max: number; step: number }no
supportsSharpnessbooleanyes
sharpness{ min: number; max: number; step: number }no
supportsMirrorbooleanyes
supportsFlipbooleanyes
rotateOptions("0" | "90" | "180" | "270")[]yesSupported rotation values. Empty → rotation not configurable.
whiteBalanceModes("auto" | "manual")[]yesSupported white-balance modes. Empty → white-balance not configurable.
supportsWarmthbooleanyes
warmth{ min: number; max: number; step: number }noPresent when supportsWarmth — the normalized 0–100 range.
exposureModes("auto" | "manual")[]yesSupported exposure modes. Empty → exposure not configurable.
backlightModes("off" | "blc" | "wdr" | "hlc")[]yesSupported backlight modes. Empty → backlight-compensation not configurable.

setSettings

mutation

Input

FieldTypeRequiredDescription
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.

FieldTypeRequiredDescription
brightnessnumbernoNormalized 0–100.
contrastnumbernoNormalized 0–100.
saturationnumbernoNormalized 0–100.
sharpnessnumbernoNormalized 0–100.
mirrorbooleanno
flipbooleanno
rotate"0" | "90" | "180" | "270"no
whiteBalance"auto" | "manual"no
warmthnumbernoManual white-balance warmth, NORMALIZED 0–100. Meaningful only when whiteBalance === 'manual'.
exposureMode"auto" | "manual"no
backlightMode"off" | "blc" | "wdr" | "hlc"no
lastFetchedAtnumberyes