DriveWorks SDK Reference

| 0.6.67 Release

FormatConverter.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) 2015-2016 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 
47 #ifndef DW_IMAGE_FORMATCONVERTER_H__
48 #define DW_IMAGE_FORMATCONVERTER_H__
49 
50 #include <dw/core/Config.h>
51 #include <dw/core/Exports.h>
52 #include <dw/core/Types.h>
53 #include <dw/core/Status.h>
54 #include <dw/core/Context.h>
55 
56 #include <dw/image/Image.h>
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
63 typedef struct dwImageFormatConverterObject *dwImageFormatConverterHandle_t;
64 
82 dwStatus dwImageFormatConverter_initialize(dwImageFormatConverterHandle_t *formatConverter, dwImageType type,
83  dwContextHandle_t ctx);
84 
85 
99 dwStatus dwImageFormatConverter_release(dwImageFormatConverterHandle_t *formatConverter);
100 
117  const dwImageCUDA *input,
118  dwImageFormatConverterHandle_t formatConverter,
119  cudaStream_t stream);
120 
121 #ifdef __cplusplus
122 }
123 #endif
124 
126 // OS-specific
127 #ifdef VIBRANTE
129 #endif
130 
131 #endif // DW_IMAGE_FORMATCONVERTER_H__
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Format Converter
DW_API_PUBLIC dwStatus dwImageFormatConverter_initialize(dwImageFormatConverterHandle_t *formatConverter, dwImageType type, dwContextHandle_t ctx)
Creates and initializes a FormatConverter.
Defines a CUDA image.
Definition: Image.h:263
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Core Exports
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
DW_API_PUBLIC dwStatus dwImageFormatConverter_release(dwImageFormatConverterHandle_t *formatConverter)
Releases the FormatConverter.
dwStatus
Status definition.
Definition: Status.h:167
dwImageType
Specifies the image type.
Definition: Image.h:83
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:78
DW_API_PUBLIC dwStatus dwImageFormatConverter_copyConvertCUDA(dwImageCUDA *output, const dwImageCUDA *input, dwImageFormatConverterHandle_t formatConverter, cudaStream_t stream)
Converts images by copying using the CUDA engine.
#define DW_API_PUBLIC
Definition: Exports.h:76
struct dwImageFormatConverterObject * dwImageFormatConverterHandle_t
Specifies the handle for the image format converter.
NVIDIA DriveWorks API: Core Status Methods