Home
last modified time | relevance | path

Searched refs:rgb (Results 1 - 25 of 31) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_inplace_post_process.h30 uPostProcessData.flags.x, uPostProcessData.factors[POST_PROCESS_INDEX_TONEMAP], color.rgb, color.rgb); in InplacePostProcess()
35 uPostProcessData.flags.x, uPostProcessData.factors[POST_PROCESS_INDEX_DITHER], vecCoeffs, color.rgb, color.rgb); in InplacePostProcess()
37 uPostProcessData.flags.x, uPostProcessData.factors[POST_PROCESS_INDEX_VIGNETTE], fragUv, color.rgb, color.rgb); in InplacePostProcess()
39 uPostProcessData.flags.x, uPostProcessData.factors[POST_PROCESS_INDEX_COLOR_CONVERSION], color.rgb, color.rgb); in InplacePostProcess()
H A D3d_dm_inplace_env_common.h70 color.rgb = unpackEnvMap(textureLod(cubeMap, worldView, lodLevel)); in InplaceEnvironmentBlock()
85 vec3 fogColor = color.rgb; in InplaceEnvironmentBlock()
87 color.rgb = fogColor.rgb; in InplaceEnvironmentBlock()
H A D3d_dm_inplace_fog_common.h46 outCol = inCol.rgb; in InplaceFogBlock()
86 const vec3 fogColor = inscatteringColor.rgb * inscatteringColor.a + envMapColor.rgb * envMapColor.a; in InplaceFogBlock()
87 const vec3 baseColor = inCol.rgb; in InplaceFogBlock()
89 outCol.rgb = mix(baseColor, fogColor, expFogFactor); in InplaceFogBlock()
H A D3d_dm_target_packing_common.h133 return vec4(clamp(color.rgb, 0.0, CORE3D_HDR_FLOAT_CLAMP_MAX_VALUE) * alpha, alpha); in GetPackPbrColor()
145 color.rgb = col.rgb; in GetUnpackBaseColorWithAo()
H A D3d_dm_lighting_common.h140 const CORE_RELAXEDP vec3 Ft = radianceSample * baseColor.rgb; in AppendIndirectTransmission()
168 bd.f0.xyz = mix(vec3(material.a), baseColor.rgb, metallic); // f0 reflectance in CalcBRDFMetallicRoughness()
171 bd.diffuseColor = mix(baseColor.rgb * (1.0 - bd.f0.xyz), vec3(0.0), vec3(metallic)); in CalcBRDFMetallicRoughness()
185 bd.f0.xyz = mix(vec3(material.a), baseColor.rgb, metallic); // f0 reflectance in CalcBRDFMetallicRoughness()
188 bd.diffuseColor = mix(baseColor.rgb * (1.0 - bd.f0.xyz), vec3(0.0), vec3(metallic)); in CalcBRDFMetallicRoughness()
203 bd.diffuseColor = baseColor.rgb * (1.0 - max(bd.f0.x, max(bd.f0.y, bd.f0.z))); in CalcBRDFSpecularGlossiness()
219 bd.f0.xyz = mix(vec3(material.a), baseColor.rgb, metallic); // f0 reflectance in CalcBRDFSpecular()
222 bd.f0.xyz = min(bd.f0.xyz * specular.rgb, vec3(1.0)) * specular.a; in CalcBRDFSpecular()
225 bd.diffuseColor = mix(baseColor.rgb * (1.0 - max(bd.f0.x, max(bd.f0.y, bd.f0.z))), vec3(0.0), vec3(metallic)); in CalcBRDFSpecular()
228 bd.f0.xyz = mix(bd.f0.xyz, baseColor.rgb, metalli in CalcBRDFSpecular()
[all...]
H A D3d_dm_structures_common.h283 // intensity baked into rgb, .w is intensity (if needs to be inverse multiplied)
337 // .rgb is tint * intensity (intensity baked into rgb), .a is intensity
339 // .rgb = tint * intensity (intensity baked into rgb), .a is intensity
341 // .rgb = tint * intensity (intensity baked into rgb), .a is intensity
372 // primary color for the fog (.rgb = tint, .a = intensity)
374 // env map color factor (.rgb = tint, .a = intensity)
575 return emissive.rgb * emissiv in GetUnpackEmissiveColor()
[all...]
H A D3d_dm_inplace_sampling_common.h293 return emissive.rgb * emissive.a; in GetUnpackEmissiveColor()
317 return vec4(color.rgb / color.a, color.a); in Unpremultiply()
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_color_conversion_common.h101 vec3 rgbToYCoCg(const vec3 rgb) in rgbToYCoCg() argument
103 const float y = dot(rgb, vec3(0.25, 0.5, 0.25)); in rgbToYCoCg()
104 const float co = dot(rgb, vec3(0.5, 0.0, -0.5)); in rgbToYCoCg()
105 const float cg = dot(rgb, vec3(-0.25, 0.5, -0.25)); in rgbToYCoCg()
H A Drender_post_process_blocks.h57 outCol.rgb *= vignette; in PostProcessVignetteBlock()
108 outCol.rgb = LinearToSrgb(outCol.rgb); in PostProcessColorConversionBlock()
122 const vec3 bloomColor = textureLod(imgSampler, uv, 0).rgb * bloomFactor.z; in PostProcessBloomCombineBlock()
123 const vec3 dirtColor = textureLod(dirtImgSampler, uv, 0).rgb * bloomFactor.w; in PostProcessBloomCombineBlock()
125 outCol.rgb = min(bloomCombine, CORE_CLAMP_MAX_VALUE); in PostProcessBloomCombineBlock()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_color_picker.cpp154 HSV RSColorPicker::RGB2HSV(uint32_t rgb) const in RGB2HSV()
161 r = GetARGB32ColorR(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
162 g = GetARGB32ColorG(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
163 b = GetARGB32ColorB(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
232 uint32_t rgb = 0; in HSVtoRGB() local
285 rgb = r << ARGB_R_SHIFT | g << ARGB_G_SHIFT | b << ARGB_B_SHIFT; in HSVtoRGB()
286 return rgb; in HSVtoRGB()
/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/src/
H A Dgif_encoder.cpp356 IMAGE_LOGE("Failed to get rgb value."); in separateRGB()
372 colorCoordinate[i].rgb[R_IN_RGB] = (i >> RED_COORDINATE) & 0x1F; in InitColorCube()
373 colorCoordinate[i].rgb[G_IN_RGB] = (i >> GREEN_COORDINATE) & 0x1F; in InitColorCube()
374 colorCoordinate[i].rgb[B_IN_RGB] = (i >> BLUE_COORDINATE) & 0x1F; in InitColorCube()
454 red += coordinate->rgb[R_IN_RGB]; in doColorQuantize()
455 green += coordinate->rgb[G_IN_RGB]; in doColorQuantize()
456 blue += coordinate->rgb[B_IN_RGB]; in doColorQuantize()
482 int32_t hash1 = entry1->rgb[(g_sortRGBAxis + R_IN_RGB)] * COLOR_OF_GIF * COLOR_OF_GIF + in SortCmpRtn()
483 entry1->rgb[(g_sortRGBAxis + G_IN_RGB) % NUM_OF_RGB] * COLOR_OF_GIF + in SortCmpRtn()
484 entry1->rgb[(g_sortRGBAxi in SortCmpRtn()
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/
H A Dbloom_common.h107 vec3 color = textureLod(sampler2D(tex, sampl), uv + vec2(-invTexSize.x, invTexSize.y), 0).rgb * (8.0 / 128.0); in bloomDownscale9()
109 uv + vec2(0.0, invTexSize.y), 0).rgb * (16.0 / 128.0); // 16.0, 128.0 : param in bloomDownscale9()
110 color += textureLod(sampler2D(tex, sampl), uv + invTexSize, 0).rgb * (8.0 / 128.0); // 8.0, 128.0: param in bloomDownscale9()
111 color += textureLod(sampler2D(tex, sampl), uv + vec2(-invTexSize.x, 0.0), 0).rgb * in bloomDownscale9()
113 color += textureLod(sampler2D(tex, sampl), uv, 0).rgb * (32.0 / 128.0); // 32.0, 128.0:param in bloomDownscale9()
114 color += textureLod(sampler2D(tex, sampl), uv + vec2(invTexSize.x, 0.0), 0).rgb * in bloomDownscale9()
116 color += textureLod(sampler2D(tex, sampl), uv - invTexSize, 0).rgb * (8.0 / 128.0); // 8.0, 128.0:param in bloomDownscale9()
117 color += textureLod(sampler2D(tex, sampl), uv + vec2(0.0, -invTexSize.y), 0).rgb * in bloomDownscale9()
120 vec2(invTexSize.x, -invTexSize.y), 0).rgb * (8.0 / 128.0);// 8.0,128.0: param in bloomDownscale9()
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
H A Dcolor_picker.cpp231 HSV ColorPicker::RGB2HSV(uint32_t rgb) const in RGB2HSV()
238 r = GetARGB32ColorR(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
239 g = GetARGB32ColorG(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
240 b = GetARGB32ColorB(rgb) / 255.0; // 255.0 is used to normalize color to [0, 1]. in RGB2HSV()
309 uint32_t rgb = 0; in HSVtoRGB() local
362 rgb = r << ARGB_R_SHIFT | g << ARGB_G_SHIFT | b << ARGB_B_SHIFT; in HSVtoRGB()
363 return rgb; in HSVtoRGB()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagegifencoder_fuzzer/src/
H A Dimage_gif_encoder_fuzzer.cpp41 std::unique_ptr<uint8_t[]> rgb = std::make_unique<uint8_t[]>(SIZE_TEN); in GifEncoderPackingEmptyImageFuzz() local
42 gifEncoder->Write(rgb.get(), SIZE_TEN); in GifEncoderPackingEmptyImageFuzz()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/
H A Dgif_encoder_test.cpp157 std::unique_ptr<uint8_t[]> rgb = std::make_unique<uint8_t[]>(10); in HWTEST_F() local
158 gifEncoder->Write(rgb.get(), 10); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_color_picker.h50 HSV RGB2HSV(uint32_t rgb) const;
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/
H A Dcolor_picker.h64 HSV RGB2HSV(uint32_t rgb) const;
/foundation/multimedia/image_framework/plugins/common/libs/image/libgifplugin/include/
H A Dgif_encoder.h33 uint8_t rgb[NUM_OF_RGB]; member
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscolorpicker_fuzzer/
H A Drscolorpicker_fuzzer.cpp193 uint32_t rgb = GetData<uint32_t>(); in DoRGB2HSV() local
194 rsColorPicker->RGB2HSV(rgb); in DoRGB2HSV()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_render_util.cpp377 Vector3f RGBToXYZ(const Vector3f& rgb) const
379 return rgbToXyz_ * ToLinear(rgb);
399 {{Vector2f{0.640f, 0.330f}, {0.300f, 0.600f}, {0.150f, 0.060f}}}, // rgb base points.
408 {{Vector2f{0.64f, 0.33f}, {0.21f, 0.71f}, {0.15f, 0.06f}}}, // rgb base points.
417 {{Vector2f{0.680f, 0.320f}, {0.265f, 0.690f}, {0.150f, 0.060f}}}, // rgb base points.
426 {{Vector2f{0.680f, 0.320f}, {0.265f, 0.690f}, {0.150f, 0.060f}}}, // rgb base points.
435 {{Vector2f{0.708f, 0.292f}, {0.17f, 0.797f}, {0.131f, 0.046f}}}, // BT.2020 rgb base points.
461 // rgb base points.
773 int rgb[3] = {0, 0, 0};
790 rgb[
[all...]
/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_provider.cpp788 // rgb[3] represents the point of Red, Green and Blue coordinate in color space diagram.
789 Point rgb[3]; local
793 rgb[i].SetX(xyzGamut.vals[i][0] / sum);
794 rgb[i].SetY(xyzGamut.vals[i][1] / sum);
797 Point red = rgb[0];
798 Point green = rgb[1];
799 Point blue = rgb[2];
/foundation/graphic/graphic_2d/utils/color_manager/test/unittest/
H A Dcolor_manager_test.cpp206 std::array<float, 3> rgb = {0.1, 0.2, 0.3}; in HWTEST_F() local
207 auto result = convertor.Convert(rgb); in HWTEST_F()
223 std::array<float, 3> rgb = {0.1, 0.2, 0.3}; in HWTEST_F() local
224 auto result = convertor.Convert(rgb); in HWTEST_F()
/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/
H A Dwebp_encoder.cpp298 std::unique_ptr<uint8_t[]> rgb = std::make_unique<uint8_t[]>(rgbSize); in DoEncode() local
299 if (!DoTransform(pixelMap, reinterpret_cast<char*>(&rgb[0]), componentsNum_)) { in DoEncode()
310 if (!importProc(&webpPicture, &rgb[0], rgbStride)) { in DoEncode()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/
H A Dwebgl_arg.h212 } rgb; member
218 } rgb;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_arg.cpp577 imageData_.emplace_back(FromRGB(param.rgb.red, param.rgb.green, param.rgb.blue).value); in DecodeDataForRGB_USHORT_565()

Completed in 19 milliseconds

12