NVIDIA DeepStream SDK API Reference

9.0 Release
sources/libs/nvll_osd/cuda/obb_scanline.h File Reference

Go to the source code of this file.

Functions

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

Function Documentation

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

Extracts a rotated OBB from an axis-aligned AABB using GPU acceleration. All buffers must be in GPU memory.

Parameters
aabb_pixelsInput AABB pixels (RGBA, GPU memory)
obb_pixelsOutput OBB pixels (RGBA, GPU memory, must be pre-allocated)
aabb_widthWidth of input AABB
aabb_heightHeight of input AABB
aabb_pitchPitch (stride) of AABB in bytes
obb_widthWidth of output OBB
obb_heightHeight of output OBB
obb_cxCenter X of OBB in AABB space
obb_cyCenter Y of OBB in AABB space
angle_radRotation angle in radians
streamCUDA stream for async execution (use 0 for default stream)
Returns
cudaError_t CUDA error code (cudaSuccess on success)