summaryrefslogtreecommitdiff
path: root/taro/tests
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-03 19:08:44 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-04 14:19:40 -0400
commit0bf9b26b87075448d49482fe4411739af765d872 (patch)
treee3f0e3312a92e5250fa72b410adb370734deca04 /taro/tests
parentacd44bb898996ff4e36b39b10e870e40bcaf2634 (diff)
downloadmauri-0bf9b26b87075448d49482fe4411739af765d872.tar.gz
mauri-0bf9b26b87075448d49482fe4411739af765d872.tar.bz2
mauri-0bf9b26b87075448d49482fe4411739af765d872.zip
Update codebase
Bring up-to-date with my other projects. Wallpaper engine behavior is mostly unchanged. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'taro/tests')
-rw-r--r--taro/tests/notcurses_ffmpeg.c35
1 files changed, 35 insertions, 0 deletions
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 <notcurses/notcurses.h>
+#include <notcurses/nckeys.h>
+#include <al/types.h>
+#include <aki/common.h>
+
+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;
+}