Searched refs:GRADIENT_TABLE_SIZE (Results 1 – 6 of 6) sorted by relevance
/dports/audio/deadbeef-musical-spectrum-plugin/ddb_musical_spectrum-353870a/ |
H A D | draw_utils.c | 101 int index = ftoi(((double)y0/(double)total_h) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_v() 102 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_v() 119 int index = ftoi(((double)x/(double)total_w) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_h() 120 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_h() 136 int index = ftoi(((double)y0/(double)total_h) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_bar_mode_v() 137 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_bar_mode_v() 155 int index = ftoi(((double)x/(double)total_w) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_bar_mode_h() 156 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_bar_mode_h()
|
H A D | spectrum.h | 37 #define GRADIENT_TABLE_SIZE 1024 macro 60 uint32_t colors[GRADIENT_TABLE_SIZE];
|
H A D | utils.c | 80 for (int i = 0; i < GRADIENT_TABLE_SIZE; i++) { in create_gradient_table() 81 double position = (double)i/GRADIENT_TABLE_SIZE; in create_gradient_table()
|
H A D | config_dialog.c | 55 static uint32_t colors_temp[GRADIENT_TABLE_SIZE];
|
/dports/audio/deadbeef-vu-meter-plugin/ddb_vu_meter-940d8d7/ |
H A D | vumeter.c | 42 #define GRADIENT_TABLE_SIZE 1024 macro 80 uint32_t colors[GRADIENT_TABLE_SIZE]; 268 int index = ftoi(((double)y0/(double)total_h) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_v() 269 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_v() 287 int index = ftoi(((double)x/(double)total_w) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_h() 288 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_h() 305 int index = ftoi(((double)y0/(double)total_h) * (GRADIENT_TABLE_SIZE - 1)); in _draw_bar_gradient_bar_mode_v() 306 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_bar_mode_v() 326 index = CLAMP (index, 0, GRADIENT_TABLE_SIZE - 1); in _draw_bar_gradient_bar_mode_h() 342 for (int i = 0; i < GRADIENT_TABLE_SIZE; i++) { in create_gradient_table() [all …]
|
/dports/audio/deadbeef-spectrogram-plugin/ddb_spectrogram-8d1b371/ |
H A D | spectrogram.c | 36 #define GRADIENT_TABLE_SIZE 2048 macro 70 uint32_t colors[GRADIENT_TABLE_SIZE]; 177 for (int i = 0; i < GRADIENT_TABLE_SIZE; i++) { in create_gradient_table() 178 double position = (double)i/GRADIENT_TABLE_SIZE; in create_gradient_table() 756 … int color_index = GRADIENT_TABLE_SIZE - ftoi (GRADIENT_TABLE_SIZE/(float)CONFIG_DB_RANGE * x); in spectrogram_draw() 757 color_index = CLAMP (color_index, 0, GRADIENT_TABLE_SIZE-1); in spectrogram_draw()
|