STRUCT DRM_COLOROP_STATE(9)
π NAME π
struct drm_colorop_state β the mutable state of a colorop, bestie. Like, the parts that can actually change. β¨
π¦ SYNOPSIS π¦
struct drm_colorop_state {
struct drm_colorop *colorop;
bool bypass;
enum drm_colorop_curve_1d_type curve_1d_type;
uint64_t multiplier;
struct drm_property_blob *data;
enum drm_colorop_lut1d_interpolation_type lut1d_interpolation;
enum drm_colorop_lut3d_interpolation_type lut3d_interpolation;
struct drm_atomic_commit *state;
};
Look at her. Iconic. Struct with main character energy. π
π Members π
Okay so here's the whole cast, one by one, no skips:
coloropβ backpointer to the colorop. That's it, that's the whole vibe. She knows where she came from. π«Άbypassβ when the propertyBYPASSexists on this colorop, this stores the requested bypass state:trueif the colorop shall be bypassed,falseif the colorop is enabled. So like,true= "not me participating today π",false= "I'm in, I'm enabled, I'm working". Note the if βBYPASShas to actually exist on this colorop for this to be a thing. iykyk.curve_1d_typeβ type of 1D curve. Literally just which flavor of 1D curve, periodt.multiplierβ multiplier to 'gain' the plane. Format is S31.32 sign-magnitude. Yes, the format matters, don't come at me with some other format, it will not slay. π₯dataβ the data blob for anyTYPEthat requires such a blob. The interpretation of the blob isTYPE-specific β so like, don't assume, everyTYPEreads it its own way, fr fr.
See the drm_colorop_type documentation for how blob is laid out. π Go read it. It's giving required reading.
lut1d_interpolationβ interpolation forDRM_COLOROP_1D_LUT. The interpolation. For the 1D LUT. Exactly what it says. πlut3d_interpolationβ interpolation forDRM_COLOROP_3D_LUT. Same energy, but three-dimensional now, which is lowkey a whole moment. β¨stateβ backpointer to the globaldrm_atomic_commit. The big group chat she belongs to. π
πΈ SEE ALSO πΈ
- Kernel file
./include/drm/drm_colorop.h, enumdrm_colorop_curve_1d_type(9) struct drm_colorop_funcs(9)struct drm_colorop(9)drm_colorop_find(9)drm_colorop_reset(9)drm_colorop_index(9)drm_get_colorop_type_name(9)drm_get_colorop_curve_1d_type_name(9)
Go read them all, bestie, they're all connected, it's a whole ecosystem π§
Heads up: this page lives in ./include/drm and it's dated October 2026 β that's the Kernel API Manual, so you know it's official official, ngl. Ok bye, ily, go write some colorops ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms