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
10
#include "
fl/gfx/color_profile.h
"
11
#include "
fl/stl/int.h
"
12
#include "
fl/stl/noexcept.h
"
13
14
namespace
fl
{
15
19
u16
decodeTransferU16
(
TransferFunction
transfer,
u8
code)
FL_NO_EXCEPT
;
20
21
}
// namespace fl
color_profile.h
int.h
fl::u8
unsigned char u8
Definition
stdint.h:131
fl::TransferFunction
TransferFunction
Definition
color_profile.h:28
fl::FL_NO_EXCEPT
InputGamut g FL_NO_EXCEPT
Definition
rgbw.h:121
fl::decodeTransferU16
u16 decodeTransferU16(TransferFunction transfer, u8 code) FL_NO_EXCEPT
Decode one 8-bit source code to u16 linear light under transfer.
Definition
transfer.cpp.hpp:79
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
noexcept.h
fl
gfx
transfer.h
Generated on Sun Oct 4 2026 23:09:00 for FastLED by
1.13.2