Home
last modified time | relevance | path

Searched refs:targetSize (Results 1 - 25 of 83) sorted by relevance

1234

/foundation/graphic/graphic_3d/lume/LumeRender/src/node/
H A Drender_bloom.cpp201 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 Drender_node_compute_generic.cpp172 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 Drender_node_shader_passes_generic.cpp321 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 Dmenu_preview_layout_algorithm.cpp82 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 Dsheet_presentation_layout_algorithm.cpp195 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 Dsheet_presentation_layout_algorithm.h92 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 Dauto_fill_manager_util.cpp32 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 Dstatic_image_object.cpp26 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 Dimage_loading_context.cpp109 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 Dimage_utils.h35 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 Dimage_provider.h77 * @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 Dstatic_image_object.h34 const WeakPtr<ImageLoadingContext>& ctxWp, const SizeF& targetSize, bool forceResize, bool syncLoad) override;
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dpost_proc_test.cpp221 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 Dmenu_element.cpp104 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 Dget_device_node.cpp52 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 Dmesh_builder.h147 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 Dthumbnail_source_loading.cpp168 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 Dmock_image_decoder.cpp20 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 Dnative_image_test.cpp502 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 Dinner_capturer_unit_test.cpp151 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 Dpopup_ui_extension_config.h73 std::optional<PopupSize> targetSize; member
/foundation/multimedia/audio_framework/services/audio_service/server/src/
H A Dcapturer_in_server.cpp509 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 Dtoneplayer_impl.cpp427 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 Dcache_buffer.cpp103 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 Dauto_fill_custom_config.h76 std::optional<PopupSize> targetSize; member

Completed in 14 milliseconds

1234