summaryrefslogtreecommitdiff
path: root/taro/tests
diff options
context:
space:
mode:
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;
+}