NVIDIA DeepStream SDK API Reference
9.1 Release
sources/gst-plugins/gst-nvdewarper/nvdewarper.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2019-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
23
#ifndef _NVDEWARPER_H_
24
#define _NVDEWARPER_H_
25
#include "
gstnvdewarper.h
"
26
27
#include "nvbufsurface.h"
28
29
inline
bool
CUDA_CHECK_
(gint e, gint iLine,
const
gchar *szFile) {
30
if
(e != cudaSuccess) {
31
std::cout <<
"CUDA runtime error "
<< e <<
" at line "
<< iLine <<
" in file "
<< szFile << endl;
32
return
false
;
33
}
34
return
true
;
35
}
36
37
#define cuda_ck(call) CUDA_CHECK_(call, __LINE__, __FILE__)
38
39
#define BAIL_IF_FALSE(x, err, code) do { if (!(x)) { err = code; goto bail; } } while(0)
40
50
cudaError
gst_nvdewarper_do_dewarp
(
Gstnvdewarper
*nvdewarper,
51
NvBufSurface
*in_surface,
NvBufSurface
*out_surface);
52
58
uint32_t
gst_nvdewarper_version
();
59
60
#endif
CUDA_CHECK_
bool CUDA_CHECK_(gint e, gint iLine, const gchar *szFile)
Definition:
sources/gst-plugins/gst-nvdewarper/nvdewarper.h:29
NvBufSurface
Holds information about batched buffers.
Definition:
sources/includes/nvbufsurface.h:597
gstnvdewarper.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.
gst_nvdewarper_version
uint32_t gst_nvdewarper_version()
Function to get core Dewarper library version.
_Gstnvdewarper
Gstnvdewarper element structure.
Definition:
sources/gst-plugins/gst-nvdewarper/gstnvdewarper.h:125
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Thu Jul 9 2026 11:48:20 | PR-09318-R32