wlmaker
Loading...
Searching...
No Matches
wlm_graph_shared.h
Go to the documentation of this file.
1/* ========================================================================= */
23#ifndef WLM_GRAPH_SHARED_H
24#define WLM_GRAPH_SHARED_H
25
26#include <stdint.h>
27
28/* == Definitions ========================================================== */
29
35#define WLM_GRAPH_REGENERATE_HISTORY_MAX 512
36
54
61typedef struct {
63 uint8_t *data;
65 uint32_t num;
67
79
85typedef struct {
87 const char *app_name;
89 const char *app_help;
90
93
106 wlm_graph_read_result_t (*stats_read_fn)(void *app_state, wlm_graph_values_t *values);
107
122 void (*regenerate_fn)(void *app_state, wlm_graph_values_t *samples, uint32_t sample_count);
123
126
134 void (*state_free_fn)(void *app_state);
135
143 const uint32_t *pixel_lut;
144
154 const char *(*label_fn)(void *app_state);
156
157/* == Public API =========================================================== */
158
175 int argc,
176 const char **argv,
177 const wlm_graph_app_config_t *config);
178
179#endif /* WLM_GRAPH_SHARED_H */
Definition wlm_graph_shared.h:85
const char * app_help
Definition wlm_graph_shared.h:89
const uint32_t * pixel_lut
Definition wlm_graph_shared.h:143
const char * app_name
Definition wlm_graph_shared.h:87
void * app_state
Definition wlm_graph_shared.h:125
wlm_graph_mode_t accumulate_mode
Definition wlm_graph_shared.h:92
Definition wlm_graph_shared.h:61
uint32_t num
Definition wlm_graph_shared.h:65
uint8_t * data
Definition wlm_graph_shared.h:63
wlm_graph_mode_t
Definition wlm_graph_shared.h:40
@ WLM_GRAPH_ACCUMULATE_MODE_INDEPENDENT
Definition wlm_graph_shared.h:46
@ WLM_GRAPH_ACCUMULATE_MODE_STACKED
Definition wlm_graph_shared.h:52
int wlm_graph_app_run(int argc, const char **argv, const wlm_graph_app_config_t *config)
Definition wlm_graph_shared.c:1426
wlm_graph_read_result_t
Definition wlm_graph_shared.h:71
@ WLM_GRAPH_READ_ERROR
Definition wlm_graph_shared.h:73
@ WLM_GRAPH_READ_OK_AND_REGENERATE
Definition wlm_graph_shared.h:77
@ WLM_GRAPH_READ_OK
Definition wlm_graph_shared.h:75