NVIDIA DeepStream SDK API Reference

9.1 Release
sources/libs/nvll_osd/cuda/obb_scanline.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 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 
18 #ifndef __OBB_SCANLINE_H__
19 #define __OBB_SCANLINE_H__
20 
21 #include <cuda_runtime.h>
22 #include <stdint.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
47 cudaError_t obb_scanline_rotate_gpu(
48  const uint8_t *aabb_pixels,
49  uint8_t *obb_pixels,
50  int aabb_width,
51  int aabb_height,
52  int aabb_pitch,
53  int obb_width,
54  int obb_height,
55  float obb_cx,
56  float obb_cy,
57  float angle_rad,
58  cudaStream_t stream);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* __OBB_SCANLINE_H__ */
65 
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: sources/includes/nvbufsurftransform.h:35
obb_scanline_rotate_gpu
cudaError_t obb_scanline_rotate_gpu(const uint8_t *aabb_pixels, uint8_t *obb_pixels, int aabb_width, int aabb_height, int aabb_pitch, int obb_width, int obb_height, float obb_cx, float obb_cy, float angle_rad, cudaStream_t stream)
Perform scanline-based OBB rotation on GPU.