From ffd314a245632a85ba5f310e8d86937091886d4d Mon Sep 17 00:00:00 2001 From: nathansmith Date: Tue, 29 Apr 2025 08:04:51 -0600 Subject: Slow adhd work --- src/ffmpeg.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/ffmpeg.h') 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 -#include #include -#include -#include -#include -#include #include #include #include #include -#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 -- cgit v1.2.3