/foundation/graphic/graphic_2d/utils/color_manager/test/fuzztest/colormanager_fuzzer/ |
D | colormanager_fuzzer.cpp | 92 float gamma = GetData<float>(); in ColorSpaceFuzzTest() local 97 (void)ColorSpace(primaries, gamma); in ColorSpaceFuzzTest() 99 (void)ColorSpace(toXYZ, whitePoint, gamma); in ColorSpaceFuzzTest()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
D | utils.h | 243 inline float CalculateFriction(float gamma) in CalculateFriction() argument 246 if (GreatOrEqual(gamma, 1.0)) { in CalculateFriction() 247 gamma = 1.0; in CalculateFriction() 249 return SCROLL_RATIO * static_cast<float>(std::pow(1.0 - gamma, 2)); in CalculateFriction()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/colorspacemanager_napi/ |
D | js_color_space_manager.cpp | 81 double gamma = 0.0; in OnCreateColorSpace() local 90 if (!ConvertFromJsValue(engine, info.argv[1], gamma)) { in OnCreateColorSpace() 97 colorSpace = std::make_shared<ColorSpace>(primaries, static_cast<float>(gamma)); in OnCreateColorSpace()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/api/ |
D | @ohos.graphics.colorSpaceManager.d.ts | 181 function create(primaries: ColorSpacePrimaries, gamma: number): ColorSpaceManager;
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/ |
D | js_color_space.cpp | 121 float gamma = colorSpaceToken_->GetGamma(); in OnGetGamma() local 122 return CreateJsValue(engine, gamma); in OnGetGamma()
|
/foundation/graphic/graphic_2d/utils/color_manager/export/ |
D | color_space.h | 144 ColorSpace(const ColorSpacePrimaries &primaries, float gamma); 148 ColorSpace(const Matrix3x3& toXYZ, const std::array<float, 2>& whitePoint, float gamma);
|
/foundation/graphic/graphic_2d/utils/color_manager/src/ |
D | color_space.cpp | 90 ColorSpace::ColorSpace(const ColorSpacePrimaries &primaries, float gamma) in ColorSpace() argument 97 transferFunc.g = gamma; in ColorSpace() 109 ColorSpace::ColorSpace(const Matrix3x3 &toXYZ, const std::array<float, 2>& whitePoint, float gamma) in ColorSpace() argument 113 transferFunc.g = gamma; in ColorSpace()
|
/foundation/graphic/graphic_2d/utils/color_manager/test/unittest/ |
D | color_manager_test.cpp | 293 float gamma = 0.1; variable 297 cs = std::make_shared<ColorSpace>(primaries, gamma); 301 cs = std::make_shared<ColorSpace>(toXYZ, whitePoint, gamma);
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
D | render_list_item.cpp | 317 double RenderListItem::CalculateFriction(double gamma) in CalculateFriction() argument 320 if (GreatOrEqual(gamma, 1.0)) { in CalculateFriction() 321 gamma = 1.0; in CalculateFriction() 323 return ratio * std::pow(1.0 - gamma, SQUARE); in CalculateFriction()
|
D | render_list_item.h | 194 double CalculateFriction(double gamma);
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
D | rs_base_render_util.cpp | 77 inline PixelTransformFunc GenOETF(float gamma) in GenOETF() argument 79 if (gamma == 1.0f || gamma == 0.0f) { in GenOETF() 83 return std::bind(SafePow, std::placeholders::_1, 1.0f / gamma); in GenOETF() 86 inline PixelTransformFunc GenEOTF(float gamma) in GenEOTF() argument 88 if (gamma == 1.0f) { in GenEOTF() 92 return std::bind(SafePow, std::placeholders::_1, gamma); in GenEOTF() 419 float gamma, in SimpleColorSpace() argument 424 transEOTF_(GenEOTF(gamma)), in SimpleColorSpace() 425 transOETF_(GenOETF(gamma)), in SimpleColorSpace() 427 transferParams_({ gamma, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f }) in SimpleColorSpace()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
D | list_item_pattern.cpp | 310 float ListItemPattern::CalculateFriction(float gamma) in CalculateFriction() argument 313 if (GreatOrEqual(gamma, 1.0)) { in CalculateFriction() 314 gamma = 1.0f; in CalculateFriction() 316 return ratio * std::pow(1.0 - gamma, SQUARE); in CalculateFriction()
|
D | list_item_pattern.h | 129 static float CalculateFriction(float gamma);
|
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
D | render_scroll.h | 50 static double CalculateFriction(double gamma);
|
D | render_scroll.cpp | 414 double RenderScroll::CalculateFriction(double gamma) in CalculateFriction() argument 416 return SCROLL_RATIO * std::pow(1.0 - gamma, SQUARE); in CalculateFriction()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/ |
D | scroll_pattern.cpp | 44 float CalculateFriction(float gamma) in CalculateFriction() argument 46 return static_cast<float>(SCROLL_RATIO * std::pow(1.0 - gamma, SQUARE)); in CalculateFriction()
|
/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
D | render_swiper.h | 527 double CalculateFriction(double gamma);
|
D | render_swiper.cpp | 884 double RenderSwiper::CalculateFriction(double gamma) in CalculateFriction() argument 887 if (GreatOrEqual(gamma, 1.0)) { in CalculateFriction() 888 gamma = 1.0; in CalculateFriction() 890 return SCROLL_RATIO * std::pow(1.0 - gamma, SQUARE); in CalculateFriction()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
D | swiper_pattern.cpp | 60 float CalculateFriction(float gamma) in CalculateFriction() argument 63 if (GreatOrEqual(gamma, 1.0)) { in CalculateFriction() 64 gamma = 1.0; in CalculateFriction() 66 return SCROLL_RATIO * static_cast<float>(std::pow(1.0 - gamma, SQUARE)); in CalculateFriction()
|