ascii-chat 0.8.38
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
video.c File Reference

Video utility stubs for WASM. More...

Go to the source code of this file.

Functions

asciichat_error_t image_validate_dimensions (size_t width, size_t height)
 

Detailed Description

Video utility stubs for WASM.

Definition in file video.c.

Function Documentation

◆ image_validate_dimensions()

asciichat_error_t image_validate_dimensions ( size_t  width,
size_t  height 
)

Definition at line 12 of file video.c.

12 {
13 if (width > 0 && height > 0 && width <= 10000 && height <= 10000) {
14 return ASCIICHAT_OK;
15 }
16 return ERROR_INVALID_PARAM;
17}

Referenced by handle_image_frame_packet(), and image_new().