DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

PyramidPVA.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2019 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_IMAGEPROCESSING_PYRAMID_MODULE_H_
49 #define DW_IMAGEPROCESSING_PYRAMID_MODULE_H_
50 
51 #include <dw/core/Config.h>
52 #include <dw/core/Exports.h>
53 #include <dw/core/Context.h>
54 #include <dw/core/Types.h>
55 #include <dw/image/Image.h>
56 
57 #include <stdint.h>
58 
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 #define DW_PYRAMID_LEVEL_MAX_COUNT 16
66 
70 typedef struct dwPyramidPVAObject* dwPyramidPVAHandle_t;
71 
73 typedef struct dwPyramidPVAParams
74 {
79  uint32_t imageWidth;
81  uint32_t imageHeight;
83  uint32_t numOfPyrLevels;
86 
88 
97 
106 dwStatus dwPyramidPVA_initialize(dwPyramidPVAHandle_t* obj,
107  dwPyramidPVAParams* params,
108  dwContextHandle_t context);
109 
118 dwStatus dwPyramidPVA_reset(dwPyramidPVAHandle_t obj);
119 
128 dwStatus dwPyramidPVA_release(dwPyramidPVAHandle_t obj);
129 
148 dwStatus dwPyramidPVA_create(dwPyramidImage* pyramid, uint32_t levelCount,
149  uint32_t width, uint32_t height, dwTrivialDataType pxlType,
150  dwContextHandle_t context);
151 
160 
180  const dwImageHandle_t image,
181  cudaStream_t stream,
182  dwPyramidPVAHandle_t obj);
183 
191 dwStatus dwPyramidPVA_setCUDAStream(cudaStream_t stream, dwPyramidPVAHandle_t obj);
192 
200 dwStatus dwPyramidPVA_getCUDAStream(cudaStream_t* stream, dwPyramidPVAHandle_t obj);
201 
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif // DW_IMAGEPROCESSING_PYRAMID_MODULE_H_
DW_API_PUBLIC dwStatus dwPyramidPVA_create(dwPyramidImage *pyramid, uint32_t levelCount, uint32_t width, uint32_t height, dwTrivialDataType pxlType, dwContextHandle_t context)
Creates and initializes an image pyramid.
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
Definition: Types.h:70
struct dwImageObject * dwImageHandle_t
Definition: Image.h:99
dwTrivialDataType
Specifies a type indicator of the underlying trivial data type.
Definition: Types.h:103
Image pyramid Parameters parameters.
Definition: PyramidPVA.h:73
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.
uint32_t imageWidth
Input image width.
Definition: PyramidPVA.h:79
DW_API_PUBLIC dwStatus dwPyramidPVA_initDefaultParams(dwPyramidPVAParams *params)
Initializes default parameters for image pyramid with default values.
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
Definition: Status.h:166
uint32_t imageHeight
Input image height.
Definition: PyramidPVA.h:81
dwProcessorType
Processor type definitions.
Definition: Types.h:159
NVIDIA DriveWorks API: Pyramid
uint32_t numOfPyrLevels
Output Number of Levels in Pyramid.
Definition: PyramidPVA.h:83
DW_API_PUBLIC dwStatus dwPyramidPVA_getCUDAStream(cudaStream_t *stream, dwPyramidPVAHandle_t obj)
Get CUDA Stream to the used.
DW_API_PUBLIC dwStatus dwPyramidPVA_release(dwPyramidPVAHandle_t obj)
Release Pyramid module.
Pyramid image structure.
Definition: Pyramid.h:66
dwProcessorType processorType
Indicates where the pipline should be executed.
Definition: PyramidPVA.h:77
DW_API_PUBLIC dwStatus dwPyramidPVA_reset(dwPyramidPVAHandle_t obj)
Resets Pyramid module.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
float32_t pyrScale
Output Pyramid scale.
Definition: PyramidPVA.h:85
DW_API_PUBLIC dwStatus dwPyramidPVA_initialize(dwPyramidPVAHandle_t *obj, dwPyramidPVAParams *params, dwContextHandle_t context)
Initialize parameters for image pyramid.
NVIDIA DriveWorks API: Core Exports
struct dwPyramidPVAObject * dwPyramidPVAHandle_t
Handle to a Pyramid object.
Definition: PyramidPVA.h:70
DW_API_PUBLIC dwStatus dwPyramidPVA_destroy(dwPyramidImage *pyramid)
Destroy pyramid images.
DW_API_PUBLIC dwStatus dwPyramidPVA_setCUDAStream(cudaStream_t stream, dwPyramidPVAHandle_t obj)
Sets CUDA Stream to the given stream.
#define DW_API_PUBLIC
Definition: Exports.h:56