NVIDIA DeepStream SDK API Reference

7.0 Release
nvdewarper.h File Reference

Detailed Description

SPDX-FileCopyrightText: Copyright (c) 2019-2022 NVIDIA CORPORATION & AFFILIATES.

All rights reserved. SPDX-License-Identifier: MIT

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.

Description: This file declares the core dewarping function calls.

Definition in file nvdewarper.h.

Go to the source code of this file.

Macros

#define cuda_ck(call)   CUDA_CHECK_(call, __LINE__, __FILE__)
 
#define BAIL_IF_FALSE(x, err, code)   do { if (!(x)) { err = code; goto bail; } } while(0)
 

Functions

bool CUDA_CHECK_ (gint e, gint iLine, const gchar *szFile)
 
cudaError gst_nvdewarper_do_dewarp (Gstnvdewarper *nvdewarper, NvBufSurface *in_surface, NvBufSurface *out_surface)
 Function definition of dewarping call for each surface. More...
 
uint32_t gst_nvdewarper_version ()
 Function to get core Dewarper library version. More...
 

Macro Definition Documentation

◆ BAIL_IF_FALSE

#define BAIL_IF_FALSE (   x,
  err,
  code 
)    do { if (!(x)) { err = code; goto bail; } } while(0)

Definition at line 44 of file nvdewarper.h.

◆ cuda_ck

#define cuda_ck (   call)    CUDA_CHECK_(call, __LINE__, __FILE__)

Definition at line 42 of file nvdewarper.h.

Function Documentation

◆ CUDA_CHECK_()

bool CUDA_CHECK_ ( gint  e,
gint  iLine,
const gchar *  szFile 
)
inline

Definition at line 34 of file nvdewarper.h.

◆ gst_nvdewarper_do_dewarp()

cudaError gst_nvdewarper_do_dewarp ( Gstnvdewarper nvdewarper,
NvBufSurface in_surface,
NvBufSurface out_surface 
)

Function definition of dewarping call for each surface.

Parameters
[in]nvdewarperWidth of the network input, in pixels.
[in]in_surfaceHeight of the network input, in pixels.
[in]out_surfaceColor format of the buffers in the pool.
Returns
Cuda Error. "cudaSuccess" in case of Success.

◆ gst_nvdewarper_version()

uint32_t gst_nvdewarper_version ( )

Function to get core Dewarper library version.

Returns
The version number.