NVIDIA DeepStream SDK API Reference

8.0 Release
drawBbox.h
Go to the documentation of this file.
1 /*
2 * Copyright 2019 NVIDIA Corporation. All rights reserved.
3 *
4 * NOTICE TO USER:
5 *
6 * This source code is subject to NVIDIA ownership rights under U.S. and
7 * international Copyright laws.
8 *
9 * NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE
10 * CODE FOR ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR
11 * IMPLIED WARRANTY OF ANY KIND. NVIDIA DISCLAIMS ALL WARRANTIES WITH
12 * REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
14 * IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL,
15 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
16 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
17 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
18 * OR PERFORMANCE OF THIS SOURCE CODE.
19 *
20 * U.S. Government End Users. This source code is a "commercial item" as
21 * that term is defined at 48 C.F.R. 2.101 (OCT 1995), consisting of
22 * "commercial computer software" and "commercial computer software
23 * documentation" as such terms are used in 48 C.F.R. 12.212 (SEPT 1995)
24 * and is provided to the U.S. Government only as a commercial end item.
25 * Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through
26 * 227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the
27 * source code with only those rights set forth herein.
28 */
29 #ifndef DRAW_BBOX_H
30 #define DRAW_BBOX_H
31 
32 #include <cstdint>
33 //#include <stdint.h>
34 #include <cuda_runtime.h>
35 
36 
37 void drawBoundingBox_cuda_unit_alpha(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, cudaStream_t stream,
38  unsigned int r, unsigned int g, unsigned int b, unsigned int border_width);
39 
40 void drawBoundingBox_cuda(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, cudaStream_t stream,
41  unsigned int r, unsigned int g, unsigned int b, float a, unsigned int border_width);
42 
43 void bboxAlphaFill_cuda(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, unsigned int r, unsigned int g, unsigned int b, float a, cudaStream_t stream);
44 
45 void bgra_to_gray(uint8_t *dpBgra, const int nBgraPitch, uint8_t *dpGray, const int nGrayPitch, const int nWidth, const int nHeight, cudaStream_t stream);
46 
47 void nv12_to_gray_batch(const uint8_t *pNv12, int nNv12Pitch, uint8_t *pGray, int nGrayPitch, int nWidth, int nHeight, int nBatchSize, cudaStream_t stream);
48 
49 #endif // DRAW_BBOX_H
drawBoundingBox_cuda
void drawBoundingBox_cuda(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, cudaStream_t stream, unsigned int r, unsigned int g, unsigned int b, float a, unsigned int border_width)
drawBoundingBox_cuda_unit_alpha
void drawBoundingBox_cuda_unit_alpha(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, cudaStream_t stream, unsigned int r, unsigned int g, unsigned int b, unsigned int border_width)
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: nvbufsurftransform.h:35
bgra_to_gray
void bgra_to_gray(uint8_t *dpBgra, const int nBgraPitch, uint8_t *dpGray, const int nGrayPitch, const int nWidth, const int nHeight, cudaStream_t stream)
nv12_to_gray_batch
void nv12_to_gray_batch(const uint8_t *pNv12, int nNv12Pitch, uint8_t *pGray, int nGrayPitch, int nWidth, int nHeight, int nBatchSize, cudaStream_t stream)
bboxAlphaFill_cuda
void bboxAlphaFill_cuda(uint8_t *pBGRA, const int nWidth, const int nHeight, const int nBgraPitch, const int x_min, const int y_min, const int x_max, const int y_max, unsigned int r, unsigned int g, unsigned int b, float a, cudaStream_t stream)