/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_toggle_button.cpp | 127 float coefficient = Interpolation::GetBezierY(x, BEZIER_CONTROL_POINT_X_1, 0, BEZIER_CONTROL_POINT_X_2, 1); in Callback() local 131 currentCenter_.x = rightCenter_.x - static_cast<uint16_t>((rightCenter_.x - leftCenter_.x) * coefficient); in Callback() 133 currentCenter_.x = static_cast<int16_t>((rightCenter_.x - leftCenter_.x) * coefficient) + leftCenter_.x; in Callback() 136 static_cast<uint8_t>(TOGGLE_BTN_UNSELECTED_OPA + (OPA_OPAQUE - TOGGLE_BTN_UNSELECTED_OPA) * coefficient); in Callback() 138 Color::GetMixColor(selectedStateColor_, Color::White(), static_cast<uint8_t>(OPA_OPAQUE * coefficient)); in Callback() 142 currentCenter_.x = static_cast<int16_t>((rightCenter_.x - leftCenter_.x) * coefficient) + leftCenter_.x; in Callback() 144 currentCenter_.x = rightCenter_.x - static_cast<uint16_t>((rightCenter_.x - leftCenter_.x) * coefficient); in Callback() 146 backgroundOpacity_ = static_cast<uint8_t>(OPA_OPAQUE - (OPA_OPAQUE - TOGGLE_BTN_UNSELECTED_OPA) * coefficient); in Callback() 148 static_cast<uint8_t>(OPA_OPAQUE * (1 - coefficient))); in Callback()
|
H A D | ui_radio_button.cpp | 169 float coefficient = in Callback() local 171 backgroundOpacity_ = (state_ == SELECTED) ? (static_cast<uint8_t>(coefficient * OPA_OPAQUE)) : in Callback() 172 (static_cast<uint8_t>((1 - coefficient) * OPA_OPAQUE)); in Callback() 173 coefficient = Interpolation::GetBezierY(x, ALPHA_BEZIER_CONTROL_POINT_X_1, 0, ALPHA_BEZIER_CONTROL_POINT_X_2, 1); in Callback() 174 currentRadius_ = (state_ == SELECTED) ? (static_cast<uint8_t>(coefficient * radiusSmall_)) : in Callback() 175 (static_cast<uint8_t>((1 - coefficient) * radiusSmall_)); in Callback()
|
H A D | ui_checkbox.cpp | 207 float coefficient = Interpolation::GetBezierY(x, BEZIER_CONTROL_POINT_X_1, 0, BEZIER_CONTROL_POINT_X_2, 1); in Callback() local 208 backgroundOpacity_ = (state_ == SELECTED) ? (static_cast<uint8_t>(coefficient * OPA_OPAQUE)) : in Callback() 209 (static_cast<uint8_t>((1 - coefficient) * OPA_OPAQUE)); in Callback()
|
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/dash/mpd_parser/ |
H A D | dash_mpd_util.cpp | 158 int32_t coefficient = 0; in DashStrToDuration() local 168 coefficient = M_2_S; in DashStrToDuration() 174 coefficient = D_2_H * H_2_M * M_2_S; in DashStrToDuration() 180 coefficient = H_2_M * M_2_S; in DashStrToDuration() 183 coefficient = 1; in DashStrToDuration() 189 time += (int64_t)(num * S_2_MS) * coefficient; in DashStrToDuration()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/ |
H A D | render_data_store_post_process.h | 126 return { input.vignetteConfiguration.coefficient, input.vignetteConfiguration.power, 0.0f, 0.0f }; in GetFactorVignette() 142 return { input.colorFringeConfiguration.coefficient, input.colorFringeConfiguration.distanceCoefficient, 0.0f, in GetFactorFringe()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/datastore/ |
H A D | render_data_store_render_pods.h | 175 /** Dirt mask coefficient */ 187 float coefficient { 0.5f }; 195 float coefficient { 1.0f }; 196 /** Distance coefficient */ 215 /* Amount coefficient */ 343 /** Velocity coefficient. */
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | render_data_configuration_loader.cpp | 139 SafeGetJsonValue(*cIter, "coefficient", err, ppConfig.vignetteConfiguration.coefficient); in LoadPostProcess() 145 SafeGetJsonValue(*cIter, "coefficient", err, ppConfig.colorFringeConfiguration.coefficient); in LoadPostProcess()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/ |
H A D | post_process_component_manager.cpp | 171 DECL_PROPERTY2(VignetteConfiguration, coefficient, "", 0) 176 DECL_PROPERTY2(ColorFringeConfiguration, coefficient, "", 0)
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_helper.cpp | 439 constexpr float coefficient = M_E / (1.0f - M_E); in CalculateFriction() local 440 auto fx = (gamma + coefficient) * (log(M_E - (M_E - 1.0f) * gamma) - 1.0f); in CalculateFriction()
|
/foundation/multimedia/player_framework/services/services/screen_capture/server/ |
H A D | screen_capture_server.cpp | 3089 double coefficient = 1; in MixAudio() local 3099 int32_t output = static_cast<int32_t>(temp * coefficient); in MixAudio() 3101 coefficient = static_cast<double>(max) / static_cast<double>(output); in MixAudio() 3105 coefficient = static_cast<double>(min) / static_cast<double>(output); in MixAudio() 3108 if (coefficient < 1) { in MixAudio() 3109 coefficient += (static_cast<double>(1) - coefficient) / splitNum; in MixAudio()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/ |
H A D | lume_common.cpp | 1088 postProcess.colorFringeConfiguration.coefficient = 1.5f; in SetupPostprocess()
|