Home
last modified time | relevance | path

Searched refs:QUANTIZE_WORD_WIDTH (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
H A Dcolor_extract.cpp102 …return (color >> (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) & static_cast<uint32_t>(QUANTIZE_WOR… in QuantizedRed()
108 return (color >> QUANTIZE_WORD_WIDTH) & static_cast<uint32_t>(QUANTIZE_WORD_MASK); in QuantizedGreen()
148 uint32_t r = ModifyWordWidth(GetARGB32ColorR(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
149 uint32_t g = ModifyWordWidth(GetARGB32ColorG(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
150 uint32_t b = ModifyWordWidth(GetARGB32ColorB(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
151 return (r << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) | (g << QUANTIZE_WORD_WIDTH) | b; in QuantizeFromRGB888()
157 uint32_t approximatedRed = ModifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
158 uint32_t approximatedGreen = ModifyWordWidth(g, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
159 uint32_t approximatedBlue = ModifyWordWidth(b, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
288 uint32_t histLen = (1 << (QUANTIZE_WORD_WIDTH * 3)); in GetNFeatureColors()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_color_extract.cpp74 …return (color >> (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) & static_cast<uint32_t>(QUANTIZE_WOR… in QuantizedRed()
80 return (color >> QUANTIZE_WORD_WIDTH) & static_cast<uint32_t>(QUANTIZE_WORD_MASK); in QuantizedGreen()
116 uint32_t r = ModifyWordWidth(GetARGB32ColorR(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
117 uint32_t g = ModifyWordWidth(GetARGB32ColorG(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
118 uint32_t b = ModifyWordWidth(GetARGB32ColorB(color), 8, QUANTIZE_WORD_WIDTH); in QuantizeFromRGB888()
119 return (r << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) | (g << QUANTIZE_WORD_WIDTH) | b; in QuantizeFromRGB888()
125 uint32_t approximatedRed = ModifyWordWidth(r, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
126 uint32_t approximatedGreen = ModifyWordWidth(g, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
127 uint32_t approximatedBlue = ModifyWordWidth(b, QUANTIZE_WORD_WIDTH, 8); in ApproximateToRGB888()
259 uint32_t histLen = (1 << (QUANTIZE_WORD_WIDTH * 3)); // 3 means left shift flag in GetNFeatureColors()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_color_extract.h79 static constexpr int QUANTIZE_WORD_WIDTH = 5; variable
80 static constexpr int QUANTIZE_WORD_MASK = (1 << QUANTIZE_WORD_WIDTH) - 1;
240 … colors[i] = (QuantizedGreen(color) << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) in ModifySignificantOctet()
241 | (QuantizedRed(color) << QUANTIZE_WORD_WIDTH) in ModifySignificantOctet()
248 … colors[i] = (QuantizedBlue(color) << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) in ModifySignificantOctet()
249 | (QuantizedGreen(color) << QUANTIZE_WORD_WIDTH) in ModifySignificantOctet()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/
H A Dcolor_extract.h85 static constexpr int QUANTIZE_WORD_WIDTH = 5; variable
86 static constexpr int QUANTIZE_WORD_MASK = (1 << QUANTIZE_WORD_WIDTH) - 1;
257 … colors[i] = (QuantizedGreen(color) << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) in ModifySignificantOctet()
258 | (QuantizedRed(color) << QUANTIZE_WORD_WIDTH) in ModifySignificantOctet()
265 … colors[i] = (QuantizedBlue(color) << (QUANTIZE_WORD_WIDTH + QUANTIZE_WORD_WIDTH)) in ModifySignificantOctet()
266 | (QuantizedGreen(color) << QUANTIZE_WORD_WIDTH) in ModifySignificantOctet()