NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
PyramidPVA_1.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
28 #ifndef DW_IMAGEPROCESSING_PYRAMID_PVA_H_
29 #define DW_IMAGEPROCESSING_PYRAMID_PVA_H_
30 
31 #include <dw/core/base/Config.h>
32 #include <dw/core/base/Exports.h>
33 #include <dw/core/context/Context.h>
34 #include <dw/core/base/Types.h>
35 #include <dw/image/Image.h>
36 #include <dw/core/system/PVA.h>
37 
38 #include <stdint.h>
39 
40 #include <dw/imageprocessing/pyramid/Pyramid.h>
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
49 typedef struct dwPyramidPVAObject* dwPyramidPVAHandle_t;
50 
52 typedef struct dwPyramidPVAParams
53 {
60  uint32_t vpuIndex;
62  uint32_t imageWidth;
64  uint32_t imageHeight;
66  uint32_t levelCount;
67 
69 
83 
102  const dwPyramidImage* pyramid,
103  cudaStream_t cudaStream,
104  dwContextHandle_t context);
105 
120 
135 
159  const dwImageHandle_t image,
160  cudaStream_t stream,
162 
177 
192 
208 
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif // DW_IMAGEPROCESSING_PYRAMID_PVA_H_
cupvaStream_t
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
Definition: PVA.h:29
dwPyramidImage
Pyramid image structure.
Definition: Pyramid_1.h:47
dwPyramidPVA_initDefaultParams
DW_API_PUBLIC dwStatus dwPyramidPVA_initDefaultParams(dwPyramidPVAParams *params)
Initializes default parameters for PVA image pyramid with default values.
dwPyramidPVAParams::vpuIndex
uint32_t vpuIndex
VPU index which determines on which VPU the algorithm should be executed on.
Definition: PyramidPVA_1.h:60
dwPyramidPVA_initialize
DW_API_PUBLIC dwStatus dwPyramidPVA_initialize(dwPyramidPVAHandle_t *obj, dwPyramidPVAParams *params, const dwPyramidImage *pyramid, cudaStream_t cudaStream, dwContextHandle_t context)
Initialize parameters for image pyramid.
dwPyramidPVAParams::levelCount
uint32_t levelCount
Level cout of pyramid.
Definition: PyramidPVA_1.h:66
dwPyramidPVA_getPVAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_getPVAStream(cupvaStream_t *stream, dwPyramidPVAHandle_t obj)
Get cuPVA Stream to the used.
dwPyramidPVAParams
PVA image pyramid parameters.
Definition: PyramidPVA_1.h:52
dwProcessorType
dwProcessorType
Processor type definitions.
Definition: TypesExtra.h:116
dwPyramidPVAHandle_t
struct dwPyramidPVAObject * dwPyramidPVAHandle_t
Defines the image pyramid structure.
Definition: PyramidPVA_1.h:49
dwPyramidPVAParams
struct dwPyramidPVAParams dwPyramidPVAParams
PVA image pyramid parameters.
dwPyramidPVAParams::processorType
dwProcessorType processorType
Processor type which determines on which processor the algorithm should be executed on.
Definition: PyramidPVA_1.h:58
dwPyramidPVAParams::imageWidth
uint32_t imageWidth
Input image width.
Definition: PyramidPVA_1.h:62
dwPyramidPVA_setCUDAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_setCUDAStream(cudaStream_t stream, dwPyramidPVAHandle_t obj)
Sets CUDA Stream to the given stream.
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwPyramidPVA_setPVAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_setPVAStream(cupvaStream_t stream, dwPyramidPVAHandle_t obj)
Sets cuPVA Stream to the given stream.
dwPyramidPVAParams::imageHeight
uint32_t imageHeight
Input image height.
Definition: PyramidPVA_1.h:64
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Definition: Image.h:88
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwPyramidPVA_getCUDAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_getCUDAStream(cudaStream_t *stream, dwPyramidPVAHandle_t obj)
Get CUDA Stream to the used.
dwPyramidPVA_reset
DW_API_PUBLIC dwStatus dwPyramidPVA_reset(dwPyramidPVAHandle_t obj)
Resets Pyramid module.
params
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const params
Definition: PointCloudRangeImageCreator.h:292
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
obj
const NvSciSyncObj *const obj
Definition: wfdext.h:120
dwPyramidPVA_release
DW_API_PUBLIC dwStatus dwPyramidPVA_release(dwPyramidPVAHandle_t obj)
Release Pyramid module.
dwPyramidPVA_computePyramid
DW_API_PUBLIC dwStatus dwPyramidPVA_computePyramid(dwPyramidImage *pyramid, const dwImageHandle_t image, cudaStream_t stream, dwPyramidPVAHandle_t obj)
Builds the pyramid from level 0 image.