Compute Graph Framework SDK Reference  5.16
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{"BUILD_PYRAMID"}, DW_PROCESSOR_TYPE_PVA_0),
55 describePass(StringView{"TEARDOWN"}, DW_PROCESSOR_TYPE_CPU));
56 };
57
58 static std::unique_ptr<dwPyramidPVANode> create(ParameterProvider& provider);
59
60 // coverity[autosar_cpp14_a7_1_5_violation] RFD Accepted: TID-1984
61 static constexpr auto describeParameters()
62 {
63 // TODO(csketch): RFD -- user defined literal being interpreted as c style cast.
64 // coverity[autosar_cpp14_a5_2_2_violation] RFD Pending: TID-1983
66 describeConstructorArgument<dwPyramidNodeParams>(
68 uint32_t,
70 "cameraIndex"_sv,
71 &dwPyramidNodeParams::width),
73 uint32_t,
75 "cameraIndex"_sv,
78 cupvaStream_t,
80 "pvaStreamIndexPy"_sv,
83 uint32_t,
84 "pyramidLevelCount"_sv,
87 cudaStream_t,
88 "streamIndex"_sv,
90 describeConstructorArgument<dwContextHandle_t>(
92 dwContextHandle_t)));
93 }
94
96 const dwContextHandle_t ctx);
97};
98} // namespace framework
99} // namespace dw
100
101#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 std::tuple describeConstructorArguments()
constexpr PassDescriptorT< 0 > describePass(dw::core::StringView &&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