|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Image structure. More...
#include <lib/video/image.h>
Data Fields | |
| int | w |
| Image width in pixels (must be > 0) | |
| int | h |
| Image height in pixels (must be > 0) | |
| rgb_pixel_t * | pixels |
| Pixel data array (width * height RGB pixels, row-major order) | |
| uint8_t | alloc_method |
| Allocation method (image_alloc_method_t) for correct deallocation. | |
Image structure.
Complete image structure containing dimensions and pixel data. Pixel data is stored as a contiguous array of RGB pixels in row-major order. Compatible with webcam capture and image processing pipeline.
MEMORY LAYOUT:
Definition at line 141 of file video/image.h.
| uint8_t image_t::alloc_method |
Allocation method (image_alloc_method_t) for correct deallocation.
Definition at line 145 of file video/image.h.
Referenced by image_destroy(), image_new(), and image_new_from_pool().
| int image_t::h |
Image height in pixels (must be > 0)
Definition at line 143 of file video/image.h.
Referenced by ascii_convert(), ascii_convert_with_capabilities(), benchmark_simd_color_conversion_with_source(), benchmark_simd_conversion_with_source(), convert_pixels_scalar_with_newlines(), image_clear(), image_destroy(), image_destroy_to_pool(), image_new(), image_new_from_pool(), image_pixel(), image_print(), image_print_16color(), image_print_16color_dithered(), image_print_16color_dithered_with_background(), image_print_color(), image_print_with_capabilities(), image_resize_interpolation(), and webcam_read().
| rgb_pixel_t* image_t::pixels |
Pixel data array (width * height RGB pixels, row-major order)
Definition at line 144 of file video/image.h.
Referenced by ascii_convert(), benchmark_simd_color_conversion(), benchmark_simd_color_conversion_with_source(), benchmark_simd_conversion(), benchmark_simd_conversion_with_source(), convert_pixels_scalar_with_newlines(), image_clear(), image_destroy(), image_new(), image_new_from_pool(), image_pixel(), image_print(), image_print_16color(), image_print_16color_dithered(), image_print_16color_dithered_with_background(), image_print_256color(), image_print_color(), image_print_with_capabilities(), image_resize_interpolation(), and webcam_read().
| int image_t::w |
Image width in pixels (must be > 0)
Definition at line 142 of file video/image.h.
Referenced by ascii_convert(), ascii_convert_with_capabilities(), benchmark_simd_color_conversion_with_source(), benchmark_simd_conversion_with_source(), convert_pixels_scalar_with_newlines(), image_clear(), image_destroy(), image_destroy_to_pool(), image_new(), image_new_from_pool(), image_pixel(), image_print(), image_print_16color(), image_print_16color_dithered(), image_print_16color_dithered_with_background(), image_print_color(), image_print_with_capabilities(), image_resize_interpolation(), and webcam_read().