Update README and organise file structure

This commit is contained in:
Harshit-Dhanwalkar 2026-05-15 01:27:35 +05:30
parent deba0b6dce
commit 7b3b2cfd0b
11 changed files with 16 additions and 5 deletions

View file

@ -3,11 +3,13 @@
#include <stdlib.h>
#include <string.h>
void yuyv_to_gray(const uint8_t *yuyv, uint8_t *gray, int width, int height) {
for (int i = 0, j = 0; i < width * height * 2; i += 2, j++) {
gray[j] = yuyv[i];
}
}
#define CHECK(x, msg) if ((x) < 0) { perror(msg); goto cleanup; }
typedef struct {
uint8_t *raw_frame;
uint8_t *gray;
char *ascii;
} frame_t;
char *grayscale_to_ascii(const uint8_t *gray, int src_w, int src_h,
int dst_w, int dst_h) {

3
Cpp/README.md Normal file
View file

@ -0,0 +1,3 @@
# TODO
First focusing on implementing in C then Cpp.

View file

@ -6,4 +6,10 @@ Ascii video output from your webcam in your terminal.
## TODO
- [x] Adjust width and height of capturing frame.
- [ ] Brightness/contrast adjustment.
- [ ] Custom ASCII charset via config file
- [ ] Reverse video - Invert brightness $\rightarrow$ charset mapping
- [ ] Color output - Extract U/V channels, map to ANSI/RGB codes
- [ ] Add feature to record and save it in popular video formats like `.mp4`, `.mov` and `.gif`.
- [ ] Dithering
- [ ] Migrate from C to Cpp.

Binary file not shown.