|
Hermes 0.7.0
Linux game streaming host
|
Pixel decoding and YUV encoding shared by the CUDA converter and its host-side tests. More...
#include <cstdint>Go to the source code of this file.
Classes | |
| struct | cuda::pixel::rgb_t |
| Colour channels normalized to [0, 1]. More... | |
| struct | cuda::pixel::vec4_t |
| struct | cuda::pixel::matrix_t |
| Layout-compatible with video::color_t. More... | |
Macros | |
| #define | CUDA_PIXEL_FN inline |
Enumerations | |
| enum class | cuda::pixel::layout_e : int { bgra8 , rgb10 , bgr10 } |
| How the 32-bit little-endian words of a CPU-copied frame hold their channels. More... | |
Functions | |
| rgb_t | cuda::pixel::unpack (layout_e layout, std::uint32_t word) |
| rgb_t | cuda::pixel::mix (rgb_t a, rgb_t b, float t) |
| rgb_t | cuda::pixel::average (rgb_t a, rgb_t b, rgb_t c, rgb_t d) |
| float | cuda::pixel::encode (const vec4_t &vec, rgb_t p) |
| std::uint32_t | cuda::pixel::quantize (float value, std::uint32_t max_code) |
| Truncate a rounded code value into [0, max_code]; NaN becomes 0. | |
| template<class sample_t> | |
| sample_t | cuda::pixel::store (std::uint32_t code) |
| A sample as stored in the plane: 8-bit codes as they are, P010 codes in bits 15:6. | |
| template<> | |
| std::uint8_t | cuda::pixel::store< std::uint8_t > (std::uint32_t code) |
| template<> | |
| std::uint16_t | cuda::pixel::store< std::uint16_t > (std::uint32_t code) |
Pixel decoding and YUV encoding shared by the CUDA converter and its host-side tests.
Nothing here depends on CUDA, so the arithmetic the kernels perform can be checked on machines without an NVIDIA GPU.
Definition in file cuda_pixel.h.
| #define CUDA_PIXEL_FN inline |
Definition at line 15 of file cuda_pixel.h.
|
strong |
How the 32-bit little-endian words of a CPU-copied frame hold their channels.
Definition at line 21 of file cuda_pixel.h.
Definition at line 48 of file cuda_pixel.h.
Definition at line 67 of file cuda_pixel.h.
Definition at line 44 of file cuda_pixel.h.
|
inline |
Truncate a rounded code value into [0, max_code]; NaN becomes 0.
Definition at line 72 of file cuda_pixel.h.
|
inline |
Definition at line 92 of file cuda_pixel.h.
|
inline |
Definition at line 87 of file cuda_pixel.h.
|
inline |
Definition at line 32 of file cuda_pixel.h.