Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.8.83 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Pyramid.h
    Go to the documentation of this file.
    1
    2//
    3// Notice
    4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
    5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
    6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
    7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
    8//
    9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
    10// information or for any infringement of patents or other rights of third parties that may
    11// result from its use. No license is granted by implication or otherwise under any patent
    12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
    13// expressly authorized by NVIDIA. Details are subject to change without notice.
    14// This code supersedes and replaces all information previously supplied.
    15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
    16// components in life support devices or systems without express written approval of
    17// NVIDIA CORPORATION & AFFILIATES.
    18//
    19// SPDX-FileCopyrightText: Copyright (c) 2019-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
    20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
    21//
    22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
    23// property and proprietary rights in and to this material, related
    24// documentation and any modifications thereto. Any use, reproduction,
    25// disclosure or distribution of this material and related documentation
    26// without an express license agreement from NVIDIA CORPORATION or
    27// its affiliates is strictly prohibited.
    28//
    30
    46#ifndef DW_IMAGEPROCESSING_PYRAMID_H_
    47#define DW_IMAGEPROCESSING_PYRAMID_H_
    48
    49#include <dw/core/base/Config.h>
    52#include <dw/core/base/Types.h>
    53#include <dw/image/Image.h>
    54
    55#include <stdint.h>
    56
    57#ifdef __cplusplus
    58extern "C" {
    59#endif
    60
    61#define DW_PYRAMID_LEVEL_MAX_COUNT 12
    62
    64typedef struct dwPyramidImage
    65{
    67 uint32_t levelCount;
    68
    74
    77{
    79 uint32_t levelCount;
    80
    86
    105 uint32_t width, uint32_t height, dwTrivialDataType pxlType);
    106
    120 dwContextHandle_t context);
    121
    140dwStatus dwPyramid_create(dwPyramidImage* pyramid, uint32_t levelCount,
    141 uint32_t width, uint32_t height, dwTrivialDataType pxlType,
    142 dwContextHandle_t context);
    143
    157 dwContextHandle_t context);
    158
    167
    185 cudaStream_t stream, dwContextHandle_t context);
    186
    187#ifdef __cplusplus
    188}
    189#endif
    191#endif // DW_IMAGEPROCESSING_PYRAMID_H_
    NVIDIA DriveWorks API: Core Types
    NVIDIA DriveWorks API: Core Methods
    NVIDIA DriveWorks API: Core Exports
    struct dwContextObject * dwContextHandle_t
    Context handle.
    Definition: Context.h:82
    #define DW_API_PUBLIC
    Definition: Exports.h:54
    dwStatus
    Status definition.
    Definition: Status.h:171
    dwTrivialDataType
    Specifies a type indicator of the underlying trivial data type.
    Definition: Types.h:103
    struct dwImageObject * dwImageHandle_t
    Definition: Image.h:110
    Defines a CUDA image.
    Definition: Image.h:427
    Defines the properties of the image.
    Definition: Image.h:397
    uint32_t levelCount
    number of level images in pyramid
    Definition: Pyramid.h:79
    uint32_t levelCount
    number of level images in pyramid
    Definition: Pyramid.h:67
    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:72
    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.h:84
    DW_API_PUBLIC dwStatus dwPyramid_destroy(dwPyramidImage pyramid)
    Destroy pyramid images.
    #define DW_PYRAMID_LEVEL_MAX_COUNT
    Definition: Pyramid.h:61
    DW_API_PUBLIC dwStatus dwImageFilter_computePyramid(dwPyramidImage *pyramid, const dwImageCUDA *image, cudaStream_t stream, dwContextHandle_t context)
    Builds the pyramid from level 0 image.
    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.
    DW_API_PUBLIC dwStatus dwPyramid_createFromProperties(dwPyramidImage *pyramid, const dwPyramidImageProperties *props, dwContextHandle_t context)
    Creates and initializes an image pyramid.
    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.
    DW_API_PUBLIC dwStatus dwPyramid_getProperties(dwPyramidImageProperties *props, dwPyramidImage *pyramid, dwContextHandle_t context)
    Gets the properties of a pyramid image.
    Pyramid image structure.
    Definition: Pyramid.h:65
    Pyramid image properties structure.
    Definition: Pyramid.h:77
    NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
    人人超碰97caoporen国产