Home
last modified time | relevance | path

Searched refs:byteSize (Results 1 – 25 of 96) sorted by relevance

1234

/ohos5.0/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()
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()
137 size_t byteSize = 0; in CreateData() local
155 if ((size - offset) < byteSize) { in CreateData()
314 size_t byteSize = 0; in CheckTensorData() local
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/
H A Drender_data_store_pod.cpp71 …PLUGIN_ASSERT(offsetToData.index + offsetToData.byteSize <= static_cast<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 <= static_cast<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
126 PLUGIN_ASSERT(index + byteSize <= static_cast<uint32_t>(dataStore_.size())); in Get()
129 view = array_view<const uint8_t>(data, byteSize); in Get()
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Dproperty_util.cpp49 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()
206 if ((byteSize > 0) && reserved) { in AddOffsetProperty()
232 if ((byteSize > 0) && reserved) { in AddOffsetProperty()
598 size_t byteSize = 0; in AddOffsetProperty() local
[all …]
H A Drender_frame_util.cpp46 const uint32_t byteSize, const EngineBufferCreationFlags engineBufferCreatoinAdditionalFlags) in GetStagingBufferDesc() argument
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()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dproperty_util.cpp50 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 > 0) && reserved) { in AddOffsetProperty()
237 if ((byteSize > 0) && reserved) { in AddOffsetProperty()
[all …]
H A Dmesh_builder.cpp460 desc.byteSize = static_cast<uint32_t>(byteSize); in GetVertexBufferDesc()
492 desc.byteSize = static_cast<uint32_t>(byteSize); in GetMorphTargetBufferDesc()
1039 if (gpuBufferDesc.byteSize) { in Allocate()
1764 const auto byteSize = in GatherDeltasP() local
1766 submesh.morphTargets[trg].byteSize = byteSize; in GatherDeltasP()
1793 const auto byteSize = in GatherDeltasP() local
1795 submesh.morphTargets[trg].byteSize = byteSize; in GatherDeltasP()
1866 submesh.morphTargets[trg].byteSize = byteSize; in GatherDeltasPN()
1906 submesh.morphTargets[trg].byteSize = byteSize; in GatherDeltasPN()
2001 submesh.morphTargets[trg].byteSize = byteSize; in GatherDeltasPNT()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_barrier_list.cpp34 …locateBarrierListMemory(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()
/ohos5.0/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()
H A Drender_node_morph.cpp226 const auto vertexSize = submesh.morphTargetBuffer.byteSize - indexSize; in ComputeMorphs()
236 submesh.vertexBuffers[0u].byteSize); // position in ComputeMorphs()
239 submesh.vertexBuffers[1u].byteSize); // normal in ComputeMorphs()
242 submesh.vertexBuffers[2u].byteSize); // tangent in ComputeMorphs()
/ohos5.0/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 BASE_BEGIN_NAMESPACE()
/ohos5.0/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()
/ohos5.0/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()
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()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/
H A Drender_data_store_default_material.cpp130 data = allocator.allocators[allocator.currentIndex]->Allocate(byteSize); 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; in AddSkinJointMatrices() local
421 CloneData(jointMatrixData, byteSize, skinJointMatrices.data(), byteSize); in AddSkinJointMatrices()
423 … CloneData(jointMatrixData + jointCount, byteSize, prevSkinJointMatrices.data(), byteSize); in AddSkinJointMatrices()
426 … CloneData(jointMatrixData + jointCount, byteSize, skinJointMatrices.data(), byteSize); in AddSkinJointMatrices()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_memory_allocator_vk.cpp276 uint64_t byteSize = 0; in DestroyBuffer() local
278 byteSize = static_cast<uint64_t>(allocation->GetSize()); in DestroyBuffer()
288 memoryDebugStruct_.buffer -= byteSize; in DestroyBuffer()
328 uint64_t byteSize = 0; in DestroyImage() local
330 byteSize = static_cast<uint64_t>(allocation->GetSize()); in DestroyImage()
340 memoryDebugStruct_.image -= byteSize; in DestroyImage()
354 const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) in FlushAllocation() argument
356 vmaFlushAllocation(allocator_, allocation, offset, byteSize); in FlushAllocation()
360 const VmaAllocation& allocation, const VkDeviceSize offset, const VkDeviceSize byteSize) in InvalidateAllocation() argument
362 vmaInvalidateAllocation(allocator_, allocation, offset, byteSize); in InvalidateAllocation()
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, minMap… in CreateBufferImpl()
/ohos5.0/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()
157 *byteSize = 0; in GetByteSize()
173 *byteSize = elementNum * typeSize; in GetByteSize()
/ohos5.0/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 };
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/
H A Dgpu_program_util.cpp34 uint32_t byteSize { 0 }; member
90 … outPl.pushConstant.byteSize = Math::max(outPl.pushConstant.byteSize, plRef.pushConstant.byteSize); in CombinePipelineLayouts()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/
H A Drender_data_structures.h51 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
61 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
73 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
83 uint32_t byteSize { PipelineStateConstants::GPU_BUFFER_WHOLE_SIZE };
/ohos5.0/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 };
/ohos5.0/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()

1234