Home
last modified time | relevance | path

Searched refs:newHeight (Results 1 - 25 of 38) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Drosen_render_scene_viewer.cpp62 auto newHeight = static_cast<uint32_t>(GetLayoutSize().Height()); in PaintTextureLayer() local
63 if (width_ != newWidth || height_ != newHeight) { in PaintTextureLayer()
65 height_ = newHeight; in PaintTextureLayer()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp316 float newHeight = 0.0f; in SrcRectScaleFit() local
326 newHeight = srcHeight * newWidth / srcWidth; in SrcRectScaleFit()
328 newHeight = boundsHeight; in SrcRectScaleFit()
329 newWidth = newHeight * srcWidth / srcHeight; in SrcRectScaleFit()
332 newHeight = boundsHeight; in SrcRectScaleFit()
334 newHeight = newHeight * srcHeight / boundsHeight; in SrcRectScaleFit()
342 } else if (newHeight < srcHeight) { in SrcRectScaleFit()
343 float halfdh = (srcHeight - newHeight) / 2; in SrcRectScaleFit()
347 params.srcRect.GetTop() + halfdh + newHeight); in SrcRectScaleFit()
362 uint32_t newHeight = static_cast<uint32_t>(params.srcRect.GetHeight()); SrcRectScaleDown() local
1625 uint32_t newHeight = static_cast<uint32_t>(srcRect.height_); LayerScaleDown() local
1694 uint32_t newHeight = static_cast<uint32_t>(srcRect.height_); LayerScaleFit() local
[all...]
H A Drs_uni_render_composer_adapter.cpp1022 uint32_t newHeight = static_cast<uint32_t>(srcRect.h); in LayerScaleDown() local
1036 uint32_t newHeightDstWidth = newHeight * dstWidth; in LayerScaleDown()
1038 " newHeightDstWidth:%{public}d newWidth:%{public}d newHeight:%{public}d dstWidth:%{public}d" in LayerScaleDown()
1039 " dstHeight:%{public}d", newWidthDstHeight, newHeightDstWidth, newWidth, newHeight, dstWidth, dstHeight); in LayerScaleDown()
1042 newWidth = dstWidth * newHeight / dstHeight; in LayerScaleDown()
1045 newHeight = dstHeight * newWidth / dstWidth; in LayerScaleDown()
1061 uint32_t dh = currentHeight - newHeight; in LayerScaleDown()
1064 srcRect.h = static_cast<int32_t>(newHeight); in LayerScaleDown()
1090 uint32_t newHeight = static_cast<uint32_t>(srcRect.h); in LayerScaleDown() local
1104 uint32_t newHeightDstWidth = newHeight * dstWidt in LayerScaleDown()
1163 uint32_t newHeight = static_cast<uint32_t>(srcRect.h); LayerScaleFit() local
[all...]
H A Drs_composer_adapter.cpp790 int32_t newHeight = srcRect.h; in LayerScaleDown() local
798 if (newWidth * dstRect.h > newHeight * dstRect.w) { in LayerScaleDown()
799 newWidth = dstRect.w * newHeight / dstRect.h; in LayerScaleDown()
800 } else if (newWidth * dstRect.h < newHeight * dstRect.w) { in LayerScaleDown()
801 newHeight = dstRect.h * newWidth / dstRect.w; in LayerScaleDown()
817 int32_t dh = currentHeight - newHeight; in LayerScaleDown()
820 srcRect.h = newHeight; in LayerScaleDown()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp56 auto newHeight = (selfWidth / portWidth) * portHeight; in MeasureContent() local
57 newSize = contentConstraint.Constrain(SizeF(selfWidth, newHeight)); in MeasureContent()
/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drender_triangle.cpp64 double newHeight = (width / 2.0 + topDiff) * rate; in Calculate() local
65 double bottomDiff = newHeight - height; in Calculate()
/foundation/arkui/ace_engine/frameworks/core/components/dialog_modal/
H A Drender_dialog_modal.cpp248 double newHeight = clip->GetGlobalOffset().GetY() + clip->GetPaintRect().Height() - delta; in MovePage() local
249 context->MovePage(Offset(clip->GetPaintRect().Width(), newHeight), delta); in MovePage()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp918 int16_t newHeight = height + style_->paddingTop_ + style_->paddingBottom_ + in SetHeight() local
920 rect_.SetHeight(newHeight); in SetHeight()
930 int16_t newHeight = static_cast<int16_t>(GetParent()->GetHeight() * heightPercent); in SetHeightPercent() local
931 SetHeight(newHeight); in SetHeightPercent()
954 int16_t newHeight = static_cast<int16_t>(GetParent()->GetHeight() * heightPercent); in ResizePercent() local
955 Resize(newWidth, newHeight); in ResizePercent()
1039 int16_t newHeight = static_cast<int16_t>(GetParent()->GetHeight() * heightPercent); in SetPositionPercent() local
1040 SetPosition(newX, newY, newWidth, newHeight); in SetPositionPercent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_pattern.h124 void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
H A Dcalendar_dialog_pattern.cpp1330 [weak = WeakClaim(this)](int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight, in InitSurfaceChangedCallback()
1334 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in InitSurfaceChangedCallback()
1342 int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight) in HandleSurfaceChanged()
1344 if (newWidth == prevWidth && newHeight == prevHeight) { in HandleSurfaceChanged()
1341 HandleSurfaceChanged( int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight) HandleSurfaceChanged() argument
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_canvas.h34 int16_t newHeight; member
/foundation/window/window_manager/wm/src/
H A Dpicture_in_picture_controller.cpp476 float newHeight = 0; in UpdateContentSize() local
478 mainWindowXComponentController_->GetSize(newWidth, newHeight); in UpdateContentSize()
479 bool isSizeChange = IsContentSizeChanged(newWidth, newHeight, posX, posY); in UpdateContentSize()
482 static_cast<uint32_t>(newWidth), static_cast<uint32_t>(newHeight)}; in UpdateContentSize()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/platform/ohos/
H A Drs_render_service_client_test.cpp602 uint32_t newHeight = 1080; in HWTEST_F() local
603 rsClient->SetVirtualScreenResolution(virtualScreenId, newWidth, newHeight); in HWTEST_F()
606 EXPECT_EQ(curVirtualScreenResolution.GetVirtualScreenHeight(), newHeight); in HWTEST_F()
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
H A Dhencoder.h121 void DealWithResolutionChange(uint32_t newWidth, uint32_t newHeight);
H A Dhencoder.cpp984 void HEncoder::DealWithResolutionChange(uint32_t newWidth, uint32_t newHeight) in DealWithResolutionChange() argument
986 if (width_ != newWidth || height_ != newHeight) { in DealWithResolutionChange()
987 HLOGI("resolution changed, %ux%u -> %ux%u", width_, height_, newWidth, newHeight); in DealWithResolutionChange()
989 height_ = newHeight; in DealWithResolutionChange()
/foundation/arkui/ace_engine/frameworks/core/components/semi_modal/
H A Drender_semi_modal.cpp769 double newHeight = render->GetGlobalOffset().GetY() + render->GetPaintRect().Height() - delta; in MovePage() local
770 context->MovePage(Offset(render->GetPaintRect().Width(), newHeight), delta); in MovePage()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
H A Drs_interfaces_test.cpp151 uint32_t newHeight = 1080; in HWTEST_F() local
162 rsInterfaces->SetVirtualScreenResolution(virtualScreenId, newWidth, newHeight); in HWTEST_F()
166 EXPECT_EQ(curVirtualScreenResolution.GetVirtualScreenHeight(), newHeight); in HWTEST_F()
1423 uint32_t newHeight = 1080; in HWTEST_F() local
1430 int32_t ret = rsInterfaces->ResizeVirtualScreen(virtualScreenId, newWidth, newHeight); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp992 const uint32_t newHeight = in UpdatePlaneReflectionTargetResolution() local
1005 (newWidth > reflComp.renderTargetResolution[0]) || (newHeight > reflComp.renderTargetResolution[1])) { in UpdatePlaneReflectionTargetResolution()
1007 uint32_t newWidth, uint32_t newHeight, uint baseMipCount, bool depthImage) { in UpdatePlaneReflectionTargetResolution()
1013 desc.height = newHeight; in UpdatePlaneReflectionTargetResolution()
1025 static_cast<uint32_t>(std::log2f(static_cast<float>(std::max(newWidth, newHeight)))) + 1u); in UpdatePlaneReflectionTargetResolution()
1027 reCreateGpuImage(gpuResourceMgr, entity.id, colorRenderTarget, newWidth, newHeight, rptu.mipCount, false); in UpdatePlaneReflectionTargetResolution()
1034 reCreateGpuImage(gpuResourceMgr, entity.id, depthRenderTarget, newWidth, newHeight, 1u, true); in UpdatePlaneReflectionTargetResolution()
1037 reflComp.renderTargetResolution[1] = newHeight; in UpdatePlaneReflectionTargetResolution()
/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drender_text_field.h737 void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
H A Drender_text_field.cpp427 [weakTextField = AceType::WeakClaim(this)](int32_t newWidth, int32_t newHeight, int32_t prevWidth, in SetCallback()
431 textfield->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in SetCallback()
470 void RenderTextField::HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight) in HandleSurfaceChanged() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/web/
H A Dweb_pattern.cpp2325 double newHeight = height - keyboard - GetCoordinatePoint()->GetY(); in UpdateLayoutAfterKeyboardShow() local
2326 if (NearEqual(newHeight, oldWebHeight)) { in UpdateLayoutAfterKeyboardShow()
2332 visibleViewportSize_.SetHeight(newHeight); in UpdateLayoutAfterKeyboardShow()
2337 TAG_LOGI(AceLogTag::ACE_WEB, "KeyboardShow newHeight: %{public}f", newHeight); in UpdateLayoutAfterKeyboardShow()
2338 drawSize_.SetHeight(newHeight); in UpdateLayoutAfterKeyboardShow()
2342 heightAfterAvoid_ = newHeight; in UpdateLayoutAfterKeyboardShow()
3170 double newHeight = height - lastKeyboardHeight_ - y; in IsNeedResizeVisibleViewport() local
3171 if (GreatOrEqual(newHeight, drawSize_.Height()) || in IsNeedResizeVisibleViewport()
3172 NearEqual(newHeight, drawSize in IsNeedResizeVisibleViewport()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_pattern.h328 virtual void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
H A Dtext_pattern.cpp3130 [weak = WeakClaim(this)](int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight, in InitSurfaceChangedCallback()
3134 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in InitSurfaceChangedCallback()
3141 void TextPattern::HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight) in HandleSurfaceChanged() argument
3143 if (newWidth == prevWidth && newHeight == prevHeight) { in HandleSurfaceChanged()
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_test_ng.cpp3827 int32_t newHeight = 1; in HWTEST_F() local
3830 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in HWTEST_F()
3837 newHeight = 1; in HWTEST_F()
3840 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/
H A Dpipeline_context.h1006 void ExecuteSurfaceChangedCallbacks(int32_t newWidth, int32_t newHeight, WindowSizeChangeReason type);

Completed in 59 milliseconds

12