/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
H A D | rosen_render_scene_viewer.cpp | 62 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 D | rs_uni_render_util.cpp | 316 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 D | rs_uni_render_composer_adapter.cpp | 1022 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 D | rs_composer_adapter.cpp | 790 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 D | shape_container_layout_algorithm.cpp | 56 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 D | render_triangle.cpp | 64 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 D | render_dialog_modal.cpp | 248 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 D | ui_view.cpp | 918 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 D | calendar_dialog_pattern.h | 124 void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
|
H A D | calendar_dialog_pattern.cpp | 1330 [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 D | draw_canvas.h | 34 int16_t newHeight; member
|
/foundation/window/window_manager/wm/src/ |
H A D | picture_in_picture_controller.cpp | 476 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 D | rs_render_service_client_test.cpp | 602 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 D | hencoder.h | 121 void DealWithResolutionChange(uint32_t newWidth, uint32_t newHeight);
|
H A D | hencoder.cpp | 984 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 D | render_semi_modal.cpp | 769 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 D | rs_interfaces_test.cpp | 151 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 D | render_system.cpp | 992 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 D | render_text_field.h | 737 void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
|
H A D | render_text_field.cpp | 427 [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 D | web_pattern.cpp | 2325 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 D | text_pattern.h | 328 virtual void HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight);
|
H A D | text_pattern.cpp | 3130 [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 D | text_test_ng.cpp | 3827 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 D | pipeline_context.h | 1006 void ExecuteSurfaceChangedCallbacks(int32_t newWidth, int32_t newHeight, WindowSizeChangeReason type);
|