Compute Graph Framework SDK Reference  5.12
dwPyramidPVANode.hpp
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2018-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
31#ifndef DW_FRAMEWORK_PYRAMID_PVA_NODE_HPP_
32#define DW_FRAMEWORK_PYRAMID_PVA_NODE_HPP_
33
35
36namespace dw
37{
38namespace framework
39{
40
42{
43public:
44 // TODO(csketch): FP -- This is used when the logger is called and not just at assignment.
45 // coverity[autosar_cpp14_a0_1_1_violation] FP: nvbugs/2980283
46 // coverity[autosar_cpp14_m0_1_4_violation] FP: nvbugs/2980283
47 static constexpr char8_t LOG_TAG[]{"dwPyramidPVANode"};
48
49 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
50 static constexpr auto describePasses()
51 {
53 describePass(StringView{"SETUP"}, DW_PROCESSOR_TYPE_CPU),
54 describePass(StringView{"PREPARE_DATA"}, DW_PROCESSOR_TYPE_GPU),
55 describePass(StringView{"BUILD_PYRAMID"}, DW_PROCESSOR_TYPE_PVA_0),
56 describePass(StringView{"POST_PROCESS"}, DW_PROCESSOR_TYPE_GPU),
57 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
58 };
59
60 static std::unique_ptr<dwPyramidPVANode> create(ParameterProvider& provider);
61
62 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
63 static constexpr auto describeParameters()
64 {
65 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
66 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
67 return describeConstructorArguments<dwPyramidNodeParams, dwContextHandle_t>(
70 uint32_t,
72 "cameraIndex"_sv,
73 &dwPyramidNodeParams::width),
75 uint32_t,
77 "cameraIndex"_sv,
80 cupvaStream_t,
82 "pvaStreamIndexPy"_sv,
85 uint32_t,
86 "pyramidLevelCount"_sv,
89 cudaStream_t,
90 "streamIndex"_sv,
94 dwContextHandle_t)));
95 }
96
98 const dwContextHandle_t ctx);
99};
100} // namespace framework
101} // namespace dw
102
103#endif //DW_FRAMEWORK_PYRAMID_PVA_NODE_HPP_
#define DW_DESCRIBE_INDEX_PARAMETER_WITH_SEMANTIC(TYPE_NAME, SEMANTIC_TYPE_NAME, args...)
#define DW_DESCRIBE_INDEX_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_UNNAMED_PARAMETER(TYPE_NAME, args...)
#define DW_DESCRIBE_PARAMETER(TYPE_NAME, args...)
The interface to access parameter values identified by name and/or (semantic) type.
dwPyramidPVANode(const dwPyramidNodeParams &config, const dwContextHandle_t ctx)
static constexpr auto describePasses()
static constexpr auto describeParameters()
static constexpr char8_t LOG_TAG[]
static std::unique_ptr< dwPyramidPVANode > create(ParameterProvider &provider)
cupvaStream_t cupvastream
Data Type of pyramid.
constexpr auto describeConstructorArgument(const Args &&... args) -> dw::core::Tuple< Args... >
constexpr std::tuple< dw::core::StringView, dwProcessorType > describePass(dw::core::StringView const &&name, dwProcessorType processorType)
constexpr auto describePassCollection(const Args &&... args) -> std::tuple< Args... >
dwPyramidNodeParams { uint32_t width dwPyramidNodeParams
uint32_t levelCount
Height of level 0.
cudaStream_t stream
uint32_t height
Width of level 0.
Definition: Buffer.hpp:40