Lines Matching refs:bm
69 BrightnessMode bm = getBrightnessModeForDbv(dbv); in DbvToBrightness() local
70 if (bm == BrightnessMode::BM_INVALID) { in DbvToBrightness()
74 std::optional<float> nits = DbvToNits(bm, dbv); in DbvToBrightness()
83 float brightness, BrightnessMode& bm) const { in BrightnessToNits()
84 bm = GetBrightnessMode(brightness); in BrightnessToNits()
85 if (bm == BrightnessMode::BM_MAX) { in BrightnessToNits()
88 const DisplayBrightnessRange& range = mBrightnessRanges.at(bm); in BrightnessToNits()
98 std::optional<uint32_t> BrightnessController::LinearBrightnessTable::NitsToDbv(BrightnessMode bm, in NitsToDbv() argument
100 if (mBrightnessRanges.count(bm) == 0) { in NitsToDbv()
103 const auto& range = mBrightnessRanges.at(bm); in NitsToDbv()
113 std::optional<float> BrightnessController::LinearBrightnessTable::DbvToNits(BrightnessMode bm, in DbvToNits() argument
115 if (mBrightnessRanges.count(bm) == 0) { in DbvToNits()
118 const auto& range = mBrightnessRanges.at(bm); in DbvToNits()
944 BrightnessMode bm = BrightnessMode::BM_MAX; in queryBrightness() local
945 std::optional<float> nits_value = mBrightnessTable->BrightnessToNits(brightness, bm); in queryBrightness()
950 *ghbm = (bm == BrightnessMode::BM_HBM); in queryBrightness()
952 std::optional<uint32_t> dbv_value = mBrightnessTable->NitsToDbv(bm, nits_value.value()); in queryBrightness()
958 if ((bm == BrightnessMode::BM_NOMINAL) && mDbmSupported && in queryBrightness()