/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_bloom.cpp | 201 const auto targetSize = targets_.tex1Size[0]; local 205 uPc.viewportSizeInvSize = Math::Vec4(static_cast<float>(targetSize.x), static_cast<float>(targetSize.y), 206 1.0f / static_cast<float>(targetSize.x), 1.0f / static_cast<float>(targetSize.y)); 210 cmdList.Dispatch((targetSize.x + tgs.x - 1) / tgs.x, (targetSize.y + tgs.y - 1) / tgs.y, 1); 236 const auto targetSize = targets_.tex1Size[i]; in ComputeDownscale() local 240 uPc.viewportSizeInvSize = Math::Vec4(static_cast<float>(targetSize.x), static_cast<float>(targetSize in ComputeDownscale() 271 const auto targetSize = targets_.tex1Size[i - 1]; ComputeUpscale() local 307 const auto targetSize = baseSize_; ComputeCombine() local 348 const auto targetSize = targets_.tex1Size[0]; RenderDownscaleAndThreshold() local 391 const auto targetSize = targets_.tex1Size[idx]; RenderDownscale() local 440 const auto targetSize = targets_.tex1Size[idx - 1]; RenderUpscale() local 483 const auto targetSize = baseSize_; RenderCombine() local [all...] |
H A D | render_node_compute_generic.cpp | 172 const Math::UVec3 targetSize = { desc.width, desc.height, desc.depth }; in ExecuteFrame() local 173 cmdList.Dispatch((targetSize.x + threadGroupSize_.x - 1u) / threadGroupSize_.x, in ExecuteFrame() 174 (targetSize.y + threadGroupSize_.y - 1u) / threadGroupSize_.y, in ExecuteFrame() 175 (targetSize.z + threadGroupSize_.z - 1u) / threadGroupSize_.z); in ExecuteFrame()
|
H A D | render_node_shader_passes_generic.cpp | 321 const Math::UVec3 targetSize = { desc.width, desc.height, desc.depth }; in ExecuteFrameCompute() local 323 cmdList.Dispatch((targetSize.x + tgs.x - 1u) / tgs.x, (targetSize.y + tgs.y - 1u) / tgs.y, in ExecuteFrameCompute() 324 (targetSize.z + tgs.z - 1u) / tgs.z); in ExecuteFrameCompute()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/ |
H A D | menu_preview_layout_algorithm.cpp | 82 auto targetSize = menuPattern->GetTargetSize(); in UpdateLayoutConstraintForPreview() local 83 auto isOversize = GreatNotEqual(targetSize.Width(), maxWidth) || GreatNotEqual(targetSize.Height(), maxHeight); in UpdateLayoutConstraintForPreview() 85 auto widthDelta = targetSize.Width() - maxWidth; in UpdateLayoutConstraintForPreview() 86 auto heightDelta = targetSize.Height() - maxHeight; in UpdateLayoutConstraintForPreview() 88 maxHeight = targetSize.Height() * (maxWidth / targetSize.Width()); in UpdateLayoutConstraintForPreview() 90 maxWidth = targetSize.Width() * (maxHeight / targetSize.Height()); in UpdateLayoutConstraintForPreview()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_layout_algorithm.cpp | 195 auto targetSize = geometryNode->GetFrameSize(); in GetPopupStyleSheetOffset() local 197 return GetOffsetInAvoidanceRule(targetSize, targetOffset); in GetPopupStyleSheetOffset() 200 OffsetF SheetPresentationLayoutAlgorithm::GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset) in GetOffsetInAvoidanceRule() argument 204 auto targetPlacement = AvoidanceRuleOfPlacement(placement, targetSize, targetOffset); in GetOffsetInAvoidanceRule() 211 return (this->*offsetFunc)(targetSize, targetOffset); in GetOffsetInAvoidanceRule() 215 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset) in AvoidanceRuleOfPlacement() 227 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 241 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 251 bool SheetPresentationLayoutAlgorithm::CheckDirectionBottom(const SizeF& targetSize, const OffsetF& targetOffset) in CheckDirectionBottom() argument 258 bool SheetPresentationLayoutAlgorithm::CheckPlacementBottom(const SizeF& targetSize, cons argument 214 AvoidanceRuleOfPlacement( const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset) AvoidanceRuleOfPlacement() argument 270 CheckPlacementBottomLeft(const SizeF& targetSize, const OffsetF& targetOffset) CheckPlacementBottomLeft() argument 278 CheckPlacementBottomRight(const SizeF& targetSize, const OffsetF& targetOffset) CheckPlacementBottomRight() argument 287 GetOffsetWithBottom(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottom() argument 294 GetOffsetWithBottomLeft(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottomLeft() argument 315 GetOffsetWithBottomRight(const SizeF& targetSize, const OffsetF& targetOffset) GetOffsetWithBottomRight() argument [all...] |
H A D | sheet_presentation_layout_algorithm.h | 92 OffsetF GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset); 94 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset);
|
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/ |
H A D | auto_fill_manager_util.cpp | 32 if (config.targetSize.has_value()) { in ConvertToPopupUIExtensionConfig() 34 AutoFill::PopupSize targetSize = config.targetSize.value(); in ConvertToPopupUIExtensionConfig() local 35 popupSize.unit = ConvertPopupUnit(targetSize.unit); in ConvertToPopupUIExtensionConfig() 36 popupSize.width = static_cast<double>(targetSize.width); in ConvertToPopupUIExtensionConfig() 37 popupSize.height = static_cast<double>(targetSize.height); in ConvertToPopupUIExtensionConfig() 38 popupConfig.targetSize = popupSize; in ConvertToPopupUIExtensionConfig()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/ |
H A D | static_image_object.cpp | 26 const WeakPtr<ImageLoadingContext>& ctxWp, const SizeF& targetSize, bool forceResize, bool syncLoad) in MakeCanvasImage() 31 auto key = ImageUtils::GenerateImageKey(src_, targetSize); in MakeCanvasImage() 41 ImageProvider::MakeCanvasImage(Claim(this), ctx, targetSize, in MakeCanvasImage() local 25 MakeCanvasImage( const WeakPtr<ImageLoadingContext>& ctxWp, const SizeF& targetSize, bool forceResize, bool syncLoad) MakeCanvasImage() argument
|
H A D | image_loading_context.cpp | 109 SizeF targetSize = rawImageSize; in CalculateTargetSize() local 115 targetSize = SizeF(targetSize.Width() * widthScale, targetSize.Height() * heightScale); in CalculateTargetSize() 117 return targetSize; in CalculateTargetSize() 330 SizeF targetSize; in OnMakeCanvasImage() local 333 targetSize = *userDefinedSize; in OnMakeCanvasImage() 341 targetSize = CalculateTargetSize(srcRect_.GetSize(), dstRect_.GetSize(), imageSize); in OnMakeCanvasImage() 343 ImagePainter::ApplyImageFit(imageFit_, targetSize, dstSize_, srcRect_, dstRect_); in OnMakeCanvasImage() 346 // upscale targetSize i in OnMakeCanvasImage() 355 imageObj_->MakeCanvasImage(WeakClaim(this), targetSize, userDefinedSize.has_value(), syncLoad_); OnMakeCanvasImage() local 371 SizeF targetSize = CalculateTargetSize(srcRect_.GetSize(), dstRect_.GetSize(), imageSize); ResizableCalcDstSize() local [all...] |
H A D | image_utils.h | 35 inline static std::string GenerateImageKey(const ImageSourceInfo& src, const NG::SizeF& targetSize) in GenerateImageKey() argument 37 return src.GetKey() + "&size=" + targetSize.ToString(); in GenerateImageKey()
|
H A D | image_provider.h | 77 * @param targetSize target size of canvasImage 85 const SizeF& targetSize, const ImageDecoderOptions& imageDecoderOptions); 123 static void MakeCanvasImageHelper(const RefPtr<ImageObject>& obj, const SizeF& targetSize, const std::string& key,
|
H A D | static_image_object.h | 34 const WeakPtr<ImageLoadingContext>& ctxWp, const SizeF& targetSize, bool forceResize, bool syncLoad) override;
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | post_proc_test.cpp | 221 Size targetSize; in HWTEST_F() local 222 targetSize.width = 100; in HWTEST_F() 223 targetSize.height = 200; in HWTEST_F() 224 bool ret = postProc.CenterScale(targetSize, *pixelMap); in HWTEST_F() 260 Size targetSize; in HWTEST_F() local 261 targetSize.width = 0; in HWTEST_F() 262 targetSize.height = -1; in HWTEST_F() 263 bool ret = postProc.CenterScale(targetSize, *pixelMap); in HWTEST_F() 299 Size targetSize; in HWTEST_F() local 300 targetSize in HWTEST_F() 338 Size targetSize; HWTEST_F() local 364 Size targetSize; HWTEST_F() local 390 Size targetSize; HWTEST_F() local 416 Size targetSize; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/menu/ |
H A D | menu_element.cpp | 104 Size targetSize = targetRender->GetPaintSize(); in OnTargetCallback() local 107 Offset targetRightBottom(targetGlobalOffset.GetX() + targetSize.Width(), in OnTargetCallback() 108 targetGlobalOffset.GetY() + targetSize.Height()); in OnTargetCallback()
|
/foundation/multimodalinput/input/tools/event_inject/src/ |
H A D | get_device_node.cpp | 52 size_t targetSize = iter->second.size(); in GetDeviceNodeName() local 53 if (devIndex > targetSize) { in GetDeviceNodeName() 54 MMI_HILOGE("Failed to devIndex:%{public}d > targetSize:%{public}zu", devIndex, targetSize); in GetDeviceNodeName()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.h | 147 uint32_t targetSize, const DataBuffer& targetPositions); 149 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals); 151 uint32_t targetSize, const DataBuffer& targetPositions, const MeshBuilder::DataBuffer& targetTangents); 153 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals,
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_source_loading.cpp | 168 bool GenDecodeOpts(const Size &sourceSize, const Size &targetSize, DecodeOptions &decodeOpts)
in GenDecodeOpts() argument 170 if (targetSize.width == 0) {
in GenDecodeOpts() 175 if (NeedAutoResize(targetSize)) {
in GenDecodeOpts() 176 decodeOpts.desiredSize = targetSize;
in GenDecodeOpts() 181 int32_t scaleFactor = sourceSize.width / targetSize.width;
in GenDecodeOpts() 307 Size targetSize = ConvertDecodeSize(data_, imageInfo.size, desiredSize_);
in CreateImagePixelMap() local 308 if (!GenDecodeOpts(imageInfo.size, targetSize, decodeOpts)) {
in CreateImagePixelMap() 318 if (!NeedAutoResize(targetSize) && !ThumbnailUtils::ScaleTargetPixelMap(data_.source, targetSize,
in CreateImagePixelMap()
|
/foundation/arkui/ace_engine/test/mock/core/image_provider/ |
H A D | mock_image_decoder.cpp | 20 ImageDecoder::ImageDecoder(const RefPtr<ImageObject>& objW, const SizeF& targetSize, bool forceResize) {} in ImageDecoder() argument
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | native_image_test.cpp | 502 Size targetSize; in HWTEST_F() local 503 targetSize.width = 100; in HWTEST_F() 504 targetSize.height = 100; in HWTEST_F() 510 bool ret = pixelmap.ScalePixelMap(targetSize, dstSize, scaleMode, dstPixelMap); in HWTEST_F() 513 targetSize.width = 100; in HWTEST_F() 514 targetSize.height = 100; in HWTEST_F() 517 ret = pixelmap.ScalePixelMap(targetSize, dstSize, scaleMode, dstPixelMap); in HWTEST_F()
|
/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/unittest/capturer_test/src/ |
H A D | inner_capturer_unit_test.cpp | 151 size_t targetSize = 0; in InitRenderer() local 152 int32_t ret = audioRenderer_->GetBufferSize(targetSize); in InitRenderer() 160 if (ret == 0 && targetSize != 0) { in InitRenderer() 163 cacheBufferSize_ = targetSize; in InitRenderer() 166 AUDIO_ERR_LOG("Init renderer failed size:%{public}zu, ret:%{public}d", targetSize, ret); in InitRenderer()
|
/foundation/arkui/ace_engine/interfaces/inner_api/ace/ |
H A D | popup_ui_extension_config.h | 73 std::optional<PopupSize> targetSize;
member
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | capturer_in_server.cpp | 509 int32_t CapturerInServer::InitCacheBuffer(size_t targetSize) in InitCacheBuffer() argument 513 AUDIO_INFO_LOG("old size:%{public}zu, new size:%{public}zu", cacheSizeInBytes_, targetSize); in InitCacheBuffer() 514 cacheSizeInBytes_ = targetSize; in InitCacheBuffer() 521 AUDIO_ERR_LOG("ReConfig AudioRingCache to size %{public}u failed:ret%{public}zu", result.ret, targetSize); in InitCacheBuffer()
|
/foundation/multimedia/audio_framework/frameworks/native/toneplayer/src/ |
H A D | toneplayer_impl.cpp | 427 size_t targetSize = 0; in InitAudioRenderer() local 428 int32_t ret = audioRenderer_->GetBufferSize(targetSize); in InitAudioRenderer() 435 if (ret == 0 && targetSize != 0) { in InitAudioRenderer() 438 AUDIO_INFO_LOG("Init renderer with buffer %{public}zu, duration %{public}zu", targetSize, bufferDuration); in InitAudioRenderer()
|
/foundation/multimedia/player_framework/frameworks/native/soundpool/ |
H A D | cache_buffer.cpp | 103 size_t targetSize = 0; in CreateAudioRenderer() local 104 int32_t ret = audioRenderer->GetBufferSize(targetSize); in CreateAudioRenderer() 106 if (ret == 0 && targetSize != 0 && !audioRenderer->IsFastRenderer()) { in CreateAudioRenderer() 109 MEDIA_LOGI("Using buffer size:%{public}zu, duration %{public}zu", targetSize, bufferDuration); in CreateAudioRenderer()
|
/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/include/ |
H A D | auto_fill_custom_config.h | 76 std::optional<PopupSize> targetSize; member
|