FastLED 3.10.6
Loading...
Searching...
No Matches
transfer.h
Go to the documentation of this file.
1#pragma once
2
3// Source transfer-function decode for the color pipeline (P6, #4040).
4//
5// One semantic conversion: normalize an 8-bit code and apply the source
6// profile's inverse transfer, producing u16 linear light. The input domain is
7// 256 values, so a table is exact and costs one load per channel -- no pow()
8// and no float in the per-pixel path.
9
11#include "fl/stl/int.h"
12#include "fl/stl/noexcept.h"
13
14namespace fl {
15
20
21} // namespace fl
unsigned char u8
Definition stdint.h:131
TransferFunction
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
u16 decodeTransferU16(TransferFunction transfer, u8 code) FL_NO_EXCEPT
Decode one 8-bit source code to u16 linear light under transfer.
Base definition for an LED controller.
Definition crgb.hpp:179