Searched refs:featureColors_ (Results 1 – 7 of 7) sorted by relevance
141 if (featureColors_.empty()) { in GetLargestProportionColor()150 if (featureColors_.empty()) { in GetHighestSaturationColor()174 if (featureColors_.empty()) { in GetAverageColor()179 … redSum += featureColors_[i].second * ((featureColors_[i].first >> ARGB_R_SHIFT) & ARGB_MASK); in GetAverageColor()180 … greenSum += featureColors_[i].second * ((featureColors_[i].first >> ARGB_G_SHIFT) & ARGB_MASK); in GetAverageColor()181 … blueSum += featureColors_[i].second * ((featureColors_[i].first >> ARGB_B_SHIFT) & ARGB_MASK); in GetAverageColor()257 if (featureColors_.empty()) { in DiscriminatePitureLightDegree()524 if (featureColors_.empty()) { in GetImmersiveBackgroundColor()588 if (featureColors_.empty()) { in GetDominantColor()595 if (featureColors_.size() == 1) { in GetDominantColor()[all …]
315 featureColors_.push_back(featureColor); in GetNFeatureColors()319 featureColors_ = QuantizePixels(colorNum); in GetNFeatureColors()322 sort(featureColors_.begin(), featureColors_.end(), cmp); in GetNFeatureColors()
84 if (featureColors_.empty()) { in GetLargestProportionColor()93 if (featureColors_.empty()) { in GetHighestSaturationColor()99 for (size_t i = 0; i < featureColors_.size(); i++) { in GetHighestSaturationColor()100 hsv = RGB2HSV(featureColors_[i].first); in GetHighestSaturationColor()103 colorPicked = featureColors_[i].first; in GetHighestSaturationColor()117 if (featureColors_.empty()) { in GetAverageColor()120 for (size_t i = 0; i < featureColors_.size(); i++) { in GetAverageColor()121 totalPixelNum += featureColors_[i].second; in GetAverageColor()122 … redSum += featureColors_[i].second * ((featureColors_[i].first >> ARGB_R_SHIFT) & ARGB_MASK); in GetAverageColor()123 … greenSum += featureColors_[i].second * ((featureColors_[i].first >> ARGB_G_SHIFT) & ARGB_MASK); in GetAverageColor()[all …]
295 featureColors_.push_back(featureColor); in GetNFeatureColors()299 featureColors_ = QuantizePixels(colorNum); in GetNFeatureColors()302 sort(featureColors_.begin(), featureColors_.end(), cmp); in GetNFeatureColors()
137 rsColorPicker->featureColors_.push_back({ 0, 1 }); in DoGetAverageColor()139 rsColorPicker->featureColors_.clear(); in DoGetAverageColor()140 rsColorPicker->featureColors_.push_back({ 0, 0 }); in DoGetAverageColor()
54 std::vector<std::pair<uint32_t, uint32_t>> featureColors_; variable
55 std::vector<std::pair<uint32_t, uint32_t>> featureColors_; variable