AsciiCam/include/ascii.h
Harshit-Dhanwalkar 02926a2623 Organise project
2026-05-13 22:18:22 +05:30

15 lines
363 B
C

#ifndef ASCII_H
#define ASCII_H
#include <stdint.h>
#define ASCII_CHARS " .:-=+*#%@"
// Convert YUYV raw data to grayscale
void yuyv_to_gray(const uint8_t *yuyv, uint8_t *gray, int width, int height);
// grayscale to ASCII output grid
char *grayscale_to_ascii(const uint8_t *gray, int src_w, int src_h,
int dst_w, int dst_h);
#endif