Home
last modified time | relevance | path

Searched refs:newWidth (Results 1 - 25 of 37) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Drosen_render_scene_viewer.cpp61 auto newWidth = static_cast<uint32_t>(GetLayoutSize().Width()); in PaintTextureLayer() local
63 if (width_ != newWidth || height_ != newHeight) { in PaintTextureLayer()
64 width_ = newWidth; in PaintTextureLayer()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_util.cpp315 float newWidth = 0.0f; in SrcRectScaleFit() local
325 newWidth = boundsWidth; in SrcRectScaleFit()
326 newHeight = srcHeight * newWidth / srcWidth; in SrcRectScaleFit()
329 newWidth = newHeight * srcWidth / srcHeight; in SrcRectScaleFit()
331 newWidth = boundsWidth; in SrcRectScaleFit()
335 newWidth = newWidth * srcWidth / boundsWidth; in SrcRectScaleFit()
336 if (newWidth < srcWidth) { in SrcRectScaleFit()
337 float halfdw = (srcWidth - newWidth) / 2; in SrcRectScaleFit()
340 params.srcRect.GetLeft() + halfdw + newWidth, in SrcRectScaleFit()
361 uint32_t newWidth = static_cast<uint32_t>(params.srcRect.GetWidth()); SrcRectScaleDown() local
1624 uint32_t newWidth = static_cast<uint32_t>(srcRect.width_); LayerScaleDown() local
1693 uint32_t newWidth = static_cast<uint32_t>(srcRect.width_); LayerScaleFit() local
[all...]
H A Drs_uni_render_composer_adapter.cpp1021 uint32_t newWidth = static_cast<uint32_t>(srcRect.w); in LayerScaleDown() local
1035 uint32_t newWidthDstHeight = newWidth * dstHeight; 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()
1053 if (newWidth < currentWidth) { in LayerScaleDown()
1055 uint32_t dw = currentWidth - newWidth; in LayerScaleDown()
1058 srcRect.w = static_cast<int32_t>(newWidth); in LayerScaleDown()
1089 uint32_t newWidth in LayerScaleDown() local
1162 uint32_t newWidth = static_cast<uint32_t>(srcRect.w); LayerScaleFit() local
[all...]
H A Drs_composer_adapter.cpp789 int32_t newWidth = srcRect.w; 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()
809 if (newWidth < currentWidth) { in LayerScaleDown()
811 int32_t dw = currentWidth - newWidth; in LayerScaleDown()
814 srcRect.w = newWidth; in LayerScaleDown()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp60 auto newWidth = (selfHeight / portHeight) * portWidth; in MeasureContent() local
61 newSize = contentConstraint.Constrain(SizeF(newWidth, selfHeight)); in MeasureContent()
/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/
H A Dselecttitlebar.js141 let newWidth = Number(newValue.width);
143 newWidth -= ImageMenuItem.imageHotZoneWidth;
144 newWidth += SelectTitleBar.leftPadding;
145 newWidth -= SelectTitleBar.leftPaddingWithBack;
150 newWidth -= ImageMenuItem.imageHotZoneWidth * CollapsibleMenuSection.maxCountOfVisibleItems;
152 newWidth -= ImageMenuItem.imageHotZoneWidth * menusLength;
156 this.selectMaxWidth = newWidth - SelectTitleBar.badgeSize - SelectTitleBar.leftPadding -
159 this.selectMaxWidth = newWidth - SelectTitleBar.leftPadding - SelectTitleBar.rightPadding;
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_view.cpp892 int16_t newWidth = width + style_->paddingLeft_ + style_->paddingRight_ + in SetWidth() local
894 rect_.SetWidth(newWidth); in SetWidth()
904 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); in SetWidthPercent() local
905 SetWidth(newWidth); in SetWidthPercent()
953 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); in ResizePercent() local
955 Resize(newWidth, newHeight); in ResizePercent()
1038 int16_t newWidth = static_cast<int16_t>(GetParent()->GetWidth() * widthPercent); 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.h33 int16_t newWidth; member
/foundation/window/window_manager/wm/src/
H A Dpicture_in_picture_controller.cpp475 float newWidth = 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.cpp601 uint32_t newWidth = 1920; in HWTEST_F() local
603 rsClient->SetVirtualScreenResolution(virtualScreenId, newWidth, newHeight); in HWTEST_F()
605 EXPECT_EQ(curVirtualScreenResolution.GetVirtualScreenWidth(), newWidth); 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()
988 width_ = newWidth; in DealWithResolutionChange()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/
H A Drs_interfaces_test.cpp150 uint32_t newWidth = 1920; in HWTEST_F() local
162 rsInterfaces->SetVirtualScreenResolution(virtualScreenId, newWidth, newHeight); in HWTEST_F()
165 EXPECT_EQ(curVirtualScreenResolution.GetVirtualScreenWidth(), newWidth); in HWTEST_F()
1422 uint32_t newWidth = 1920; in HWTEST_F() local
1430 int32_t ret = rsInterfaces->ResizeVirtualScreen(virtualScreenId, newWidth, newHeight); in HWTEST_F()
/foundation/arkui/ui_lite/frameworks/common/
H A Dtext.cpp436 int16_t newWidth = width - ellipsisWidth; in GetLine() local
437 maxLineBytes = CalculateLineWithEllipsis(begin, textLen, newWidth, letterSpace, lineNum, letterIndex, in GetLine()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp989 const uint32_t newWidth = 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()
1012 desc.width = newWidth; 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()
1036 reflComp.renderTargetResolution[0] = newWidth; 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/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.cpp3826 int32_t newWidth = 1; in HWTEST_F() local
3830 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in HWTEST_F()
3836 newWidth = 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);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_pattern.cpp5214 void TextFieldPattern::HandleSurfaceChanged(int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight) in HandleSurfaceChanged() argument
5216 if (newWidth == prevWidth && newHeight == prevHeight) { in HandleSurfaceChanged()
5222 newWidth, newHeight, prevWidth, prevHeight); in HandleSurfaceChanged()
5226 } else if (newWidth != prevWidth || newHeight != prevHeight) { in HandleSurfaceChanged()
5252 [weak = WeakClaim(this)](int32_t newWidth, int32_t newHeight, int32_t prevWidth, int32_t prevHeight, in InitSurfaceChangedCallback()
5256 pattern->HandleSurfaceChanged(newWidth, newHeight, prevWidth, prevHeight); in InitSurfaceChangedCallback()
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/inner_model/
H A Dinner_model_test.cpp2407 uint64_t newWidth{0}; in HWTEST_F()
2412 void* primitive = mindspore::lite::MindIR_Resize_CreatePrimitive(method, newHeight, newWidth, in HWTEST_F()

Completed in 67 milliseconds

12