NVIDIA DeepStream SDK API Reference

6.4 Release
sequence_preprocess_kernel.h File Reference

Go to the source code of this file.

Data Structures

struct  Float4Vec
 

Macros

#define VEC4_SIZE   4
 Copyright (c) 2021, NVIDIA CORPORATION. More...
 

Functions

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. More...
 

Macro Definition Documentation

◆ VEC4_SIZE

#define VEC4_SIZE   4

Copyright (c) 2021, NVIDIA CORPORATION.

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 29 of file sequence_preprocess_kernel.h.

Function Documentation

◆ 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.

Parameters
outPtroutput data pointer offset to current image position
inPtrinput data pointer