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

  • DriveWorks SDK Reference
    5.10.90 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    ImageTransformation.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) 2015-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_GEOMETRY_IMAGETRANSFORMATION_H_
    47#define DW_IMAGEPROCESSING_GEOMETRY_IMAGETRANSFORMATION_H_
    48
    50#include <dw/core/base/Types.h>
    51#include <dw/image/Image.h>
    53
    54#ifdef __cplusplus
    55extern "C" {
    56#endif
    57
    58typedef struct dwImageTransformationObject* dwImageTransformationHandle_t;
    59
    61{
    66
    79 dwContextHandle_t context);
    80
    90
    101
    128
    140
    152
    164
    177
    193 const dwRect* outputROI, const dwRect* inputROI,
    195
    210
    224
    225#ifdef __cplusplus
    226}
    227#endif
    229#endif // DW_IMAGEPROCESSING_H_
    NVIDIA DriveWorks API: Core Methods
    Defines a rectangle.
    NVIDIA DriveWorks API: Image Transformation Methods
    NVIDIA DriveWorks API: Core Types
    struct dwContextObject * dwContextHandle_t
    Context handle.
    Definition: Context.h:83
    #define DW_API_PUBLIC
    Definition: Exports.h:54
    dwStatus
    Status definition.
    Definition: Status.h:173
    struct dwImageObject * dwImageHandle_t
    Definition: Image.h:102
    Defines the properties of the image.
    Definition: Image.h:390
    bool ignoreAspectRatio
    Boolean indicating whether the aspect ratio of the input image should be kept (false) or the image sh...
    DW_API_PUBLIC dwStatus dwImageTransformation_initialize(dwImageTransformationHandle_t *handle, dwImageTransformationParameters params, dwContextHandle_t context)
    Initializes an Image Transformation Engine.
    DW_API_PUBLIC dwStatus dwImageTransformation_getCUDAStream(cudaStream_t *stream, dwImageTransformationHandle_t obj)
    Gets the cuda stream used by the APIs of Image Transformation.
    struct dwImageTransformationObject * dwImageTransformationHandle_t
    DW_API_PUBLIC dwStatus dwImageTransformation_release(dwImageTransformationHandle_t handle)
    Releases an Image Transformation Engine.
    DW_API_PUBLIC dwStatus dwImageTransformation_copy(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, const dwRect *outputROI, const dwRect *inputROI, dwImageTransformationHandle_t obj)
    Resizes the input image subregion and copies the result into the previously allocated output image,...
    dwImageProcessingBorderMode
    border mode (valid for DW_IMAGE_CUDA types)
    DW_API_PUBLIC dwStatus dwImageTransformation_setBorderMode(dwImageProcessingBorderMode mode, dwImageTransformationHandle_t obj)
    Sets the border mode used by the APIs of Image Transformation.
    DW_API_PUBLIC dwStatus dwImageTransformation_setCUDAStream(cudaStream_t stream, dwImageTransformationHandle_t obj)
    Sets the cuda stream used by the APIs of Image Transformation.
    DW_API_PUBLIC dwStatus dwImageTransformation_appendAllocationAttributes(dwImageProperties *const imgProps, dwImageTransformationHandle_t obj)
    Append the allocation attribute such that the images created of type DW_IMAGE_NVMEDIA can be fed to d...
    DW_API_PUBLIC dwStatus dwImageTransformation_copySubImage(dwImageHandle_t const outputImage, dwImageHandle_t const inputImage, dwRect const inputROI, dwImageTransformationHandle_t const obj)
    Resizes the input image sub region and copies the result into the previously allocated output image,...
    DW_API_PUBLIC dwStatus dwImageTransformation_copyFullImage(dwImageHandle_t const outputImage, dwImageHandle_t const inputImage, dwImageTransformationHandle_t const obj)
    Resizes the input image and copies the result into the previously allocated output image,...
    dwImageProcessingInterpolation
    interpolation mode
    DW_API_PUBLIC dwStatus dwImageTransformation_reset(dwImageTransformationHandle_t obj)
    Resets an Image Transformation Engine.
    DW_API_PUBLIC dwStatus dwImageTransformation_setInterpolationMode(dwImageProcessingInterpolation mode, dwImageTransformationHandle_t obj)
    Sets the interpolation mode used by the APIs of Image Transformation.
    NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
    人人超碰97caoporen国产