diff options
author | nathansmith <nathansmith@posteo.com> | 2025-04-29 14:04:51 +0000 |
---|---|---|
committer | nathansmith <nathansmith@posteo.com> | 2025-04-29 14:04:51 +0000 |
commit | ffd314a245632a85ba5f310e8d86937091886d4d (patch) | |
tree | 2816cb5158e1e3d414cdce9f9273f426a9410f63 /src/ffmpeg.h | |
parent | 6d338602aa98cc9dfab39b83702af0e548286596 (diff) | |
download | sldj-ffd314a245632a85ba5f310e8d86937091886d4d.tar.gz sldj-ffd314a245632a85ba5f310e8d86937091886d4d.tar.bz2 sldj-ffd314a245632a85ba5f310e8d86937091886d4d.zip |
Slow adhd work
Diffstat (limited to 'src/ffmpeg.h')
-rw-r--r-- | src/ffmpeg.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/ffmpeg.h b/src/ffmpeg.h index 71277a5..ea1f3c6 100644 --- a/src/ffmpeg.h +++ b/src/ffmpeg.h @@ -1,19 +1,12 @@ #include <assert.h> -#include <stdio.h> #include <stdint.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <raylib.h> -#include "sldjConfig.h" - // stolen code: https://github.com/tsoding/musializer/blob/master/src/ffmpeg_posix.c #ifndef FFMPEG_H @@ -27,9 +20,9 @@ typedef struct FFMPEG { pid_t pid; } FFMPEG; -FFMPEG* ffmpegStart(const char* filename, int width, int height, int fps); -int ffmpegSendFrame(FFMPEG* ffmpeg, void* data, int widtth, int height); -int ffmpegEnd(FFMPEG* ffmpeg); +FFMPEG* ffmpegStart(const char* filename, uint32_t width, uint32_t height, uint32_t fps); +int ffmpegSendFrame(FFMPEG* ffmpeg, void* data, uint32_t width, uint32_t height); +int ffmpegEnd(FFMPEG* ffmpeg, bool cancel); #endif |