Home
last modified time | relevance | path

Searched refs:indices (Results 1 - 25 of 57) sorted by relevance

123

/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/
H A Dtype_converter.cpp30 #define TYPE_CONVERT_ITEMS(input, output, indices) \
32 std::for_each(indices.begin(), indices.end(), [input, output](size_t i) { \
41 std::vector<size_t> indices(inputSize); in DoCast()
42 std::iota(indices.begin(), indices.end(), 0); in DoCast()
46 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast()
51 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast()
56 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast()
61 TYPE_CONVERT_ITEMS(inputAddr, outputAddr, indices); in DoCast()
[all...]
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_util.cpp102 vector<IndexType>& indices; member
110 vector<uint16_t>& indices = geometry.indices; in GenerateCubeGeometry() local
115 indices.reserve(countof(CUBE_INDICES)); in GenerateCubeGeometry()
141 indices.push_back(i); in GenerateCubeGeometry()
150 vector<uint32_t>& indices = geometry.indices; in GenerateSphereGeometry() local
158 indices.reserve(maxIndexCount); in GenerateSphereGeometry()
183 indices.push_back(curRow + sector); in GenerateSphereGeometry()
184 indices in GenerateSphereGeometry()
201 vector<uint32_t>& indices = geometry.indices; GenerateConeCap() local
240 vector<uint32_t>& indices = geometry.indices; GenerateConeGeometry() local
312 vector<uint32_t>& indices = geometry.indices; GenerateTorusGeometry() local
367 CalculateTangentImpl(const array_view<const IndexType>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4>& outTangents) CalculateTangentImpl() argument
426 CalculateTangents(const array_view<const uint32_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument
433 CalculateTangents(const array_view<const uint16_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument
440 CalculateTangents(const array_view<const uint8_t>& indices, const array_view<const Math::Vec3>& positions, const array_view<const Math::Vec3>& normals, const array_view<const Math::Vec2>& uvs, array_view<Math::Vec4> outTangents) CalculateTangents() argument
520 auto indices = FillData(PLANE_IND); GeneratePlaneMesh() local
532 vector<uint32_t> indices; GenerateSphereMesh() local
568 vector<uint32_t> indices; GenerateConeMesh() local
604 vector<uint32_t> indices; GenerateTorusMesh() local
640 vector<uint16_t> indices; GenerateCubeMesh() local
[all...]
H A Dmesh_util.h70 static void CalculateTangents(const BASE_NS::array_view<const uint8_t>& indices,
75 static void CalculateTangents(const BASE_NS::array_view<const uint16_t>& indices,
80 static void CalculateTangents(const BASE_NS::array_view<const uint32_t>& indices,
H A Dmesh_builder.cpp865 void SmoothNormal(array_view<const T> indices, const Math::Vec3* posPtr, Math::Vec3* norPtr) in SmoothNormal() argument
867 for (auto i = 0U; i < indices.size(); i += 3) { // 3: step in SmoothNormal()
868 const auto aa = indices[i]; in SmoothNormal()
869 const auto bb = indices[i + 1]; in SmoothNormal()
870 const auto cc = indices[i + 2]; // 2: index in SmoothNormal()
881 void GenerateDefaultNormals(vector<uint8_t>& generatedNormals, const IMeshBuilder::DataBuffer& indices, in GenerateDefaultNormals() argument
888 if (indices.buffer.empty()) { in GenerateDefaultNormals()
889 // Mesh without indices will have flat normals in GenerateDefaultNormals()
901 if (indices.stride == sizeof(uint16_t)) { in GenerateDefaultNormals()
903 reinterpret_cast<const uint16_t*>(indices in GenerateDefaultNormals()
924 GenerateDefaultTangents(IMeshBuilder::DataBuffer& tangents, vector<uint8_t>& generatedTangents, const IMeshBuilder::DataBuffer& indices, const IMeshBuilder::DataBuffer& positions, const IMeshBuilder::DataBuffer& normals, const IMeshBuilder::DataBuffer& uvs, uint32_t vertexCount) GenerateDefaultTangents() argument
1192 SetIndexData(size_t submeshIndex, const DataBuffer& indices) SetIndexData() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/vertices_fuzzer/
H A Dvertices_fuzzer.cpp52 uint16_t* indices = new uint16_t[arr_size]; in VerticesFuzzTest000() local
57 indices[i] = GetObject<uint16_t>(); in VerticesFuzzTest000()
59 ver.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_size, indices); in VerticesFuzzTest000()
60 ver1.MakeCopy(static_cast<VertexMode>(mode % MATH_THREE), MATH_TWO, positions, texs, colors, arr_size, indices); in VerticesFuzzTest000()
78 if (indices != nullptr) { in VerticesFuzzTest000()
79 delete [] indices; in VerticesFuzzTest000()
80 indices = nullptr; in VerticesFuzzTest000()
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_structures_common.h59 // factor indices
170 // aligned for 256 with indices uvec4 bytes
174 // factor indices
242 uvec4 indices; member
255 uvec4 indices; member
264 uvec4 indices; member
295 uvec4 indices; member
328 uvec4 indices; member
352 uvec4 indices; member
363 uvec4 indices; member
403 uvec4 indices; global() member
443 GetUnpackFlatIndices(in uint indices, out uint cameraIdx, out uint instanceIdx) GetUnpackFlatIndices() argument
449 GetUnpackFlatIndicesInstanceIdx(in uint indices) GetUnpackFlatIndicesInstanceIdx() argument
454 GetUnpackFlatIndicesCameraIdx(in uint indices) GetUnpackFlatIndicesCameraIdx() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeDotfield/assets/app/shaders/common/
H A Ddotfield_struct_common.h21 uvec4 indices; member
27 uvec4 indices; member
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dpanorama2_demo.js46 let indices;
55 indices = new Uint8Array(sphere.indices);
69 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, indices, gl.STATIC_DRAW);
110 gl.drawElements(gl.TRIANGLES, indices.length, gl.UNSIGNED_BYTE, 0);
H A Dshadow2_demo.js184 let indices = new Uint8Array([0, 1, 2, 0, 2, 3]);
188 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE);
194 o.numIndices = indices.length;
264 let indices = triangleIndices;
269 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); // indexBuffer
273 o.numIndices = indices.length;
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dpanorama_demo.js43 let indices;
52 indices = new Uint8Array(sphere.indices);
66 gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, indices, gl.STATIC_DRAW);
107 gl.drawElements(gl.TRIANGLES, indices.length, gl.UNSIGNED_BYTE, 0);
H A Dshadow_demo.js182 let indices = new Uint8Array([0, 1, 2, 0, 2, 3]);
186 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE);
192 o.numIndices = indices.length;
262 let indices = triangleIndices;
267 o.indexBuffer = initElementArrayBuffer(gl, indices, gl.UNSIGNED_BYTE); // indexBuffer
271 o.numIndices = indices.length;
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/
H A Ddrawing_text_run_test.cpp137 uint64_t indices = OH_Drawing_GetRunStringIndicesByIndex(stringIndicesArr, stringIndex); in HWTEST_F() local
138 EXPECT_TRUE(indices >= 0); in HWTEST_F()
233 uint64_t indices = OH_Drawing_GetRunStringIndicesByIndex(stringIndicesArr, stringIndex); in HWTEST_F() local
234 EXPECT_TRUE(indices >= 0); in HWTEST_F()
334 uint64_t indices = OH_Drawing_GetRunStringIndicesByIndex(stringIndicesArr, -1); in HWTEST_F() local
335 EXPECT_TRUE(indices == 0); in HWTEST_F()
338 indices = OH_Drawing_GetRunStringIndicesByIndex(stringIndicesArr, 1000); in HWTEST_F()
339 EXPECT_TRUE(indices == 0); in HWTEST_F()
483 OH_Drawing_Array* indices = OH_Drawing_GetRunStringIndices(run, 0, 0); in HWTEST_F() local
484 EXPECT_TRUE(indices ! in HWTEST_F()
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dinner_model.cpp76 const std::vector<uint32_t>& indices, in ConstructNNTensorsFromLiteGraph()
79 if (indices.empty()) { in ConstructNNTensorsFromLiteGraph()
80 LOGE("ConstructNNTensorsFromLiteGraph failed, passed empty indices list."); in ConstructNNTensorsFromLiteGraph()
84 uint32_t maximumIndex = *(std::max_element(indices.begin(), indices.end())); in ConstructNNTensorsFromLiteGraph()
91 for (uint32_t i : indices) { in ConstructNNTensorsFromLiteGraph()
329 LOGE("ValidateInputAndOutput failed, please check input indices."); in ValidateInputAndOutput()
335 LOGE("ValidateInputAndOutput failed, please check output indices."); in ValidateInputAndOutput()
340 LOGE("ValidateInputAndOutput failed, passed empty input indices."); in ValidateInputAndOutput()
345 LOGE("ValidateInputAndOutput failed, passed empty output indices in ValidateInputAndOutput()
75 ConstructNNTensorsFromLiteGraph(const MSLITE::LiteGraph* liteGraph, const std::vector<uint32_t>& indices, std::vector<std::shared_ptr<NNTensor>>& nnTensors) ConstructNNTensorsFromLiteGraph() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/utils/
H A Dvertices.cpp30 int indexCount, const uint16_t indices[]) in MakeCopy()
36 indexCount, indices); in MakeCopy()
28 MakeCopy(VertexMode mode, int vertexCount, const Point positions[], const Point texs[], const ColorQuad colors[], int indexCount, const uint16_t indices[]) MakeCopy() argument
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_vertices.cpp41 int indexCount, const uint16_t indices[]) in MakeCopy()
74 indexCount, indices); in MakeCopy()
170 return skiaVerticesBuilder_->indices(); in Indices()
39 MakeCopy(VertexMode mode, int vertexCount, const Point positions[], const Point texs[], const ColorQuad colors[], int indexCount, const uint16_t indices[]) MakeCopy() argument
H A Dskia_vertices.h40 int indexCount, const uint16_t indices[]) override;
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/
H A Drender_data_store_default_material.cpp199 const Math::UVec4 indices = { uint32_t(input.id >> 32u), uint32_t(input.id & 0xFFFFffff), 0u, 0u }; in MaterialUniformsPackedFromInput() local
204 amu.factors.indices = indices; in MaterialUniformsPackedFromInput()
208 amu.transforms.indices = indices; in MaterialUniformsPackedFromInput()
241 slotRef.second.indices.clear(); in Clear()
551 dataRef.indices.push_back(submeshIndex); in AddSubmesh()
623 return slotRef.indices; in GetSlotSubmeshIndices()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkcanvas_fuzzer/
H A Dcanvas_fuzzer.cpp356 uint16_t* indices = new uint16_t[indexCount]; in CanvasFuzzTest003() local
358 indices[i] = GetObject<uint16_t>(); in CanvasFuzzTest003()
361 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003()
364 vertexCount, pts, texs, nullptr, indexCount, indices, in CanvasFuzzTest003()
367 vertexCount, pts, texs, colors, indexCount, indices, in CanvasFuzzTest003()
369 if (pts != nullptr || texs != nullptr || colors != nullptr || indices != nullptr) { in CanvasFuzzTest003()
370 delete[] pts, delete[] texs, delete[] colors, delete[] indices; in CanvasFuzzTest003()
371 pts = nullptr, texs = nullptr, colors = nullptr, indices = nullptr; in CanvasFuzzTest003()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Dvertices.h52 * @param indices Index data pointer.
57 int indexCount, const uint16_t indices[]);
101 * @brief Return indices data pointer in the builder.
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/
H A Dvertices_impl.h38 int indexCount, const uint16_t indices[]) = 0;
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dmesh_arrays.h29 BASE_NS::vector<IndexType> indices; member
/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/delegates/nnrt_delegate/
H A Dnnrt_op_builder.cpp326 TfLiteStatus NnrtOpBuilder::AddTensor(int32_t tensorIndex, int32_t builtinCode, std::vector<uint32_t>& indices, in AddTensor() argument
331 indices.emplace_back(nnTensorIndex); in AddTensor()
338 indices.emplace_back(INVALID_INDEX); in AddTensor()
344 indices.emplace_back(nnTensorIndex); in AddTensor()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dcanvas_test.cpp308 const uint16_t indices[] = { 0, 1, 2 }; // 0, 1, 2 这些整数定义了indices数组中的索引值 in OnTestPerformance() local
310 int32_t indexCount = sizeof(indices) / sizeof(indices[0]); in OnTestPerformance()
314 texs, colors, indexCount, indices, OH_Drawing_BlendMode::BLEND_MODE_SRC); in OnTestPerformance()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drosen_render_shape_container.cpp291 uint16_t* indices = builder.indices(); in DrawBitmapMesh() local
328 uint16_t* dex = indices; in DrawBitmapMesh()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_util.cpp96 ByteBuffer& destination, ByteBuffer& source, ByteBuffer& indices, uint32_t elementSize, size_t count) in CopySparseElements()
98 T* indicesPtr = reinterpret_cast<T*>(indices.data()); in CopySparseElements()
173 auto const& sparseIndicesBufferView = accessor.sparse.indices.bufferView; in LoadSparseAccessor()
176 const uint8_t* src = sparseIndicesBufferView->data + accessor.sparse.indices.byteOffset; in LoadSparseAccessor()
179 auto const componentByteSize = GetComponentByteSize(accessor.sparse.indices.componentType); in LoadSparseAccessor()
191 const uint8_t* src = sparseValuesBufferView->data + accessor.sparse.indices.byteOffset; in LoadSparseAccessor()
200 switch (accessor.sparse.indices.componentType) { in LoadSparseAccessor()
224 result.error += "invalid accessor.sparse.indices.componentType\n"; in LoadSparseAccessor()
95 CopySparseElements( ByteBuffer& destination, ByteBuffer& source, ByteBuffer& indices, uint32_t elementSize, size_t count) CopySparseElements() argument

Completed in 18 milliseconds

123