![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
Interface of DXT compression CUDA implementation. More...
#include "cuda_wrapper.h"

Go to the source code of this file.
Functions | |
| int | cuda_rgb_to_dxt1 (const void *src, void *out, int size_x, int size_y, cuda_wrapper_stream_t stream) |
| int | cuda_rgb_to_dxt6 (const void *src, void *out, int size_x, int size_y, cuda_wrapper_stream_t stream) |
| int | cuda_yuv422_to_yuv444 (const void *src, void *out, int pix_count, cuda_wrapper_stream_t str) |
| int | cuda_yuv_to_dxt1 (const void *src, void *out, int size_x, int size_y, cuda_wrapper_stream_t stream) |
| int | cuda_yuv_to_dxt6 (const void *src, void *out, int size_x, int size_y, cuda_wrapper_stream_t stream) |
Interface of DXT compression CUDA implementation.
Definition in file cuda_dxt.h.
| int cuda_rgb_to_dxt1 | ( | const void * | src, |
| void * | out, | ||
| int | size_x, | ||
| int | size_y, | ||
| cuda_wrapper_stream_t | stream ) |
CUDA DXT1 compression (only RGB without alpha).
| src | Pointer to top-left source pixel in device-memory buffer. 8bit RGB samples are expected (no alpha and no padding). (Pointer must be aligned to multiples of 16 bytes.) |
| out | Pointer to output buffer in device memory. (Must be aligned to multiples of 8 bytes.) |
| size_x | Width of the input image (must be divisible by 4). |
| size_y | Height of the input image (must be divisible by 4). (Input is read bottom up if negative) |
| stream | CUDA stream to run in, or 0 for default stream. |
CUDA DXT1 compression (only RGB without alpha).
| src | Pointer to top-left source pixel in device-memory buffer. 8bit RGB samples are expected (no alpha and no padding). (Pointer must be aligned to multiples of 16 bytes.) |
| out | Pointer to output buffer in device memory. (Must be aligned to multiples of 8 bytes.) |
| size_x | Width of the input image (must be divisible by 4). |
| size_y | Height of the input image (must be divisible by 4). |
| stream | CUDA stream to run in, or 0 for default stream. |
Definition at line 782 of file cuda_dxt.cu.
References dxt_launch().
Referenced by main(), and worker_thread().

| int cuda_rgb_to_dxt6 | ( | const void * | src, |
| void * | out, | ||
| int | size_x, | ||
| int | size_y, | ||
| cuda_wrapper_stream_t | stream ) |
CUDA DXT6 (DXT5-YcOcG) compression (only RGB without alpha).
| src | Pointer to top-left source pixel in device-memory buffer. 8bit RGB samples are expected (no alpha and no padding). (Pointer must be aligned to multiples of 16 bytes.) |
| out | Pointer to output buffer in device memory. (Must be aligned to multiples of 8 bytes.) |
| size_x | Width of the input image (must be divisible by 4). |
| size_y | Height of the input image (must be divisible by 4). (Input is read bottom up if negative) |
| stream | CUDA stream to run in, or 0 for default stream. |
Definition at line 816 of file cuda_dxt.cu.
References dxt_launch().
Referenced by main(), and worker_thread().

| int cuda_yuv422_to_yuv444 | ( | const void * | src, |
| void * | out, | ||
| int | pix_count, | ||
| cuda_wrapper_stream_t | str ) |
Definition at line 762 of file cuda_dxt.cu.
References cudaSuccess, and yuv422_to_yuv444_kernel().

| int cuda_yuv_to_dxt1 | ( | const void * | src, |
| void * | out, | ||
| int | size_x, | ||
| int | size_y, | ||
| cuda_wrapper_stream_t | stream ) |
CUDA DXT1 compression (only RGB without alpha). Converts input from YUV to RGB color space.
| src | Pointer to top-left source pixel in device-memory buffer. 8bit RGB samples are expected (no alpha and no padding). (Pointer must be aligned to multiples of 16 bytes.) |
| out | Pointer to output buffer in device memory. (Must be aligned to multiples of 8 bytes.) |
| size_x | Width of the input image (must be divisible by 4). |
| size_y | Height of the input image (must be divisible by 4). (Input is read bottom up if negative) |
| stream | CUDA stream to run in, or 0 for default stream. |
CUDA DXT1 compression (only RGB without alpha). Converts input from YUV to RGB color space.
| src | Pointer to top-left source pixel in device-memory buffer. 8bit RGB samples are expected (no alpha and no padding). (Pointer must be aligned to multiples of 16 bytes.) |
| out | Pointer to output buffer in device memory. (Must be aligned to multiples of 8 bytes.) |
| size_x | Width of the input image (must be divisible by 4). |
| size_y | Height of the input image (must be divisible by 4). |
| stream | CUDA stream to run in, or 0 for default stream. |
Definition at line 799 of file cuda_dxt.cu.
References dxt_launch().

| int cuda_yuv_to_dxt6 | ( | const void * | src, |
| void * | out, | ||
| int | size_x, | ||
| int | size_y, | ||
| cuda_wrapper_stream_t | stream ) |
Definition at line 821 of file cuda_dxt.cu.
References dxt_launch().
