ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
__attribute__ Struct Reference

RGB pixel structure. More...

#include <lib/video/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 structure.

SIMD-aligned RGB pixel structure for optimal NEON/AVX performance.

Standard RGB pixel structure with 3 bytes per pixel (R, G, B). Packed structure (no padding) for efficient memory usage.

Note
Structure is packed for wire format compatibility.
Color components are in range 0-255.
Size: 3 bytes per pixel.

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 80 of file video/image.h.

Field Documentation

◆ b

uint8_t __attribute__::b

Blue color component (0-255)

Definition at line 83 of file video/image.h.

◆ g

uint8_t __attribute__::g

Green color component (0-255)

Definition at line 82 of file video/image.h.

◆ padding

uint8_t __attribute__::padding

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

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

◆ r

uint8_t __attribute__::r

Red color component (0-255)

Definition at line 81 of file video/image.h.


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