Home
last modified time | relevance | path

Searched refs:gamma (Results 1 – 19 of 19) sorted by relevance

/foundation/graphic/graphic_2d/utils/color_manager/test/fuzztest/colormanager_fuzzer/
Dcolormanager_fuzzer.cpp92 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/
Dutils.h243 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/
Djs_color_space_manager.cpp81 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.ts181 function create(primaries: ColorSpacePrimaries, gamma: number): ColorSpaceManager;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/
Djs_color_space.cpp121 float gamma = colorSpaceToken_->GetGamma(); in OnGetGamma() local
122 return CreateJsValue(engine, gamma); in OnGetGamma()
/foundation/graphic/graphic_2d/utils/color_manager/export/
Dcolor_space.h144 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/
Dcolor_space.cpp90 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/
Dcolor_manager_test.cpp293 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/
Drender_list_item.cpp317 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()
Drender_list_item.h194 double CalculateFriction(double gamma);
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
Drs_base_render_util.cpp77 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/
Dlist_item_pattern.cpp310 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()
Dlist_item_pattern.h129 static float CalculateFriction(float gamma);
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
Drender_scroll.h50 static double CalculateFriction(double gamma);
Drender_scroll.cpp414 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/
Dscroll_pattern.cpp44 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/
Drender_swiper.h527 double CalculateFriction(double gamma);
Drender_swiper.cpp884 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/
Dswiper_pattern.cpp60 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()