Lines Matching defs:values
49 std::vector<Value> values;
50 values.resize(5);
58 b.SetData(std::move(values));
66 std::vector<Value> values;
67 values.resize(5);
76 b.SetData(std::move(values));
129 // Creates 10 RGBA pixel values, with the blue channels ranging from 0 to 255,
136 // Creates 10 RBGA pixel values with the blue channels ranging from 0 to 255.
138 std::vector<Value> values(40);
139 for (uint32_t i = 0; i < values.size(); i += 4)
140 values[i + 2].SetIntValue(i / 4 * 25);
144 b.SetData(values);
147 for (uint32_t i = 0; i < values.size(); i += 4)
151 // Creates 10 RGBA pixel values, with all channels being 0, and checks that all
158 std::vector<Value> values(40);
159 for (uint32_t i = 0; i < values.size(); i++)
160 values[i].SetIntValue(0);
164 b.SetData(values);
168 for (uint32_t y = 0; y < values.size(); y++)
173 // Creates 10 RGBA pixel values, with all channels being the maximum value of 8
181 std::vector<Value> values(40);
182 for (uint32_t i = 0; i < values.size(); i++)
183 values[i].SetIntValue(std::numeric_limits<uint8_t>::max());
187 b.SetData(values);
191 for (uint32_t y = 0; y < values.size(); y++)
196 // Creates two sets of equal pixel values, except for one pixel that has +50 in
223 // Creates two sets of equal pixel values, except for one pixel that has +50 in
250 // Creates two identical sets of RGBA pixel values and checks that the
274 // Creates two identical sets of RGBA pixel values and checks that the
299 std::vector<Value> values;
300 values.resize(2);
301 values[0].SetDoubleValue(2.8);
302 values[1].SetDoubleValue(1234.567);
310 b.SetData(std::move(values));