Image module

convert_luma

procedure · 1 overloadsince 0.28.0Source

Rec. 709 luma in 16-bit fixed point; the weights sum to 65536 so white stays white.

convert_luma :: (r: s32, g: s32, b: s32) -> u8

Rec. 709 luma in 16-bit fixed point; the weights sum to 65536 so white stays white.

Parameters

r: s32
g: s32
b: s32

Returns

u8

See also