NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
Pyramid_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 
29 #ifndef DW_IMAGEPROCESSING_PYRAMID_H_
30 #define DW_IMAGEPROCESSING_PYRAMID_H_
31 
32 #include <dw/core/base/Config.h>
33 #include <dw/core/base/Exports.h>
34 #include <dw/core/context/Context.h>
35 #include <dw/core/base/Types.h>
36 #include <dw/image/Image.h>
37 
38 #include <stdint.h>
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 #define DW_PYRAMID_LEVEL_MAX_COUNT 12
45 
47 typedef struct dwPyramidImage
48 {
50  uint32_t levelCount;
51 
57 
60 {
62  uint32_t levelCount;
63 
69 
92  uint32_t width, uint32_t height, dwTrivialDataType pxlType);
93 
111  dwContextHandle_t context);
112 
135 dwStatus dwPyramid_create(dwPyramidImage* pyramid, uint32_t levelCount,
136  uint32_t width, uint32_t height, dwTrivialDataType pxlType,
137  dwContextHandle_t context);
138 
156  dwContextHandle_t context);
157 
170 
193  cudaStream_t stream, dwContextHandle_t context);
194 
195 #ifdef __cplusplus
196 }
197 #endif
198 
199 #endif // DW_IMAGEPROCESSING_PYRAMID_H_
dwPyramidImageProperties
struct dwPyramidImageProperties dwPyramidImageProperties
Pyramid image properties structure.
dwPyramidImageProperties::levelProps
dwImageProperties levelProps[DW_PYRAMID_LEVEL_MAX_COUNT]
level image properties levelProps[0] refers to the level 0 image which has the highest resolution lev...
Definition: Pyramid_1.h:67
dwPyramidImage
Pyramid image structure.
Definition: Pyramid_1.h:47
dwPyramidImageProperties::levelCount
uint32_t levelCount
number of level images in pyramid
Definition: Pyramid_1.h:62
dwPyramid_create
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.
dwPyramid_getProperties
DW_API_PUBLIC dwStatus dwPyramid_getProperties(dwPyramidImageProperties *props, dwPyramidImage *pyramid, dwContextHandle_t context)
Gets the properties of a pyramid image.
dwImageCUDA
Defines a CUDA image.
Definition: Image.h:508
dwPyramid_fillProperties
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.
dwPyramid_destroy
DW_API_PUBLIC dwStatus dwPyramid_destroy(dwPyramidImage pyramid)
Destroy pyramid images.
dwImageFilter_computePyramid
DW_API_PUBLIC dwStatus dwImageFilter_computePyramid(dwPyramidImage *pyramid, const dwImageCUDA *image, cudaStream_t stream, dwContextHandle_t context)
Builds the pyramid from level 0 image.
dwPyramidImage::levelImages
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_1.h:55
dwPyramidImageProperties
Pyramid image properties structure.
Definition: Pyramid_1.h:59
dwImageProperties
Defines the properties of the image.
Definition: Image.h:477
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwPyramidImage::levelCount
uint32_t levelCount
number of level images in pyramid
Definition: Pyramid_1.h:50
dwImageHandle_t
struct dwImageObject * dwImageHandle_t
Definition: Image.h:88
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwPyramidImage
struct dwPyramidImage dwPyramidImage
Pyramid image structure.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
DW_PYRAMID_LEVEL_MAX_COUNT
#define DW_PYRAMID_LEVEL_MAX_COUNT
Definition: Pyramid_1.h:44
dwPyramid_createFromProperties
DW_API_PUBLIC dwStatus dwPyramid_createFromProperties(dwPyramidImage *pyramid, const dwPyramidImageProperties *props, dwContextHandle_t context)
Creates and initializes an image pyramid.
dwTrivialDataType
dwTrivialDataType
Specifies a type indicator of the underlying trivial data type.
Definition: TypesExtra.h:42