Home
last modified time | relevance | path

Searched refs:bit_precision (Results 1 – 2 of 2) sorted by relevance

/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_color_mgmt.h42 static inline u32 drm_color_lut_extract(u32 user_input, int bit_precision) in drm_color_lut_extract() argument
45 u32 max = 0xffff >> (16 - bit_precision); in drm_color_lut_extract()
48 if (bit_precision < 16) { in drm_color_lut_extract()
49 val += 1UL << (16 - bit_precision - 1); in drm_color_lut_extract()
50 val >>= 16 - bit_precision; in drm_color_lut_extract()
/openbsd/sys/dev/pci/drm/i915/display/
H A Dintel_color.c781 static u32 intel_color_lut_pack(u32 val, int bit_precision) in intel_color_lut_pack() argument
783 u32 max = 0xffff >> (16 - bit_precision); in intel_color_lut_pack()
787 if (bit_precision < 16) in intel_color_lut_pack()
788 val <<= 16 - bit_precision; in intel_color_lut_pack()