Home
last modified time | relevance | path

Searched refs:byteSize (Results 1 - 25 of 92) sorted by relevance

1234

/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/
H A Drender_data_store_pod.cpp71 PLUGIN_ASSERT(offsetToData.index + offsetToData.byteSize <= (uint32_t)dataStore_.size()); in DestroyPod()
73 const auto last = first + static_cast<int32_t>(offsetToData.byteSize); in DestroyPod()
79 nameToOffset.second.index -= offsetToData.byteSize; in DestroyPod()
102 const uint32_t byteSize = iter->second.byteSize; in Set() local
103 PLUGIN_ASSERT(index + byteSize <= (uint32_t)dataStore_.size()); in Set()
104 PLUGIN_ASSERT(srcData.size() <= byteSize); in Set()
106 const uint32_t maxByteSize = std::min(byteSize, static_cast<uint32_t>(srcData.size())); in Set()
125 const uint32_t byteSize = iter->second.byteSize; in Get() local
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnntensor.cpp70 size_t byteSize = 0; in CreateData() local
71 auto ret = m_tensorDesc->GetByteSize(&byteSize); in CreateData()
76 if (byteSize > ALLOCATE_BUFFER_LIMIT) { in CreateData()
78 "it must greater than 0 and less than 1Gb. length=%{public}zu", byteSize); in CreateData()
82 ret = AllocateMemory(byteSize); in CreateData()
105 size_t byteSize = 0; in CreateData() local
106 auto ret = m_tensorDesc->GetByteSize(&byteSize); in CreateData()
111 if (size < byteSize) { in CreateData()
113 "or equal to byte size:%{public}zu.", size, byteSize); in CreateData()
137 size_t byteSize in CreateData() local
314 size_t byteSize = 0; CheckTensorData() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dmetadata_accessor_factory.cpp126 auto byteSize = static_cast<uint32_t>(sizeof(byte)); in GetImageType() local
128 auto ret = stream->Read(buff, IMAGE_HEADER_SIZE * byteSize); in GetImageType()
138 if (memcmp(buff, jpegHeader, sizeof(jpegHeader) * byteSize) == 0) { in GetImageType()
142 if (memcmp(buff, pngHeader, sizeof(pngHeader) * byteSize) == 0) { in GetImageType()
146 if (memcmp(buff, riffHeader, sizeof(riffHeader) * byteSize) == 0 && in GetImageType()
147 memcmp(buff + WEBP_HEADER_OFFSET, webpHeader, sizeof(webpHeader) * byteSize) == 0) { in GetImageType()
151 if (memcmp(buff + IMAGE_HEIF_HEADER_OFFSET, heifHeader, sizeof(heifHeader) * byteSize) == 0) { in GetImageType()
155 if ((memcmp(buff, DNG_LITTLE_ENDIAN_HEADER, sizeof(DNG_LITTLE_ENDIAN_HEADER) * byteSize) == 0) || in GetImageType()
156 (memcmp(buff, DNG_BIG_ENDIAN_HEADER, sizeof(DNG_BIG_ENDIAN_HEADER) * byteSize) == 0)) { in GetImageType()
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/containers/
H A Dbyte_array.h31 ByteArray(const size_t byteSize) : data_(make_unique<uint8_t[]>(byteSize)), byteSize_(byteSize) {} in ByteArray() argument
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Dproperty_util.cpp43 uint32_t byteSize = 0; // zero means that un-supported property type in GetPropertyTypeByteSize() local
49 byteSize = sizeof(uint32_t); in GetPropertyTypeByteSize()
54 byteSize = sizeof(Math::UVec2); in GetPropertyTypeByteSize()
59 byteSize = sizeof(Math::UVec3); in GetPropertyTypeByteSize()
64 byteSize = sizeof(Math::UVec4); in GetPropertyTypeByteSize()
67 byteSize = sizeof(Math::Mat3X3); in GetPropertyTypeByteSize()
70 byteSize = sizeof(Math::Mat4X4); in GetPropertyTypeByteSize()
73 return byteSize; in GetPropertyTypeByteSize()
204 const size_t byteSize = GetPropertyTypeByteSize(typeDecl); in AddOffsetProperty() local
206 if ((byteSize > in AddOffsetProperty()
214 byteSize, // size AddOffsetProperty() local
230 const size_t byteSize = GetPropertyTypeByteSize(typeDecl); AddOffsetProperty() local
240 byteSize, // size AddOffsetProperty() local
598 size_t byteSize = 0; AddOffsetProperty() local
621 byteSize, // size AddOffsetProperty() local
[all...]
H A Drender_frame_util.cpp46 const uint32_t byteSize, const EngineBufferCreationFlags engineBufferCreatoinAdditionalFlags) in GetStagingBufferDesc()
52 byteSize, in GetStagingBufferDesc()
157 const uint32_t byteSize = desc.byteSize; in ProcessFrameInputCopyData() local
159 copyDataRef.bufferHandle = gpuResourceMgr.Create(GetStagingBufferDesc(byteSize, ebcf)); in ProcessFrameInputCopyData()
162 copyDataRef.byteBuffer = make_unique<ByteArray>(byteSize); in ProcessFrameInputCopyData()
168 byteSize, // size in ProcessFrameInputCopyData()
175 const uint32_t byteSize = desc.width * desc.height * bytesPerPixel; in ProcessFrameInputCopyData() local
177 copyDataRef.bufferHandle = gpuResourceMgr.Create(GetStagingBufferDesc(byteSize, ebcf)); in ProcessFrameInputCopyData()
179 copyDataRef.byteBuffer = make_unique<ByteArray>(byteSize); in ProcessFrameInputCopyData()
45 GetStagingBufferDesc( const uint32_t byteSize, const EngineBufferCreationFlags engineBufferCreatoinAdditionalFlags) GetStagingBufferDesc() argument
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dproperty_util.cpp44 uint32_t byteSize = 0; // zero means that un-supported property type in GetPropertyTypeByteSize() local
50 byteSize = sizeof(uint32_t); in GetPropertyTypeByteSize()
55 byteSize = sizeof(Math::UVec2); in GetPropertyTypeByteSize()
60 byteSize = sizeof(Math::UVec3); in GetPropertyTypeByteSize()
65 byteSize = sizeof(Math::UVec4); in GetPropertyTypeByteSize()
68 byteSize = sizeof(Math::Mat3X3); in GetPropertyTypeByteSize()
71 byteSize = sizeof(Math::Mat4X4); in GetPropertyTypeByteSize()
76 return byteSize; in GetPropertyTypeByteSize()
209 const size_t byteSize = GetPropertyTypeByteSize(typeDecl); in AddOffsetProperty() local
211 if ((byteSize > in AddOffsetProperty()
219 byteSize, // size AddOffsetProperty() local
235 const size_t byteSize = GetPropertyTypeByteSize(typeDecl); AddOffsetProperty() local
245 byteSize, // size AddOffsetProperty() local
[all...]
H A Dmesh_builder.cpp444 GpuBufferDesc GetVertexBufferDesc(size_t byteSize, BufferUsageFlags additionalFlags, bool morphTarget) in GetVertexBufferDesc() argument
460 desc.byteSize = (uint32_t)byteSize; in GetVertexBufferDesc()
478 indexBufferDesc.byteSize = sizeof(T) * (uint32_t)indexCount; in GetIndexBufferDesc()
483 constexpr GpuBufferDesc GetMorphTargetBufferDesc(size_t byteSize, BufferUsageFlags additionalFlags) in GetMorphTargetBufferDesc() argument
492 desc.byteSize = (uint32_t)byteSize; in GetMorphTargetBufferDesc()
1038 gpuBufferDesc.byteSize = static_cast<uint32_t>(vertexDataSize_ + indexDataSize_ + jointDataSize_ + targetDataSize_); in Allocate()
1039 if (gpuBufferDesc.byteSize) { in Allocate()
1118 WriteData(positions, submesh, MeshComponent::Submesh::DM_VB_POS, acc.offset, acc.byteSize, buffe in SetVertexData()
1762 const auto byteSize = GatherDeltasP() local
1791 const auto byteSize = GatherDeltasP() local
1862 const auto byteSize = GatherDeltasPN() local
1902 const auto byteSize = GatherDeltasPN() local
1997 const auto byteSize = GatherDeltasPNT() local
2045 const auto byteSize = GatherDeltasPNT() local
2151 WriteData(const DataBuffer& srcData, const SubmeshExt& submesh, uint32_t attributeLocation, uint32_t& byteOffset, uint32_t& byteSize, uint8_t* dst) const WriteData() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_barrier_list.cpp34 void* AllocateBarrierListMemory(RenderBarrierList::LinearAllocatorStruct& allocator, const size_t byteSize) in AllocateBarrierListMemory() argument
36 void* rc = allocator.allocators[allocator.currentIndex]->Allocate(byteSize); in AllocateBarrierListMemory()
45 allocator.allocators.push_back(make_unique<LinearAllocator>(byteSize, alignment)); in AllocateBarrierListMemory()
48 rc = allocator.allocators[allocator.currentIndex]->Allocate(byteSize); in AllocateBarrierListMemory()
56 const size_t byteSize = count * sizeof(CommandBarrier); in AllocateCommandBarriers() local
57 return static_cast<CommandBarrier*>(AllocateBarrierListMemory(allocator, byteSize)); in AllocateCommandBarriers()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dtensor_desc.cpp151 OH_NN_ReturnCode TensorDesc::GetByteSize(size_t* byteSize) const in GetByteSize()
153 if (byteSize == nullptr) { in GetByteSize()
154 LOGE("GetByteSize failed, byteSize is nullptr."); in GetByteSize()
157 *byteSize = 0; in GetByteSize()
173 *byteSize = elementNum * typeSize; in GetByteSize()
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/
H A Dpipeline_layout_loader.cpp82 SafeGetJsonValue(*pcIter, "size", result.error, pl.pushConstant.byteSize); in Load()
83 SafeGetJsonValue(*pcIter, "byteSize", result.error, pl.pushConstant.byteSize); in Load()
87 if (pl.pushConstant.byteSize > PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE) { in Load()
89 uri.data(), pl.pushConstant.byteSize, PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE); in Load()
92 pl.pushConstant.byteSize = in Load()
93 Math::min(PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE, pl.pushConstant.byteSize); in Load()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_default_material_objects.cpp210 const uint32_t byteSize = in ProcessBuffers() local
212 objectCounts_.maxMeshCount = (byteSize / singleComponentStructSize) - MIN_UBO_OBJECT_COUNT; in ProcessBuffers()
213 CORE_ASSERT((int32_t(byteSize / singleComponentStructSize) - int32_t(MIN_UBO_OBJECT_COUNT)) > 0); in ProcessBuffers()
218 CORE_ENGINE_BUFFER_CREATION_DYNAMIC_RING_BUFFER, byteSize }); in ProcessBuffers()
234 const uint32_t byteSize = in ProcessBuffers() local
236 objectCounts_.maxMaterialCount = (byteSize / singleComponentStructSize) - MIN_UBO_OBJECT_COUNT; in ProcessBuffers()
237 CORE_ASSERT((int32_t(byteSize / singleComponentStructSize) - int32_t(MIN_UBO_OBJECT_COUNT)) > 0); in ProcessBuffers()
241 CORE_ENGINE_BUFFER_CREATION_DYNAMIC_RING_BUFFER, byteSize }; in ProcessBuffers()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/
H A Drender_data_store_default_material.cpp126 void* AllocateMatrixMemory(RenderDataStoreDefaultMaterial::LinearAllocatorStruct& allocator, const size_t byteSize) in AllocateMatrixMemory() argument
130 data = allocator.allocators[allocator.currentIndex]->Allocate(byteSize); in AllocateMatrixMemory()
136 allocator.allocators.push_back(make_unique<LinearAllocator>(byteSize, MEMORY_ALIGNMENT)); in AllocateMatrixMemory()
138 data = allocator.allocators[allocator.currentIndex]->Allocate(byteSize); in AllocateMatrixMemory()
146 const size_t byteSize = count * sizeof(Math::Mat4X4); in AllocateMatrices() local
147 return static_cast<Math::Mat4X4*>(AllocateMatrixMemory(allocator, byteSize)); in AllocateMatrices()
308 mcpo.byteSize = maxByteSize; in AddMaterialData()
388 mcpo.byteSize = maxByteSize; in AddInstanceMaterialData()
417 const uint32_t byteSize = sizeof(Math::Mat4X4) * jointCount; local
421 CloneData(jointMatrixData, byteSize, skinJointMatrice
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/node/
H A Drender_node_shader_passes_generic.cpp108 if (uboByteSize > uboData_.byteSize) { in PreExecuteFrame()
109 uboData_.byteSize = uboByteSize + (OFFSET_ALIGNMENT * OVERESTIMATE_COUNT); in PreExecuteFrame()
110 uboData_.byteSize = static_cast<uint32_t>(Align(uboData_.byteSize, OFFSET_ALIGNMENT)); in PreExecuteFrame()
116 CORE_ENGINE_BUFFER_CREATION_DYNAMIC_RING_BUFFER, uboData_.byteSize }); in PreExecuteFrame()
234 vbs[vbIdx] = { vr.bufferHandle.GetHandle(), vr.bufferOffset, vr.byteSize }; in ExecuteFrameGraphics()
242 { ib.bufferHandle.GetHandle(), ib.bufferOffset, ib.byteSize, ib.indexType }); in ExecuteFrameGraphics()
337 PLUGIN_ASSERT((uboData_.currentOffset + uboData.size_bytes()) < uboData_.byteSize); in WriteLocalUboData()
338 if ((uboData_.currentOffset + uboData.size_bytes()) < uboData_.byteSize) { in WriteLocalUboData()
340 const uint8_t* dataPtrEnd = uboData_.mapData + uboData_.byteSize; in WriteLocalUboData()
[all...]
H A Drender_node_default_acceleration_structure_staging.cpp124 const uint8_t* dstDataEnd = dstDataBegin + dstBufferDesc.byteSize; in ExecuteFrameProcessInstanceData()
146 const size_t byteSize = sizeof(VkAccelerationStructureInstanceKHR); in ExecuteFrameProcessInstanceData() local
147 uint8_t* dstData = dstDataBegin + byteSize * idx; in ExecuteFrameProcessInstanceData()
148 CloneData(dstData, size_t(dstDataEnd - dstData), &instance, byteSize); in ExecuteFrameProcessInstanceData()
H A Drender_node_staging.cpp49 const uint8_t* baseDstDataEnd = baseDstDataBegin + bufferDesc.byteSize; in CopyHostDirectlyToBuffer()
65 PLUGIN_ASSERT(bufferDesc.byteSize >= srcSize); in CopyHostDirectlyToBuffer()
91 PLUGIN_ASSERT((size_t(bufferDesc.byteSize) - dstOffset) >= copySize); in CopyHostDirectlyToBuffer()
92 if (!CloneData(data, bufferDesc.byteSize - dstOffset, srcPtr, copySize)) { in CopyHostDirectlyToBuffer()
H A Drender_node_create_gpu_buffers.cpp34 bool needsUpdate = (dependencyDesc.byteSize != desc.byteSize); in CheckForDescUpdates()
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_memory_allocator_vk.cpp276 uint64_t byteSize = 0; in DestroyBuffer() local
278 byteSize = (uint64_t)allocation->GetSize(); in DestroyBuffer()
288 memoryDebugStruct_.buffer -= byteSize; in DestroyBuffer()
328 uint64_t byteSize = 0; in DestroyImage() local
330 byteSize = (uint64_t)allocation->GetSize(); in DestroyImage()
340 memoryDebugStruct_.image -= byteSize; in DestroyImage()
354 const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) in FlushAllocation()
356 vmaFlushAllocation(allocator_, allocation, offset, byteSize); in FlushAllocation()
360 const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) in InvalidateAllocation()
362 vmaInvalidateAllocation(allocator_, allocation, offset, byteSize); in InvalidateAllocation()
353 FlushAllocation( const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) FlushAllocation() argument
359 InvalidateAllocation( const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) InvalidateAllocation() argument
[all...]
H A Dgpu_buffer_vk.cpp44 constexpr uint32_t GetAlignedByteSize(const uint32_t byteSize, const uint32_t alignment) in GetAlignedByteSize() argument
46 return (byteSize + alignment - 1) & (~(alignment - 1)); in GetAlignedByteSize()
115 platAccel_.byteSize = plat_.fullByteSize; in GpuBufferVk()
126 (VkDeviceSize)platAccel_.byteSize, // size in GpuBufferVk()
201 plat_.bindMemoryByteSize = GetAlignedByteSize(desc_.byteSize, Math::max(minBufferAlignment, minMapAlignment)); in CreateBufferImpl()
/foundation/ability/ability_base/interfaces/inner_api/base/src/
H A Dzchar_wrapper.cpp40 int byteSize = GetByteSize(value_); in ToString() local
42 WriteUTF8Bytes(buf, value_, byteSize); in ToString()
43 buf[byteSize] = '\0'; in ToString()
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/device/
H A Dpipeline_layout_desc.h83 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
113 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
213 uint32_t byteSize { 0 };
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/
H A Dgpu_program_util.cpp34 uint32_t byteSize { 0 };
90 outPl.pushConstant.byteSize = Math::max(outPl.pushConstant.byteSize, plRef.pushConstant.byteSize); in CombinePipelineLayouts()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dmodule_hdi_source.c186 uint32_t byteSize = 0; in GetByteSizeByFormat() local
189 byteSize = BYTE_SIZE_SAMPLE_U8; in GetByteSizeByFormat()
192 byteSize = BYTE_SIZE_SAMPLE_S16; in GetByteSizeByFormat()
195 byteSize = BYTE_SIZE_SAMPLE_S24; in GetByteSizeByFormat()
198 byteSize = BYTE_SIZE_SAMPLE_S32; in GetByteSizeByFormat()
201 byteSize = BYTE_SIZE_SAMPLE_S16; in GetByteSizeByFormat()
204 return byteSize; in GetByteSizeByFormat()
/foundation/arkui/ui_lite/frameworks/dock/
H A Dscreen_device_proxy.cpp121 uint8_t byteSize = DrawUtils::GetByteSizeByColorMode(frameBufferMode_); in GetScreenBitmapBuffer() local
122 uint32_t bufSize = width_ * height_ * byteSize; in GetScreenBitmapBuffer()
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Dmesh_component.h95 uint32_t byteSize { MAX_BUFFER_ACCESS_BYTE_SIZE };
104 uint32_t byteSize { MAX_BUFFER_ACCESS_BYTE_SIZE };

Completed in 15 milliseconds

1234