ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
rgb_pixel_simd_t Struct Reference

rgb pixel is intentionally a small, concrete record. Fields such as r, g, b give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. More...

#include <include/ascii-chat/video/rgba/image.h>

Data Fields

uint8_t r
 Red color component (0-255).
uint8_t g
 Green color component (0-255).
uint8_t b
 Blue color component (0-255).
uint8_t padding
 Padding byte to align to 4-byte boundary (SIMD alignment).

Detailed Description

rgb pixel is intentionally a small, concrete record. Fields such as r, g, b give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed.

SIMD-optimized RGB pixel structure with 4-byte alignment for efficient vector operations. Includes padding byte to align to 16-byte boundary for optimal SIMD (NEON/AVX/SSE) performance.

Note
Structure is 16-byte aligned for SIMD optimization.
Color components are in range 0-255.
Size: 4 bytes per pixel (includes padding).
Use this structure for SIMD-optimized image processing.

Definition at line 101 of file video/rgba/image.h.

Field Documentation

◆ b

uint8_t rgb_pixel_simd_t::b

Blue color component (0-255).

Definition at line 104 of file video/rgba/image.h.

◆ g

uint8_t rgb_pixel_simd_t::g

Green color component (0-255).

Definition at line 103 of file video/rgba/image.h.

◆ padding

uint8_t rgb_pixel_simd_t::padding

Padding byte to align to 4-byte boundary (SIMD alignment).

Definition at line 105 of file video/rgba/image.h.

◆ r

uint8_t rgb_pixel_simd_t::r

Red color component (0-255).

Definition at line 102 of file video/rgba/image.h.


The documentation for this struct was generated from the following file: