Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct ColorDepth

sealed struct ColorDepth
Display hardware may use different video quantization ranges, which are important for ensuring that video signals are accurately represented and displayed. These ranges deal with how color and brightness levels are encoded and transmitted. The quantization range can also be affected by the bit depth of the video signal. Common bit depths include 8-bit, 10-bit, and 12-bit, with higher bit depths allowing for finer gradations in color and brightness. Below is all possible color depths in a display. System would always try to choose the highest supported color depth not exceeding the requested one i.e it may fall back to lower ones if necessary to keep the system functional. COLORDEPTH_X means, system would try to use X if X is supported otherwise choose a lower color depth but will never choose one above X. Please see [IDisplayManager#setColorDepth].

Fields

Constants

COLORDEPTH_UNKNOWN

ColorDepth = {1}
Unknown color depth type

COLORDEPTH_AUTO

ColorDepth = {2}
Color depth type is automatic i.e display server is free to choose any. This is default.

COLORDEPTH_8

ColorDepth = {3}
display server is free to choose any color depth up to 8 bits per channel.

COLORDEPTH_10

ColorDepth = {4}
display server is free to choose any color depth up to 10 bits per channel.

COLORDEPTH_12

ColorDepth = {5}
display server is free to choose any color depth up to 12 bits per channel.
Last modified on October 29, 2026