mirror of
https://github.com/Harshit-Dhanwalkar/AsciiCam.git
synced 2026-06-18 10:55:13 +02:00
Update README and organise file structure
This commit is contained in:
parent
deba0b6dce
commit
7b3b2cfd0b
11 changed files with 16 additions and 5 deletions
|
|
@ -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
3
Cpp/README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# TODO
|
||||
|
||||
First focusing on implementing in C then Cpp.
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
BIN
webcam_ascii
BIN
webcam_ascii
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue