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... | |
| 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.
| aabb_pixels | Input AABB pixels (RGBA, GPU memory) |
| obb_pixels | Output OBB pixels (RGBA, GPU memory, must be pre-allocated) |
| aabb_width | Width of input AABB |
| aabb_height | Height of input AABB |
| aabb_pitch | Pitch (stride) of AABB in bytes |
| obb_width | Width of output OBB |
| obb_height | Height of output OBB |
| obb_cx | Center X of OBB in AABB space |
| obb_cy | Center Y of OBB in AABB space |
| angle_rad | Rotation angle in radians |
| stream | CUDA stream for async execution (use 0 for default stream) |