NVIDIA DeepStream SDK API Reference

7.0 Release
sequence_preprocess_kernel.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021 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 
13 #ifndef __NVDS_SEQUENCE_PREPROCESS_KERNEL_H__
14 #define __NVDS_SEQUENCE_PREPROCESS_KERNEL_H__
15 
16 #include <cuda.h>
17 #include <cuda_runtime.h>
18 
19 #define VEC4_SIZE 4
20 // float vector structure for multiple channels
21 typedef struct {
22  float d[VEC4_SIZE];
23 } Float4Vec;
24 
31 cudaError_t preprocessNCDHW(
32  void* outPtr, unsigned int outC, unsigned int H, unsigned int W, unsigned int S,
33  const void* inPtr, unsigned int inC, unsigned int inRowPitch, Float4Vec scales, Float4Vec means,
34  bool swapRB, cudaStream_t stream);
35 
36 #endif // __NVDS_SEQUENCE_PREPROCESS_KERNEL_H__
VEC4_SIZE
#define VEC4_SIZE
Definition: sequence_preprocess_kernel.h:19
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: nvbufsurftransform.h:34
preprocessNCDHW
cudaError_t preprocessNCDHW(void *outPtr, unsigned int outC, unsigned int H, unsigned int W, unsigned int S, const void *inPtr, unsigned int inC, unsigned int inRowPitch, Float4Vec scales, Float4Vec means, bool swapRB, cudaStream_t stream)
NCDHW preprocess per ROI image.
Float4Vec
Definition: sequence_preprocess_kernel.h:21