update the extravagant demo to make a social banner

This commit is contained in:
Johann Dreo 2023-01-25 09:48:31 +01:00
commit cb5e28add8
3 changed files with 31 additions and 10 deletions

BIN
banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 KiB

BIN
banner.xcf Normal file

Binary file not shown.

View file

@ -2,35 +2,56 @@
#include "../clutchlog/clutchlog.h" #include "../clutchlog/clutchlog.h"
void i() void dump_data()
{
CLUTCHLOG(progress, "Dump parsed data...");
CLUTCHLOG(debug, "Write in `data_dump.csv`");
CLUTCHLOG(debug, "Data frame size: " << 0 << "x" << "150");
CLUTCHLOG(xdebug, "Resolution: " << 0);
}
void reset()
{ {
CLUTCHLOG(progress, "Reset data structures..."); CLUTCHLOG(progress, "Reset data structures...");
CLUTCHLOG(debug, "OK"); CLUTCHLOG(debug, "OK");
CLUTCHLOG(info, "Reset functors..."); CLUTCHLOG(info, "Reset functors...");
CLUTCHLOG(critical, "Impossible to reset, I cannot recover."); CLUTCHLOG(critical, "Impossible to reset, I cannot recover.");
dump_data();
} }
void h() void process()
{ {
CLUTCHLOG(note, "Filling up data of size: " << 0); CLUTCHLOG(note, "Filling up data of size: " << 0);
CLUTCHLOG(error, "Cannot parse input, I will reset stuff."); CLUTCHLOG(error, "Cannot parse input, I will reset stuff.");
i(); reset();
CLUTCHLOG(xdebug, "Last seen state: " << 0); CLUTCHLOG(xdebug, "Last seen state: " << 0);
} }
void g() void init_data()
{ {
CLUTCHLOG(warning, "Input size < " << 1); CLUTCHLOG(debug, "Data frame size: " << 2 << "x" << "150");
h(); CLUTCHLOG(xdebug, "Resolution: " << 0.001);
CLUTCHLOG(warning, "Input height < " << 3);
} }
void f() void init_func()
{
CLUTCHLOG(progress, "Allocate memory...");
CLUTCHLOG(warning, "Dimension: " << 12);
CLUTCHLOG(debug, "OK");
}
void init()
{ {
CLUTCHLOG(progress, "Initialize data structures..."); CLUTCHLOG(progress, "Initialize data structures...");
init_data();
CLUTCHLOG(debug, "OK"); CLUTCHLOG(debug, "OK");
CLUTCHLOG(progress, "Initialize functors..."); CLUTCHLOG(progress, "Initialize functors...");
init_func();
CLUTCHLOG(debug, "OK");
CLUTCHLOG(progress, "Process...");
process();
CLUTCHLOG(debug, "OK"); CLUTCHLOG(debug, "OK");
g();
} }
int main(const int argc, char* argv[]) int main(const int argc, char* argv[])
@ -97,8 +118,8 @@ int main(const int argc, char* argv[])
} }
} }
CLUTCHLOG(progress,"Start something"); CLUTCHLOG(progress,"Start analysis");
f(); init();
CLUTCHLOG(progress,"I have stopped"); CLUTCHLOG(progress,"I have stopped");
} }