Home
last modified time | relevance | path

Searched refs:size (Results 24476 - 24500 of 56212) sorted by relevance

1...<<971972973974975976977978979980>>...2249

/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/
H A Djson_util.h131 BASE_NS::array_view(jsonData.array_.data(), BASE_NS::Math::min(jsonData.array_.size(), container.size())); in FromJson()
217 constexpr size_t uidLength { to_string(BASE_NS::Uid {}).size() }; // default uid length in SafeGetJsonUidValue()
218 if (pos->string_.size() == uidLength) { in SafeGetJsonUidValue()
222 error += element + ": size does not match uid.\n"; in SafeGetJsonUidValue()
235 out.reserve(out.size() + array->array_.size()); in ParseArray()
/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Daudio_process_config.cpp63 size_t usageSize = config.filterOptions.usages.size(); in WriteInnerCapConfigToParcel()
74 size_t pidSize = config.filterOptions.pids.size(); in WriteInnerCapConfigToParcel()
165 temp << " " << config.filterOptions.usages.size() << " usages { ";
166 for (size_t i = 0; i < config.filterOptions.usages.size(); i++) {
184 temp << " " << config.filterOptions.pids.size() << " pids { ";
185 for (size_t i = 0; i < config.filterOptions.pids.size(); i++) {
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/parallel_render/
H A Drs_sub_thread.cpp314 auto size = glesVersion ? strlen(glesVersion) : 0; in CreateShareGrContext() local
315 handler->ConfigureContext(&options, glesVersion, size); in CreateShareGrContext()
331 auto size = vulkanVersion.size(); in CreateShareGrContext() local
332 handler->ConfigureContext(&options, vulkanVersion.c_str(), size); in CreateShareGrContext()
460 while (tmpSurfaces_.size() > 0) { in ReleaseSurface()
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dswapchain_vk.cpp87 if (surfaceFormats[0].format == VK_FORMAT_UNDEFINED && surfaceFormats.size() == 1) { in GetColorFormat()
91 for (size_t idx = 0; idx < formats.size(); ++idx) { in GetColorFormat()
92 for (size_t jdx = 0; jdx < surfaceFormats.size(); ++jdx) { in GetColorFormat()
114 for (size_t idx = 0; idx < surfaceFormats.size(); ++idx) { in GetColorInfo()
366 for (uint32_t idx = 0; idx < plat_.swapchainImages.imageViews.size(); ++idx) { in SwapchainVk()
457 currSemaphoreIdx_ = (currSemaphoreIdx_ + 1) % plat_.swapchainImages.semaphores.size(); in GetNextAcquireSwapchainSemaphoreIndex()
/foundation/multimedia/audio_framework/frameworks/js/napi/audiomanager/callback/
H A Dnapi_audio_routing_manager_callbacks.cpp60 AUDIO_INFO_LOG("Save callback reference success, prefer ouput device callback list size [%{public}zu]", in SaveCallbackReference()
61 preferredOutputDeviceCbList_.size()); in SaveCallbackReference()
93 CHECK_AND_RETURN_LOG(preferredOutputDeviceCbList_.size() > 0, in OnPreferredOutputDeviceUpdated()
95 AUDIO_DEBUG_LOG("OnPreferredOutputDeviceUpdated: Cb list size [%{public}zu]", in OnPreferredOutputDeviceUpdated()
96 preferredOutputDeviceCbList_.size()); in OnPreferredOutputDeviceUpdated()
205 AUDIO_INFO_LOG("Save callback reference success, prefer input device callback list size [%{public}zu]", in SaveCallbackReference()
206 preferredInputDeviceCbList_.size()); in SaveCallbackReference()
238 CHECK_AND_RETURN_LOG(preferredInputDeviceCbList_.size() > 0, "Cannot find the reference of prefer device callback"); in OnPreferredInputDeviceUpdated()
239 AUDIO_DEBUG_LOG("OnPreferredInputDeviceUpdated: Cb list size [%{public}zu]", preferredInputDeviceCbList_.size()); in OnPreferredInputDeviceUpdated()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_telemetry.cpp180 if (args[0].size() == cpuWordSize) { in GetCpuTime()
197 return (args.size() == required) && (args[0].find("cpu") == 0); in IsCpuLine()
211 if (!IsCpuLine(args) || (processed == infos.size())) { in GetCpuTime()
219 if (id < infos.size()) { in GetCpuTime()
251 if (line.size() == 1) { in GetCoreCount()
256 if (line.size() >= multiCoreLineLength) { in GetCoreCount()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_ui_first_surface_render_node_drawable.cpp276 auto size = params->GetCacheSize(); in InitCacheSurface() local
277 boundsWidth_ = size.x_; in InitCacheSurface()
278 boundsHeight_ = size.y_; in InitCacheSurface()
352 auto size = params->GetCacheSize(); in NeedInitCacheSurface() local
353 width = size.x_; in NeedInitCacheSurface()
354 height = size.y_; in NeedInitCacheSurface()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_surface_render_params.h167 return securityLayerIds_.size() != 0; in HasSecurityLayer()
171 return skipLayerIds_.size() != 0; in HasSkipLayer()
175 return snapshotSkipLayerIds_.size() != 0; in HasSnapshotSkipLayer()
179 return protectedLayerIds_.size() != 0; in HasProtectedLayer()
183 return privacyContentLayerIds_.size() != 0; in HasPrivacyContentLayer()
226 if (bufferCacheSet.size() > 0) { in SetBufferClearCacheSet()
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dparcel.cpp124 bool Parcel::WriteDataBytes(const void *data, size_t size) in WriteDataBytes() argument
133 bool Parcel::WriteBuffer(const void *data, size_t size) in WriteBuffer() argument
138 bool Parcel::WriteBufferAddTerminator(const void *data, size_t size, size_t typeSize) in WriteBufferAddTerminator() argument
143 bool Parcel::WriteUnpadBuffer(const void *data, size_t size) in WriteUnpadBuffer() argument
301 bool Parcel::ParseFrom(uintptr_t data, size_t size) in ParseFrom() argument
526 void *DefaultAllocator::Alloc(size_t size) in Alloc() argument
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dconvert_test.cpp203 EXPECT_EQ(sptextStyle.textShadows.size(), textStyle.shadows.size()); in HWTEST_F()
229 EXPECT_EQ(sptextStyle.fontFeatures.GetFontFeatures().size(), 1); in HWTEST_F()
232 EXPECT_EQ(sptextStyle.fontVariations.GetAxisValues().size(), 1); in HWTEST_F()
261 EXPECT_EQ(textStyle.fontFeatures.GetFontFeatures().size(), 1); in HWTEST_F()
264 EXPECT_EQ(textStyle.fontVariations.GetAxisValues().size(), 1); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/benchmarks/benchmark_dcl/
H A Ddrawing_playback.cpp75 ssize_t remaining = static_cast<ssize_t>(str.size()); in WriteStringToFilefd()
134 if (++curFrameNum_ == fPages_.size()) { in NextFrame()
299 if (words.size() != twoParam) { in GetDirectionAndStep()
313 for (size_t i = 0; i < words[1].size(); ++i) { in GetDirectionAndStep()
376 "To Modify, enter the action (More or less) and step size, for example, \"M 2\". \n" in Test()
419 MyAllocator(int fd, size_t size, uint8_t* mapFile) : fd_(fd), size_(size), mapFile_(mapFile) {} in MyAllocator() argument
508 std::cout << "The size of Ops is " << dcl_->GetOpItemSize() << std::endl; in LoadDrawCmdList()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/
H A Dstatic_factory.cpp228 std::shared_ptr<TextBlob> StaticFactory::DeserializeTextBlob(const void* data, size_t size, void* ctx) in DeserializeTextBlob() argument
232 return DDGRStaticFactory::DeserializeTextBlob(data, size, ctx); in DeserializeTextBlob()
235 return EngineStaticFactory::DeserializeTextBlob(data, size, ctx); in DeserializeTextBlob()
238 std::shared_ptr<Typeface> StaticFactory::DeserializeTypeface(const void* data, size_t size) in DeserializeTypeface() argument
242 return DDGRStaticFactory::DeserializeTypeface(data, size); in DeserializeTypeface()
245 return EngineStaticFactory::DeserializeTypeface(data, size); in DeserializeTypeface()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_canvas_drawing_render_node.cpp228 playbackNotOnTreeCmdSize_ += drawCmdLists_[RSModifierType::CONTENT_STYLE].size(); in ContentStyleSlotUpdate()
492 bool overflow = drawCmdLists_[type].size() > DRAWCMDLIST_COUNT_LIMIT; in CheckDrawCmdListSize()
497 GetId(), type, drawCmdLists_[type].size()); in CheckDrawCmdListSize()
502 drawCmdLists_[type].size() > DRAWCMDLIST_COUNT_LIMIT) { in CheckDrawCmdListSize()
505 if (drawCmdLists_[type].size() > DRAWCMDLIST_COUNT_LIMIT) { in CheckDrawCmdListSize()
508 GetId(), type, drawCmdLists_[type].size()); in CheckDrawCmdListSize()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_draw_cmd_test.cpp131 opts.size.width = 200; in HWTEST_F()
132 opts.size.height = 150; in HWTEST_F()
151 opts.size.width = 200; in HWTEST_F()
152 opts.size.height = 150; in HWTEST_F()
180 opts.size.width = 200; in HWTEST_F()
181 opts.size.height = 150; in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_raw_test.cpp71 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
107 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
172 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
202 ASSERT_EQ(imageInfo.size.width, 5976); in HWTEST_F()
203 ASSERT_EQ(imageInfo.size.height, 3992); in HWTEST_F()
259 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; in HWTEST_F()
264 ASSERT_EQ(imageInfo.size.width, 1); in HWTEST_F()
265 ASSERT_EQ(imageInfo.size.height, 1); in HWTEST_F()
268 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size in HWTEST_F()
[all...]
H A Dimage_source_wbmp_test.cpp184 ASSERT_EQ(imageInfo.size.width, 472); in HWTEST_F()
185 ASSERT_EQ(imageInfo.size.height, 75); in HWTEST_F()
241 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; in HWTEST_F()
245 ASSERT_EQ(imageInfo.size.width, 1); in HWTEST_F()
246 ASSERT_EQ(imageInfo.size.height, 1); in HWTEST_F()
H A Dimage_source_bmp_test.cpp69 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
104 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
168 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size. in HWTEST_F()
198 ASSERT_EQ(imageInfo.size.width, 472); in HWTEST_F()
199 ASSERT_EQ(imageInfo.size.height, 75); in HWTEST_F()
273 decodeOpts.CropRect = { imageInfo.size.width - 1, imageInfo.size.height - 1, 1, 1 }; in HWTEST_F()
277 ASSERT_EQ(imageInfo.size.width, 1); in HWTEST_F()
278 ASSERT_EQ(imageInfo.size.height, 1); in HWTEST_F()
281 * @tc.expected: step3. pack pixel map success and compare the jpeg compress file size in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/plugins/manager/src/framework/
H A Dimpl_class_mgr.cpp170 if ((capabilities.size() != 0) && (!temp->IsCompatible(capabilities))) { in ImplClassMgrGetClassInfo()
222 auto size = candidates.size(); in SearchByPriority() local
223 if (size == 0) { // 0 means class no candidate, return empty directly. in SearchByPriority()
224 IMAGE_LOGD("SearchByPriority: candidates size is zero."); in SearchByPriority()
228 if (size == 1) { // 1 means class only one candidate, no need to handle priority, return directly. in SearchByPriority()
282 if (candidates.size() == 0) { in SearchSimplePriority()
283 IMAGE_LOGE("SearchSimplePriority: candidates size is zero."); in SearchSimplePriority()
329 // for the bool type, the meaning of the size is unknown. we artificially define true greater than false here.
/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dfilter_base.cpp106 nextFilters.reserve(outPorts_.size()); in GetNextFilters()
111 ").", name_.c_str(), outPort->GetName().c_str(), outPorts_.size()); in GetNextFilters()
125 preFilters.reserve(inPorts_.size()); in GetPreFilters()
130 ").", name_.c_str(), inPort->GetName().c_str(), inPorts_.size()); in GetPreFilters()
149 ErrorCode FilterBase::PullData(const std::string& outPort, uint64_t offset, size_t size, AVBufferPtr& data) in PullData() argument
153 UNUSED_VARIABLE(size); in PullData()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_ndk_test.cpp63 struct OhosImageSize* size = nullptr; in HWTEST_F() local
64 int32_t result = OH_Image_Size(native, size); in HWTEST_F()
208 struct OhosImageSize* size = nullptr; in HWTEST_F() local
209 int32_t res = OH_Image_Receiver_GetSize(p, size); in HWTEST_F()
306 size_t size = 0; in HWTEST_F() local
308 int32_t ret = OH_ImageSource_CreateFromUri(env, uri, size, ops, res); in HWTEST_F()
/foundation/multimedia/av_session/frameworks/native/session/test/unittest/
H A Davsession_permission_test.cpp296 SLOGI("check descriptors count for stricter check size %{public}d", static_cast<int>(descriptors.size())); in HWTEST_F()
297 EXPECT_EQ(descriptors.size() >= 0, true); in HWTEST_F()
323 SLOGI("check descriptors count for stricter check size %{public}d", static_cast<int>(descriptors.size())); in HWTEST_F()
324 EXPECT_EQ(descriptors.size() >= 0, true); in HWTEST_F()
350 EXPECT_EQ(descriptors.size() >= 0, true); in HWTEST_F()
356 EXPECT_EQ(descriptors.size() >= 0, true); in HWTEST_F()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/creator/src/
H A Dimage_creator.cpp147 static void dumpBuffer(const uint8_t* tempBuffer, int64_t size) in dumpBuffer() argument
151 for (int i = 0; i < size; i++) { in dumpBuffer()
175 IMAGE_LOGD("create pixel map imageInfo.size.width=%{public}u.", in SaveSTP()
176 imageInfo.size.width); in SaveSTP()
232 uint32_t size = buffer->GetSize(); in SaveSenderBufferAsImage() local
233 if (!AllocHeapBuffer(size, &addr2)) { in SaveSenderBufferAsImage()
237 errorcode = SaveSTP(addr, addr2, size, initializationOpts); in SaveSenderBufferAsImage()
/foundation/multimedia/av_codec/test/fuzztest/encoderapi11_fuzzer/
H A Dvideoenc_api11_sample.cpp295 int32_t size = OH_AVBuffer_GetCapacity(buffer); in PushData() local
296 if (size < (defaultWidth * stride_ + (defaultWidth * stride_ / DOUBLE))) { in PushData()
299 attr.size = ReadOneFrameYUV420SP(fileBuffer); in PushData()
416 attr.size = 0; in SetEOS()
436 return signal_->inIdxQueue_.size() > 0; in InputFunc()
450 attr.size = OH_AVBuffer_GetCapacity(buffer); in InputFunc()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dpng_image_chunk_utils.cpp61 IMAGE_LOGE("Failed to read the keyword from the chunk data. Chunk data size: %{public}zu", chunkData.Size()); in ParseTextChunk()
72 IMAGE_LOGE("Failed to read the raw text from the chunk data. Chunk data size: %{public}zu", chunkData.Size()); in ParseTextChunk()
82 IMAGE_LOGE("Data size check failed: offset is larger than data size. " in GetKeywordFromChunk()
83 "Data size: %{public}zu", in GetKeywordFromChunk()
91 "Chunk data size: %{public}zu", in GetKeywordFromChunk()
198 const size_t languageTextLen = languageText.size(); in GetRawTextFromItxtChunk()
203 const size_t translatedKeyTextLen = translatedKeyText.size(); in GetRawTextFromItxtChunk()
243 bool PngImageChunkUtils::FindExifKeyword(const byte *keyword, size_t size) in FindExifKeyword() argument
245 if ((keyword == nullptr) || (size < PNG_CHUNK_KEYWORD_EXIF_APP1_SIZ in FindExifKeyword()
[all...]
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/
H A Davcodec_audio_flac_encoder_demo.cpp257 info.size = 0; in HandleEOS()
284 signal_->inCond_.wait(lock, [this]() { return (signal_->inQueue_.size() > 0 || !isRunning_.load()); }); in InputFunc()
299 info.size = frameBytes; in InputFunc()
330 signal_->outCond_.wait(lock, [this]() { return (signal_->outQueue_.size() > 0 || !isRunning_.load()); }); in OutputFunc()
342 outputFile_->write(reinterpret_cast<char *>(OH_AVMemory_GetAddr(data)), attr.size); in OutputFunc()
344 if (attr.flags == AVCODEC_BUFFER_FLAGS_EOS || attr.size == 0) { in OutputFunc()

Completed in 41 milliseconds

1...<<971972973974975976977978979980>>...2249