| 561 | static std::mutex g_lut_mutex; |
| 562 | |
| 563 | static const unsigned char* get_global_lut(const float* code) { |
| 564 | std::lock_guard<std::mutex> lock(g_lut_mutex); |
| 565 | return g_lut_cache.get_lut(code); |
| 566 | } |
| 567 | |
| 568 | // Convert a normalized value in [-1, 1] to LUT index [0, 65535] |
| 569 | static inline uint16_t norm_to_lut_index(float val) { |
no test coverage detected