DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

Pyramid.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_H_
49 #define DW_IMAGEPROCESSING_PYRAMID_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 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
63 #define DW_PYRAMID_LEVEL_MAX_COUNT 16
64 
66 typedef struct dwPyramidImage
67 {
69  uint32_t levelCount;
70 
76 
79 {
81  uint32_t levelCount;
82 
88 
107  uint32_t width, uint32_t height, dwTrivialDataType pxlType);
108 
122  dwContextHandle_t context);
123 
143  uint32_t width, uint32_t height, dwTrivialDataType pxlType,
144  dwContextHandle_t context);
145 
159  dwContextHandle_t context);
160 
169 
187  cudaStream_t stream, dwContextHandle_t context);
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 
193 #endif // DW_FEATURES_FEATURES_H_
uint32_t levelCount
number of level images in pyramid
Definition: Pyramid.h:81
NVIDIA DriveWorks API: Core Types
struct dwImageObject * dwImageHandle_t
Definition: Image.h:99
dwTrivialDataType
Specifies a type indicator of the underlying trivial data type.
Definition: Types.h:103
DW_API_PUBLIC dwStatus dwPyramid_create(dwPyramidImage *pyramid, uint32_t levelCount, uint32_t width, uint32_t height, dwTrivialDataType pxlType, dwContextHandle_t context)
Creates and initializes an image pyramid.
Defines a CUDA image.
Definition: Image.h:266
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwImageHandle_t levelImages[DW_PYRAMID_LEVEL_MAX_COUNT]
level image data levelImages[0] is the level 0 image which has the highest resolution levelImages[N] ...
Definition: Pyramid.h:74
DW_API_PUBLIC dwStatus dwImageFilter_computePyramid(dwPyramidImage *pyramid, const dwImageCUDA *image, cudaStream_t stream, dwContextHandle_t context)
Builds the pyramid from level 0 image.
#define DW_PYRAMID_LEVEL_MAX_COUNT
Definition: Pyramid.h:63
dwStatus
Status definition.
Definition: Status.h:178
DW_API_PUBLIC dwStatus dwPyramid_fillProperties(dwPyramidImageProperties *props, uint32_t levelCount, uint32_t width, uint32_t height, dwTrivialDataType pxlType)
Fills the pyramid image properties structure.
uint32_t levelCount
number of level images in pyramid
Definition: Pyramid.h:69
Pyramid image structure.
Definition: Pyramid.h:66
DW_API_PUBLIC dwStatus dwPyramid_createFromProperties(dwPyramidImage *pyramid, dwPyramidImageProperties props, dwContextHandle_t context)
Creates and initializes an image pyramid.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
NVIDIA DriveWorks API: Core Exports
DW_API_PUBLIC dwStatus dwPyramid_getProperties(dwPyramidImageProperties *props, dwPyramidImage *pyramid, dwContextHandle_t context)
Gets the properties of a pyramid image.
Pyramid image properties structure.
Definition: Pyramid.h:78
DW_API_PUBLIC dwStatus dwPyramid_destroy(dwPyramidImage pyramid)
Destroy pyramid images.
#define DW_API_PUBLIC
Definition: Exports.h:56
Defines the properties of the image.
Definition: Image.h:236