NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
pyramid/PyramidPVA.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>
34 #include <dw/core/base/Types.h>
35 #include <dw/image/Image.h>
36 #include <dw/core/base/Config.h>
37 #ifdef DW_SDK_BUILD_PVA
38 #include <cupva_host_scheduling.h>
39 #else
40 typedef void* cupvaStream_t;
42 #endif
43 
44 #include <stdint.h>
45 
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
55 typedef struct dwPyramidPVAObject* dwPyramidPVAHandle_t;
56 
58 typedef struct dwPyramidPVAParams
59 {
66  uint32_t vpuIndex;
68  uint32_t imageWidth;
70  uint32_t imageHeight;
72  uint32_t levelCount;
73 
75 
89 
107  dwPyramidPVAParams const* params,
108  dwPyramidImage const* pyramid,
109  cudaStream_t const cudaStream,
110  dwContextHandle_t const context);
111 
126 
141 
165  dwImageHandle_t const image,
166  cudaStream_t const stream,
167  dwPyramidPVAHandle_t const obj);
168 
182 dwStatus dwPyramidPVA_setCUDAStream(cudaStream_t const stream, dwPyramidPVAHandle_t const obj);
183 
197 dwStatus dwPyramidPVA_getCUDAStream(cudaStream_t* const stream, dwPyramidPVAHandle_t const obj);
198 
214 
230 
231 #ifdef __cplusplus
232 }
233 #endif
234 
235 #endif // DW_IMAGEPROCESSING_PYRAMID_PVA_H_
dwPyramidPVA_getPVAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_getPVAStream(cupvaStream_t *const stream, dwPyramidPVAHandle_t const obj)
Get cuPVA Stream to the used.
dwPyramidPVA_release
DW_API_PUBLIC dwStatus dwPyramidPVA_release(dwPyramidPVAHandle_t const obj)
Release Pyramid module.
dwPyramidPVA_setCUDAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_setCUDAStream(cudaStream_t const stream, dwPyramidPVAHandle_t const obj)
Sets CUDA Stream to the given stream.
Types.h
dwPyramidImage
Pyramid image structure.
Definition: pyramid/Pyramid.h:47
cupvaStream_t
void * cupvaStream_t
Defines the image pyramid structure.
Definition: pyramid/PyramidPVA.h:41
dwPyramidPVA_initDefaultParams
DW_API_PUBLIC dwStatus dwPyramidPVA_initDefaultParams(dwPyramidPVAParams *params)
Initializes default parameters for PVA image pyramid with default values.
Image.h
dwPyramidPVAParams::vpuIndex
uint32_t vpuIndex
VPU index which determines on which VPU the algorithm should be executed on.
Definition: pyramid/PyramidPVA.h:66
cupvaStream_t
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
Definition: featuredetector/FeatureDetector.h:44
dwPyramidPVAParams::levelCount
uint32_t levelCount
Level cout of pyramid.
Definition: pyramid/PyramidPVA.h:72
Exports.h
dwPyramidPVAParams
PVA image pyramid parameters.
Definition: pyramid/PyramidPVA.h:58
dwProcessorType
dwProcessorType
Processor type definitions.
Definition: TypesExtra.h:119
dwPyramidPVAHandle_t
struct dwPyramidPVAObject * dwPyramidPVAHandle_t
Handle to a Pyramid object.
Definition: pyramid/PyramidPVA.h:55
dwPyramidPVAParams
struct dwPyramidPVAParams dwPyramidPVAParams
PVA image pyramid parameters.
dwPyramidPVA_computePyramid
DW_API_PUBLIC dwStatus dwPyramidPVA_computePyramid(dwPyramidImage const *pyramid, dwImageHandle_t const image, cudaStream_t const stream, dwPyramidPVAHandle_t const obj)
Builds the pyramid from level 0 image.
dwPyramidPVAParams::processorType
dwProcessorType processorType
Processor type which determines on which processor the algorithm should be executed on.
Definition: pyramid/PyramidPVA.h:64
dwPyramidPVAParams::imageWidth
uint32_t imageWidth
Input image width.
Definition: pyramid/PyramidPVA.h:68
obj
const NvSciSyncObj *const obj
Definition: wfdext.h:528
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
dwPyramidPVA_initialize
DW_API_PUBLIC dwStatus dwPyramidPVA_initialize(dwPyramidPVAHandle_t *obj, dwPyramidPVAParams const *params, dwPyramidImage const *pyramid, cudaStream_t const cudaStream, dwContextHandle_t const context)
Initialize parameters for image pyramid.
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Handle to an image object.
Definition: image/Image.h:99
Config.h
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwPyramidPVA_setPVAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_setPVAStream(cupvaStream_t const stream, dwPyramidPVAHandle_t const obj)
Sets cuPVA Stream to the given stream.
dwPyramidPVA_getCUDAStream
DW_API_PUBLIC dwStatus dwPyramidPVA_getCUDAStream(cudaStream_t *const stream, dwPyramidPVAHandle_t const obj)
Get CUDA Stream to the used.
Pyramid.h
dwPyramidPVAParams::imageHeight
uint32_t imageHeight
Input image height.
Definition: pyramid/PyramidPVA.h:70
dwPyramidPVA_reset
DW_API_PUBLIC dwStatus dwPyramidPVA_reset(dwPyramidPVAHandle_t const obj)
Resets Pyramid module.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
Context.h