Home
last modified time | relevance | path

Searched refs:weight (Results 1 - 25 of 222) sorted by relevance

123456789

/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/
H A Dbloom_common.h46 float weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9() local
47 vec3 color = colSample * (8.0 / 128.0) * weight; in bloomDownscaleWeighted9()
48 float fullWeight = weight; in bloomDownscaleWeighted9()
51 weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9()
52 color += colSample * (16.0 / 128.0) * weight; // 16.0, 128.0: param in bloomDownscaleWeighted9()
53 fullWeight += weight; in bloomDownscaleWeighted9()
56 weight = 1.0 / (1.0 + CalcLuma(colSample)); in bloomDownscaleWeighted9()
57 color += colSample * (8.0 / 128.0) * weight; // 8.0, 128.0: param in bloomDownscaleWeighted9()
58 fullWeight += weight; in bloomDownscaleWeighted9()
62 weight in bloomDownscaleWeighted9()
137 float weight = 1.0 / (1 + CalcLuma(colSample)); bloomDownscaleWeighted() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dutils.cpp24 auto weight = textStyle.GetFontWeight(); in GetTextStyleInJson() local
25 if (weight == FontWeight::W100) { in GetTextStyleInJson()
26 jsonValue->Put("weight", "100"); in GetTextStyleInJson()
27 } else if (weight == FontWeight::W200) { in GetTextStyleInJson()
28 jsonValue->Put("weight", "200"); in GetTextStyleInJson()
29 } else if (weight == FontWeight::W300) { in GetTextStyleInJson()
30 jsonValue->Put("weight", "300"); in GetTextStyleInJson()
31 } else if (weight == FontWeight::W400) { in GetTextStyleInJson()
32 jsonValue->Put("weight", "400"); in GetTextStyleInJson()
33 } else if (weight in GetTextStyleInJson()
[all...]
H A Dtextinput_composed_element.cpp105 auto weight = placeHoldStyle.GetFontWeight(); in GetPlaceholderFont() local
106 if (weight == FontWeight::W100) { in GetPlaceholderFont()
107 jsonValue->Put("weight", "100"); in GetPlaceholderFont()
108 } else if (weight == FontWeight::W200) { in GetPlaceholderFont()
109 jsonValue->Put("weight", "200"); in GetPlaceholderFont()
110 } else if (weight == FontWeight::W300) { in GetPlaceholderFont()
111 jsonValue->Put("weight", "300"); in GetPlaceholderFont()
112 } else if (weight == FontWeight::W400) { in GetPlaceholderFont()
113 jsonValue->Put("weight", "400"); in GetPlaceholderFont()
114 } else if (weight in GetPlaceholderFont()
175 auto weight = GetTextInputFontWeight() local
[all...]
H A Dtextarea_composed_element.cpp101 auto weight = placeHoldStyle.GetFontWeight(); in GetPlaceholderFont() local
102 if (weight == FontWeight::W100) { in GetPlaceholderFont()
103 jsonValue->Put("weight", "100"); in GetPlaceholderFont()
104 } else if (weight == FontWeight::W200) { in GetPlaceholderFont()
105 jsonValue->Put("weight", "200"); in GetPlaceholderFont()
106 } else if (weight == FontWeight::W300) { in GetPlaceholderFont()
107 jsonValue->Put("weight", "300"); in GetPlaceholderFont()
108 } else if (weight == FontWeight::W400) { in GetPlaceholderFont()
109 jsonValue->Put("weight", "400"); in GetPlaceholderFont()
110 } else if (weight in GetPlaceholderFont()
179 auto weight = GetTextFontWeight() local
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_node_weight.c36 static int32_t weight; in LnnGetLocalWeight() local
41 return weight; in LnnGetLocalWeight()
44 LNN_LOGE(LNN_BUILDER, "generate random weight fail"); in LnnGetLocalWeight()
47 weight = (int32_t)((randVal * MAX_WEIGHT_VALUE) / UINT8_MAX); in LnnGetLocalWeight()
54 weight += BASE_WEIGHT_PHONE_VALUE; in LnnGetLocalWeight()
57 weight += BASE_WEIGHT_PAD_VALUE; in LnnGetLocalWeight()
60 weight += BASE_WEIGHT_TV_VALUE; in LnnGetLocalWeight()
63 weight += BASE_WEIGHT_AUDIO_VALUE; in LnnGetLocalWeight()
66 weight += BASE_WEIGHT_CAR_VALUE; in LnnGetLocalWeight()
69 weight in LnnGetLocalWeight()
[all...]
/foundation/CastEngine/castengine_wifi_display/services/agent/
H A Dagent_def.h55 if (weight == agentRunStepKey.weight) { in operator <()
61 return weight > agentRunStepKey.weight; in operator <()
67 AgentRunStepWeight weight = AGENT_STEP_WEIGHT_IDLE; member
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dpost_proc_slr.h99 auto weight = fSLRCache.find(key); in find() local
100 return weight == nullptr ? nullptr : *weight; in find()
105 auto weight = fSLRCache.insert(key, std::move(weightTuple)); in insert() local
106 return weight == nullptr ? nullptr : *weight; in insert()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontstyle_fuzzer/
H A Dfontstyle_fuzzer.cpp44 int weight = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest() local
47 FontStyle fontStyleTwo = FontStyle(weight, width, static_cast<FontStyle::Slant>(slant % SLANT_SIZE)); in FontStyleFuzzTest()
48 FontStyle fontStyleThree = FontStyle(weight, width, static_cast<FontStyle::Slant>(slant % SLANT_SIZE)); in FontStyleFuzzTest()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_symbol_glyph_modifier.cpp21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument
23 std::string weightStr(weight); in ConvertStrToFontWeight()
27 FontWeight ConvertIntToFontWeight(ArkUI_Int32 weight) in ConvertIntToFontWeight() argument
40 auto weightFindIter = fontWeightMap.find(weight); in ConvertIntToFontWeight()
96 void SetFontWeightStr(ArkUINodeHandle node, ArkUI_CharPtr weight) in SetFontWeightStr() argument
100 SymbolModelNG::SetFontWeight(frameNode, ConvertStrToFontWeight(weight)); in SetFontWeightStr()
103 void SetFontWeight(ArkUINodeHandle node, ArkUI_Int32 weight) in SetFontWeight() argument
107 SymbolModelNG::SetFontWeight(frameNode, ConvertIntToFontWeight(weight)); in SetFontWeight()
H A Dnode_symbol_span_modifier.cpp21 FontWeight ConvertStrToFontWeight(ArkUI_CharPtr weight, FontWeight defaultFontWeight = FontWeight::NORMAL) in ConvertStrToFontWeight() argument
23 std::string weightStr(weight); in ConvertStrToFontWeight()
76 void SetSymbolSpanFontWeightStr(ArkUINodeHandle node, ArkUI_CharPtr weight) in SetSymbolSpanFontWeightStr() argument
80 SymbolSpanModelNG::SetFontWeight(frameNode, ConvertStrToFontWeight(weight)); in SetSymbolSpanFontWeightStr()
83 void SetSymbolSpanFontWeight(ArkUINodeHandle node, ArkUI_Int32 weight) in SetSymbolSpanFontWeight() argument
87 SymbolSpanModelNG::SetFontWeight(frameNode, static_cast<FontWeight>(weight)); in SetSymbolSpanFontWeight()
H A Dgauge_modifier.cpp160 void SetColors(ArkUINodeHandle node, const uint32_t* colors, const ArkUI_Float32* weight, uint32_t length) in SetColors() argument
163 CHECK_NULL_VOID(weight); in SetColors()
170 weights.at(i) = weight[i]; in SetColors()
207 std::vector<ArkUI_Float32> weight; in SetGradientColors() local
208 if (weightLength > 0 && gradient->weight != nullptr) { in SetGradientColors()
209 weight = std::vector<ArkUI_Float32>(gradient->weight, gradient->weight + weightLength); in SetGradientColors()
230 GaugeModelNG::SetGradientColors(frameNode, colors, weight, type); in SetGradientColors()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_timepicker_bridge.cpp76 std::string weight = DEFAULT_ERR_CODE; in SetTextStyle() local
79 weight = std::to_string(fontWeightArg->Int32Value(vm)); in SetTextStyle()
81 if (!ArkTSUtils::ParseJsString(vm, fontWeightArg, weight) || weight.empty()) { in SetTextStyle()
82 weight = DEFAULT_ERR_CODE; in SetTextStyle()
96 FORMAT_FONT.c_str(), fontSizeStr.c_str(), weight.c_str(), fontFamily.c_str()); in SetTextStyle()
125 std::string weight = DEFAULT_ERR_CODE; in SetSelectedTextStyle() local
128 weight = std::to_string(fontWeightArg->Int32Value(vm)); in SetSelectedTextStyle()
130 if (!ArkTSUtils::ParseJsString(vm, fontWeightArg, weight) || weight in SetSelectedTextStyle()
174 std::string weight = DEFAULT_ERR_CODE; SetDisappearTextStyle() local
[all...]
H A Darkts_native_menu_item_bridge.cpp109 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: label font weight in SetLabelFont()
123 std::string weight = DEFAULT_ERR_CODE; in SetLabelFont() local
125 weight = std::to_string(weightArg->Int32Value(vm)); in SetLabelFont()
127 if (!ArkTSUtils::ParseJsString(vm, weightArg, weight) || weight.empty()) { in SetLabelFont()
128 weight = DEFAULT_ERR_CODE; in SetLabelFont()
144 StringUtils::FormatString(FORMAT_FONT.c_str(), fontSizeStr.c_str(), weight.c_str(), family.c_str()); in SetLabelFont()
165 Local<JSValueRef> weightArg = runtimeCallInfo->GetCallArgRef(2); // 2: index of font weight in SetContentFont()
179 std::string weight = DEFAULT_ERR_CODE; in SetContentFont() local
181 weight in SetContentFont()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_datepicker_ffi.h48 int32_t unit, const char* weight, const char* family, uint32_t style);
50 const char* weight, const char* family, uint32_t style);
52 const char* weight, const char* family, uint32_t style);
H A Dcj_alphabet_indexer_ffi.h35 double size, int32_t unit, const char* weight, const char* family, int32_t style);
37 double size, int32_t unit, const char* weight, const char* family, int32_t style);
39 double size, int32_t unit, const char* weight, const char* family, int32_t style);
H A Dcj_menu_item_ffi.cpp79 double size, int32_t unit, const char* weight, const char* family, int32_t style) in FfiOHOSAceFrameworkMenuItemContentFont()
90 std::string weightVal = weight; in FfiOHOSAceFrameworkMenuItemContentFont()
101 double size, int32_t unit, const char* weight, const char* family, int32_t style) in FfiOHOSAceFrameworkMenuItemLabelFont()
112 std::string weightVal = weight; in FfiOHOSAceFrameworkMenuItemLabelFont()
78 FfiOHOSAceFrameworkMenuItemContentFont( double size, int32_t unit, const char* weight, const char* family, int32_t style) FfiOHOSAceFrameworkMenuItemContentFont() argument
100 FfiOHOSAceFrameworkMenuItemLabelFont( double size, int32_t unit, const char* weight, const char* family, int32_t style) FfiOHOSAceFrameworkMenuItemLabelFont() argument
H A Dcj_select_ffi.cpp69 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetFont()
72 SelectModel::GetInstance()->SetFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetFont()
88 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetSelectedOptionFont()
91 SelectModel::GetInstance()->SetSelectedOptionFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetSelectedOptionFont()
107 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) in FfiOHOSAceFrameworkSelectSetOptionFont()
110 SelectModel::GetInstance()->SetOptionFontWeight(ConvertStrToFontWeight(weight)); in FfiOHOSAceFrameworkSelectSetOptionFont()
68 FfiOHOSAceFrameworkSelectSetFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetFont() argument
87 FfiOHOSAceFrameworkSelectSetSelectedOptionFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetSelectedOptionFont() argument
106 FfiOHOSAceFrameworkSelectSetOptionFont( int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family) FfiOHOSAceFrameworkSelectSetOptionFont() argument
H A Dcj_select_ffi.h41 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family);
45 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family);
49 int32_t style, const char* weight, double size, int32_t sizeUnit, const char* family);
H A Dcj_menu_item_ffi.h30 double size, int32_t unit, const char* weight, const char* family, int32_t style);
33 double size, int32_t unit, const char* weight, const char* family, int32_t style);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkTheme.js281 weight: ArkTypographyWeights.light,
285 weight: ArkTypographyWeights.light,
289 weight: ArkTypographyWeights.light,
293 weight: ArkTypographyWeights.bold,
297 weight: ArkTypographyWeights.bold,
301 weight: ArkTypographyWeights.bold,
305 weight: ArkTypographyWeights.medium,
309 weight: ArkTypographyWeights.medium,
313 weight: ArkTypographyWeights.medium,
317 weight
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_model_ng.h31 void SetFontWeight(FontWeight weight) override;
36 void SetLabelFontWeight(FontWeight weight) override;
46 static void SetLabelFontWeight(FrameNode* frameNode, FontWeight weight);
51 static void SetFontWeight(FrameNode* frameNode, FontWeight weight);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_font_mgr_test.cpp109 normalStyle.weight = FONT_WEIGHT_400; in HWTEST_F()
131 normalStyle.weight = FONT_WEIGHT_400; in HWTEST_F()
175 normalStyle.weight = FONT_WEIGHT_400; in HWTEST_F()
191 normalStyle.weight = FONT_WEIGHT_400; in HWTEST_F()
231 EXPECT_EQ(normalStyle.weight, FONT_WEIGHT_400); in HWTEST_F()
247 normalStyle.weight = FONT_WEIGHT_400; in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg_polygon.cpp126 const std::string& points1, const std::string& points2, double weight, SkPath* out) in CreateSkPaths()
152 begin.interpolate(end, weight, out); in CreateSkPaths()
157 const std::string& points1, const std::string& points2, double weight, RSPath* out) in CreateRSPaths()
183 out->BuildFromInterpolate(begin, end, weight); in CreateRSPaths()
235 float weight = 1.0f; in GetPath() local
242 weight = weight_ - firstPart; in GetPath()
247 if (!CreateSkPaths(pointsVector_[currValue].c_str(), pointsVector_[nextValue].c_str(), weight, out)) { in GetPath()
249 if (!CreateRSPaths(pointsVector_[currValue].c_str(), pointsVector_[nextValue].c_str(), weight, out)) { in GetPath()
125 CreateSkPaths( const std::string& points1, const std::string& points2, double weight, SkPath* out) CreateSkPaths() argument
156 CreateRSPaths( const std::string& points1, const std::string& points2, double weight, RSPath* out) CreateRSPaths() argument
H A Drender_svg_path.h35 void SetWeight(float weight) in SetWeight() argument
37 weight_ = weight; in SetWeight()
H A Drender_svg_polygon.h38 void SetWeight(float weight) in SetWeight() argument
40 weight_ = weight; in SetWeight()

Completed in 11 milliseconds

123456789