Home
last modified time | relevance | path

Searched refs:nits (Results 1 – 12 of 12) sorted by relevance

/hardware/google/graphics/common/libhwc2.1/libdevice/
DBrightnessController.h73 int setBrightnessNits(float nits, const nsecs_t vsyncNs);
267 std::optional<float> NitsToBrightness(float nits) const override;
269 std::optional<uint32_t> NitsToDbv(BrightnessMode bm, float nits) const override;
284 BrightnessMode GetBrightnessModeForNits(float nits) const { in GetBrightnessModeForNits() argument
286 if (nits >= range.nits_min && nits <= range.nits_max) { in GetBrightnessModeForNits()
307 range.nits_min = attr.nits.min; in setBrightnessRangeFromAttribute()
308 range.nits_max = attr.nits.max; in setBrightnessRangeFromAttribute()
367 float *nits = nullptr);
DBrightnessController.cpp50 float nits) const { in NitsToBrightness()
51 BrightnessMode mode = GetBrightnessModeForNits(nits); in NitsToBrightness()
57 const float brightness = LinearInterpolation(nits, in NitsToBrightness()
74 std::optional<float> nits = DbvToNits(bm, dbv); in DbvToBrightness() local
75 if (nits == std::nullopt) { in DbvToBrightness()
79 return NitsToBrightness(nits.value()); in DbvToBrightness()
89 float nits = LinearInterpolation(brightness, range.brightness_min, range.brightness_max, in BrightnessToNits() local
91 if (isnan(nits)) { in BrightnessToNits()
95 return nits; in BrightnessToNits()
99 float nits) const { in NitsToDbv()
[all …]
DExynosDisplay.h1275 virtual int32_t setBrightnessNits(const float nits);
DExynosDisplay.cpp4044 int32_t ExynosDisplay::setBrightnessNits(const float nits) in setBrightnessNits() argument
4047 int32_t ret = mBrightnessController->setBrightnessNits(nits, mVsyncPeriod); in setBrightnessNits()
/hardware/google/graphics/common/libhwc2.1/libhwcService/
DIExynosHWC.h72 virtual int32_t setDisplayBrightnessNits(int32_t displayId, float nits) = 0;
DExynosHWCService.h74 virtual int32_t setDisplayBrightnessNits(const int32_t display_id, const float nits);
DExynosHWCService.cpp422 int32_t ExynosHWCService::setDisplayBrightnessNits(const int32_t display_id, const float nits) { in setDisplayBrightnessNits() argument
423 if (nits < 0) in setDisplayBrightnessNits()
429 return display->setBrightnessNits(nits); in setDisplayBrightnessNits()
DIExynosHWC.cpp416 virtual int32_t setDisplayBrightnessNits(int32_t displayId, float nits) { in setDisplayBrightnessNits() argument
420 data.writeFloat(nits); in setDisplayBrightnessNits()
805 float nits = data.readFloat(); in onTransact() local
806 int32_t error = setDisplayBrightnessNits(displayId, nits); in onTransact()
/hardware/google/graphics/common/include/displaycolor/
Ddisplaycolor.h142 virtual std::optional<uint32_t> NitsToDbv(BrightnessMode bm, float nits) const = 0;
144 virtual std::optional<float> NitsToBrightness(float nits) const = 0;
/hardware/interfaces/configstore/1.0/
DISurfaceFlingerConfigs.hal68 * 2. has high luminance capability, typically 540 nits or higher at 10% OPR
/hardware/interfaces/graphics/composer/2.2/
DIComposerClient.hal70 * Units: nits
71 * max as defined by ST 2048: 10,000 nits
/hardware/interfaces/graphics/common/1.0/
Dtypes.hal972 * A pixel value of 1.0, 1.0, 1.0 corresponds to sRGB white (D65) at 80 nits.
1005 * A pixel value of 1.0, 1.0, 1.0 corresponds to sRGB white (D65) at 80 nits.