/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_bloom.cpp | 206 1.0f / static_cast<float>(targetSize.x), 1.0f / static_cast<float>(targetSize.y)); in ComputeDownscaleAndThreshold() 312 1.0f / static_cast<float>(targetSize.x), 1.0f / static_cast<float>(targetSize.y)); in ComputeCombine() 350 const ScissorDesc scissorDesc = { 0, 0, targetSize.x, targetSize.y }; in RenderDownscaleAndThreshold() 353 renderPass.renderPassDesc.renderArea = { 0, 0, targetSize.x, targetSize.y }; in RenderDownscaleAndThreshold() 376 1.0f / static_cast<float>(targetSize.x), 1.0f / static_cast<float>(targetSize.y)); in RenderDownscaleAndThreshold() 393 const ScissorDesc scissorDesc = { 0, 0, targetSize.x, targetSize.y }; in RenderDownscale() 396 renderPass.renderPassDesc.renderArea = { 0, 0, targetSize.x, targetSize.y }; in RenderDownscale() 442 const ScissorDesc scissorDesc = { 0, 0, targetSize.x, targetSize.y }; in RenderUpscale() 446 renderPassUpscale.renderPassDesc.renderArea = { 0, 0, targetSize.x, targetSize.y }; in RenderUpscale() 486 renderPass.renderPassDesc.renderArea = { 0, 0, targetSize.x, targetSize.y }; in RenderCombine() [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()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_presentation_layout_algorithm.cpp | 253 auto targetSize = geometryNode->GetFrameSize(); in GetPopupStyleSheetOffset() local 255 return GetOffsetInAvoidanceRule(targetSize, targetOffset); in GetPopupStyleSheetOffset() 262 auto targetPlacement = AvoidanceRuleOfPlacement(placement, targetSize, targetOffset); in GetOffsetInAvoidanceRule() 269 return (this->*offsetFunc)(targetSize, targetOffset); in GetOffsetInAvoidanceRule() 285 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 299 if ((this->*placementFunc)(targetSize, targetOffset)) { in AvoidanceRuleOfPlacement() 349 targetOffset.GetY() + targetSize.Height() + SHEET_TARGET_SPACE.ConvertToPx()); in GetOffsetWithBottom() 354 arrowOffsetX_ = targetSize.Width() / SHEET_HALF_SIZE; in GetOffsetWithBottomLeft() 377 arrowOffsetX_ = sheetWidth_ - targetSize.Width() / SHEET_HALF_SIZE; in GetOffsetWithBottomRight() 378 auto sheetOffset = OffsetF(targetOffset.GetX() + targetSize.Width() - sheetWidth_, in GetOffsetWithBottomRight() [all …]
|
H A D | sheet_presentation_layout_algorithm.h | 94 OffsetF GetOffsetInAvoidanceRule(const SizeF& targetSize, const OffsetF& targetOffset); 96 const Placement& currentPlacement, const SizeF& targetSize, const OffsetF& targetOffset);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/preview/ |
H A D | menu_preview_layout_algorithm.cpp | 91 auto targetSize = menuPattern->GetTargetSize(); in UpdateLayoutConstraintForPreview() local 92 …auto isOversize = GreatNotEqual(targetSize.Width(), maxWidth) || GreatNotEqual(targetSize.Height()… in UpdateLayoutConstraintForPreview() 94 auto widthDelta = targetSize.Width() - maxWidth; in UpdateLayoutConstraintForPreview() 95 auto heightDelta = targetSize.Height() - maxHeight; in UpdateLayoutConstraintForPreview() 97 maxHeight = targetSize.Height() * (maxWidth / targetSize.Width()); in UpdateLayoutConstraintForPreview() 99 maxWidth = targetSize.Width() * (maxHeight / targetSize.Height()); in UpdateLayoutConstraintForPreview()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/ |
H A D | image_loading_context.cpp | 106 SizeF targetSize = rawImageSize; in CalculateTargetSize() local 112 targetSize = SizeF(targetSize.Width() * widthScale, targetSize.Height() * heightScale); in CalculateTargetSize() 114 return targetSize; in CalculateTargetSize() 322 SizeF targetSize; in OnMakeCanvasImage() local 325 targetSize = *userDefinedSize; in OnMakeCanvasImage() 333 targetSize = CalculateTargetSize(srcRect_.GetSize(), dstRect_.GetSize(), imageSize); in OnMakeCanvasImage() 335 ImagePainter::ApplyImageFit(imageFit_, targetSize, dstSize_, srcRect_, dstRect_); in OnMakeCanvasImage() 339 if (targetSize.IsPositive() && sizeLevel_ > targetSize.Width()) { in OnMakeCanvasImage() 340 targetSize.ApplyScale(sizeLevel_ / targetSize.Width()); in OnMakeCanvasImage() 345 canvasKey_ = ImageUtils::GenerateImageKey(src_, targetSize); in OnMakeCanvasImage() [all …]
|
H A D | static_image_object.cpp | 26 …StaticImageObject::MakeCanvasImage(const RefPtr<ImageLoadingContext>& ctx, const SizeF& targetSize, in MakeCanvasImage() argument 30 auto key = ImageUtils::GenerateImageKey(src_, targetSize); in MakeCanvasImage() 40 ImageProvider::MakeCanvasImage(Claim(this), ctx, targetSize, { in MakeCanvasImage()
|
H A D | image_utils.h | 31 …inline static std::string GenerateImageKey(const ImageSourceInfo& src, const NG::SizeF& targetSize) in GenerateImageKey() argument 33 return src.GetKey() + "&size=" + targetSize.ToString(); in GenerateImageKey()
|
H A D | image_provider.h | 84 const SizeF& targetSize, const ImageDecoderOptions& imageDecoderOptions); 122 …static void MakeCanvasImageHelper(const RefPtr<ImageObject>& obj, const SizeF& targetSize, const s…
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/auto_fill_manager/src/ |
H A D | auto_fill_manager_util.cpp | 31 if (config.targetSize.has_value()) { in ConvertToPopupUIExtensionConfig() 33 AutoFill::PopupSize targetSize = config.targetSize.value(); in ConvertToPopupUIExtensionConfig() local 34 popupSize.unit = ConvertPopupUnit(targetSize.unit); in ConvertToPopupUIExtensionConfig() 35 popupSize.width = static_cast<double>(targetSize.width); in ConvertToPopupUIExtensionConfig() 36 popupSize.height = static_cast<double>(targetSize.height); in ConvertToPopupUIExtensionConfig() 37 popupConfig.targetSize = popupSize; in ConvertToPopupUIExtensionConfig()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_source_loading.cpp | 160 if (targetSize.width == 0) { in GenDecodeOpts() 165 if (NeedAutoResize(targetSize)) { in GenDecodeOpts() 166 decodeOpts.desiredSize = targetSize; in GenDecodeOpts() 171 int32_t scaleFactor = sourceSize.width / targetSize.width; in GenDecodeOpts() 305 float widthScale = (1.0f * targetSize.width) / pixelMap->GetWidth(); in GeneratePictureSource() 306 float heightScale = (1.0f * targetSize.height) / pixelMap->GetHeight(); in GeneratePictureSource() 314 const Size &targetSize) in GeneratePixelMapSource() argument 318 if (!GenDecodeOpts(sourceSize, targetSize, decodeOpts)) { in GeneratePixelMapSource() 330 if (!NeedAutoResize(targetSize) && !ThumbnailUtils::ScaleTargetPixelMap(pixelMap, targetSize, in GeneratePixelMapSource() 357 Size targetSize = ConvertDecodeSize(data_, imageInfo.size, desiredSize_); in CreateImagePixelMap() local [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | post_proc_test.cpp | 221 Size targetSize; variable 222 targetSize.width = 100; 260 Size targetSize; variable 261 targetSize.width = 0; 262 targetSize.height = -1; 299 Size targetSize; variable 300 targetSize.width = 200; 338 Size targetSize; variable 364 Size targetSize; variable 390 Size targetSize; variable [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiocapturer/test/unittest/capturer_test/src/ |
H A D | inner_capturer_unit_test.cpp | 148 size_t targetSize = 0; in InitRenderer() local 149 int32_t ret = audioRenderer_->GetBufferSize(targetSize); in InitRenderer() 157 if (ret == 0 && targetSize != 0) { in InitRenderer() 160 cacheBufferSize_ = targetSize; in InitRenderer() 163 AUDIO_ERR_LOG("Init renderer failed size:%{public}zu, ret:%{public}d", targetSize, ret); in InitRenderer()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_file_manager.c | 55 uint32_t targetSize = object->maxSize; in CapacityExpansion() local 56 while (targetSize < targetCapacity && targetSize <= MAX_BUFFER_LEN / DEFAULT_EXPANSION_RATIO) { in CapacityExpansion() 57 targetSize = targetSize * DEFAULT_EXPANSION_RATIO; in CapacityExpansion() 59 if (targetSize < targetCapacity) { in CapacityExpansion() 63 uint8_t *buf = Malloc(targetSize); in CapacityExpansion() 68 if (memcpy_s(buf, targetSize, object->buf, object->contentSize) != EOK) { in CapacityExpansion() 75 object->maxSize = targetSize; in CapacityExpansion()
|
/ohos5.0/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()
|
/ohos5.0/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()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.h | 147 uint32_t targetSize, const DataBuffer& targetPositions); in CORE3D_BEGIN_NAMESPACE() 149 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals); in CORE3D_BEGIN_NAMESPACE() 151 …uint32_t targetSize, const DataBuffer& targetPositions, const MeshBuilder::DataBuffer& targetTange… in CORE3D_BEGIN_NAMESPACE() 153 uint32_t targetSize, const DataBuffer& targetPositions, const DataBuffer& targetNormals, in CORE3D_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | native_image_test.cpp | 502 Size targetSize; variable 503 targetSize.width = 100; 504 targetSize.height = 100; 510 bool ret = pixelmap.ScalePixelMap(targetSize, dstSize, scaleMode, dstPixelMap); 513 targetSize.width = 100; 514 targetSize.height = 100; 517 ret = pixelmap.ScalePixelMap(targetSize, dstSize, scaleMode, dstPixelMap);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialib_statistic_test/src/ |
H A D | media_space_statistics_test.cpp | 389 int64_t targetSize = 0; in CheckQuerySize() local 392 targetSize = targetFileNumber * g_oneImageSize; in CheckQuerySize() 395 targetSize = targetFileNumber * g_oneVideoSize; in CheckQuerySize() 398 targetSize = targetFileNumber * g_oneAudioSize; in CheckQuerySize() 401 targetSize = targetFileNumber * g_oneFileSize; in CheckQuerySize() 404 …DIA_INFO_LOG("%s QueryTotalSize targetSize = %{public}lld", testNo.c_str(), (long long)targetSize); in CheckQuerySize() 406 EXPECT_TRUE(querySize >= targetSize); in CheckQuerySize() 408 EXPECT_EQ(querySize, targetSize); in CheckQuerySize()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/include/ |
H A D | thumbnail_source_loading.h | 33 EXPORT bool GenDecodeOpts(const Size &sourceSize, const Size &targetSize, DecodeOptions &decodeOpts… 179 bool GeneratePictureSource(std::unique_ptr<ImageSource> &imageSource, const Size &targetSize); 181 const Size &targetSize);
|
/ohos5.0/base/update/updater/services/diffpatch/patch/ |
H A D | image_patch.cpp | 99 … header.srcStart, header.srcLength, header.patchOffset, header.expandedLen, header.targetSize); in StartReadHeader() 138 info->packedSize = header.targetSize; in ApplyImagePatch() 156 if (originalSize != header.targetSize) { in ApplyImagePatch() 230 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader() 283 header.targetSize = static_cast<size_t>(ReadLE<uint64_t>(param.patch + offset)); in ReadHeader()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | renderer_in_client.cpp | 485 int32_t RendererInClientInner::InitCacheBuffer(size_t targetSize) in InitCacheBuffer() argument 490 cacheSizeInByte_ = targetSize; in InitCacheBuffer() 1613 size_t targetSize = bufferSize; in WriteRingCache() local 1615 while (targetSize >= sizePerFrameInByte_) { in WriteRingCache() 1624 size_t writeSize = std::min(writableSize, targetSize); in WriteRingCache() 1635 targetSize -= writeSize; in WriteRingCache() 1654 return speedCached ? oriBufferSize : bufferSize - targetSize; in WriteRingCache() 1750 size_t targetSize, BufferDesc *desc, bool &dropFlag) in DrainIncompleteFrame() argument 1753 result = ringCache_->Dequeue({desc->buffer, targetSize}); in DrainIncompleteFrame() 1756 int32_t ret = memset_s(desc->buffer, targetSize, 0, targetSize); in DrainIncompleteFrame() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/toneplayer/src/ |
H A D | toneplayer_impl.cpp | 437 size_t targetSize = 0; in InitAudioRenderer() local 438 int32_t ret = audioRenderer_->GetBufferSize(targetSize); in InitAudioRenderer() 445 if (ret == 0 && targetSize != 0) { in InitAudioRenderer() 448 …AUDIO_INFO_LOG("Init renderer with buffer %{public}zu, duration %{public}zu", targetSize, bufferDu… in InitAudioRenderer()
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | mapped_file.cpp | 33 bool MappedFile::ValidMappedSize(off_t& targetSize, const struct stat& stb) in ValidMappedSize() argument 38 targetSize = targetSize > max ? max : targetSize; in ValidMappedSize()
|
/ohos5.0/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | str_util.cpp | 35 void ArrayCopy(std::string *target, const int targetSize, const std::string *source, const int sour… in ArrayCopy() argument 37 if (target == nullptr || source == nullptr || (sourceSize > targetSize)) { in ArrayCopy()
|