mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 15:50:42 -07:00
Initial commit for GitHub migration based on spice2x-25-03-03
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace tapeledutils {
|
||||
|
||||
enum led_tape_color_pick_algorithm {
|
||||
TAPE_LED_USE_NONE = 0,
|
||||
TAPE_LED_USE_FIRST = 1,
|
||||
TAPE_LED_USE_MIDDLE = 2,
|
||||
TAPE_LED_USE_LAST = 3,
|
||||
TAPE_LED_USE_AVERAGE = 4,
|
||||
};
|
||||
|
||||
extern led_tape_color_pick_algorithm TAPE_LED_ALGORITHM;
|
||||
|
||||
typedef struct {
|
||||
float r;
|
||||
float g;
|
||||
float b;
|
||||
} rgb_float3_t;
|
||||
|
||||
bool is_enabled();
|
||||
rgb_float3_t pick_color_from_led_tape(uint8_t *data, size_t data_size);
|
||||
size_t get_led_index_using_avg_algo(size_t data_size);
|
||||
}
|
||||
Reference in New Issue
Block a user