xref: /aosp_15_r20/external/libmonet/quantize/QuantizerResult.java (revision 970e10460f970939fd510dd6ad3e0d65908272e3)
1*970e1046SAndroid Build Coastguard Worker /*
2*970e1046SAndroid Build Coastguard Worker  * Copyright 2021 Google LLC
3*970e1046SAndroid Build Coastguard Worker  *
4*970e1046SAndroid Build Coastguard Worker  * Licensed under the Apache License, Version 2.0 (the "License");
5*970e1046SAndroid Build Coastguard Worker  * you may not use this file except in compliance with the License.
6*970e1046SAndroid Build Coastguard Worker  * You may obtain a copy of the License at
7*970e1046SAndroid Build Coastguard Worker  *
8*970e1046SAndroid Build Coastguard Worker  *      http://www.apache.org/licenses/LICENSE-2.0
9*970e1046SAndroid Build Coastguard Worker  *
10*970e1046SAndroid Build Coastguard Worker  * Unless required by applicable law or agreed to in writing, software
11*970e1046SAndroid Build Coastguard Worker  * distributed under the License is distributed on an "AS IS" BASIS,
12*970e1046SAndroid Build Coastguard Worker  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*970e1046SAndroid Build Coastguard Worker  * See the License for the specific language governing permissions and
14*970e1046SAndroid Build Coastguard Worker  * limitations under the License.
15*970e1046SAndroid Build Coastguard Worker  */
16*970e1046SAndroid Build Coastguard Worker 
17*970e1046SAndroid Build Coastguard Worker package com.google.ux.material.libmonet.quantize;
18*970e1046SAndroid Build Coastguard Worker 
19*970e1046SAndroid Build Coastguard Worker import java.util.Map;
20*970e1046SAndroid Build Coastguard Worker 
21*970e1046SAndroid Build Coastguard Worker /** Represents result of a quantizer run */
22*970e1046SAndroid Build Coastguard Worker public final class QuantizerResult {
23*970e1046SAndroid Build Coastguard Worker   public final Map<Integer, Integer> colorToCount;
24*970e1046SAndroid Build Coastguard Worker 
QuantizerResult(Map<Integer, Integer> colorToCount)25*970e1046SAndroid Build Coastguard Worker   QuantizerResult(Map<Integer, Integer> colorToCount) {
26*970e1046SAndroid Build Coastguard Worker     this.colorToCount = colorToCount;
27*970e1046SAndroid Build Coastguard Worker   }
28*970e1046SAndroid Build Coastguard Worker }
29