#include #include #include #include <../silent/lossless.h> #include #include #include #include static void lossless_task() { msleep(2000); console_clear(); console_show(); printf("Init...\n"); raw_lv_request(); if (!raw_update_params()) return; void * out = malloc(10*1024*1024); if (!out) return; memset(out, 0, 10*1024*1024); struct memSuite * outSuite = CreateMemorySuite(out, 0x41a200, 0); lossless_compress_raw(&raw_info, outSuite); DeleteMemorySuite(outSuite); free(out); raw_lv_release(); printf("Finished.\n"); } static struct menu_entry lossless_menu[] = { { .name = "Compression test", .select = run_in_separate_task, .priv = lossless_task, }, }; static unsigned int lossl_init() { menu_add("Debug", lossless_menu, COUNT(lossless_menu)); lossless_init(); return 0; } static unsigned int lossl_deinit() { return 0; } MODULE_INFO_START() MODULE_INIT(lossl_init) MODULE_DEINIT(lossl_deinit) MODULE_INFO_END()