From 0bf9b26b87075448d49482fe4411739af765d872 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 3 Oct 2024 19:08:44 -0400 Subject: Update codebase Bring up-to-date with my other projects. Wallpaper engine behavior is mostly unchanged. Signed-off-by: Andrew Opalach --- taro/tests/notcurses_ffmpeg.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 taro/tests/notcurses_ffmpeg.c (limited to 'taro/tests') diff --git a/taro/tests/notcurses_ffmpeg.c b/taro/tests/notcurses_ffmpeg.c new file mode 100644 index 0000000..1a9f44d --- /dev/null +++ b/taro/tests/notcurses_ffmpeg.c @@ -0,0 +1,35 @@ +#include +#include +#include +#include + +s32 main(void) +{ + if (!aki_common_init()) return EXIT_FAILURE; + + struct notcurses *nc = notcurses_init(NULL, stdin); + + struct ncplane_options nopts = { 0 }; + nopts.cols = 25; + nopts.rows = 15; + nopts.x = 0; + nopts.y = 0; + struct ncplane *p = ncplane_create(notcurses_stdplane(nc), &nopts); + + //struct ncvisual *v = ncvisual_from_file("/home/andrew/c/mauri/workshop_wallpapers_11-8-21/2025095336/preview.gif"); + struct ncvisual *v = ncvisual_from_file("/home/andrew/dl/mp4/This is FRIED [svlczpgt2m3d1].mp4"); + if (!v) goto out; + struct ncvisual_options vopts = { 0 }; + vopts.scaling = NCSCALE_SCALE; + vopts.blitter = NCBLIT_PIXEL; + vopts.n = p; + + ncvisual_stream(nc, v, 1.0f, NULL, &vopts, NULL); + +out: + notcurses_stop(nc); + + aki_common_close(); + + return EXIT_SUCCESS; +} -- cgit v1.2.3-101-g0448