Blender V4.3
blender::color::ByteTraits Struct Reference

#include <BLI_color_mix.hh>

Public Types

using ValueType = uchar
 
using BlendType = int
 

Static Public Member Functions

static BlendType divide_round (BlendType a, BlendType b)
 
static BlendType min (BlendType a, BlendType b)
 
static BlendType max (BlendType a, BlendType b)
 
static ValueType round (float f)
 

Static Public Attributes

static const uchar range = 255
 
static const float frange = 255.0f
 
static const int cmpRange = 254
 
static const int expandedRange = 256
 
static const int bytes = 1
 
static const float unit = 255.0f
 

Detailed Description

Definition at line 23 of file BLI_color_mix.hh.

Member Typedef Documentation

◆ BlendType

Definition at line 25 of file BLI_color_mix.hh.

◆ ValueType

Definition at line 24 of file BLI_color_mix.hh.

Member Function Documentation

◆ divide_round()

static BlendType blender::color::ByteTraits::divide_round ( BlendType a,
BlendType b )
inlinestatic

Definition at line 35 of file BLI_color_mix.hh.

References b, and divide_round_i().

◆ max()

static BlendType blender::color::ByteTraits::max ( BlendType a,
BlendType b )
inlinestatic

Definition at line 45 of file BLI_color_mix.hh.

References b, and max_ii().

◆ min()

static BlendType blender::color::ByteTraits::min ( BlendType a,
BlendType b )
inlinestatic

Definition at line 40 of file BLI_color_mix.hh.

References b, and min_ii().

◆ round()

static ValueType blender::color::ByteTraits::round ( float f)
inlinestatic

Definition at line 50 of file BLI_color_mix.hh.

References round_fl_to_uchar().

Member Data Documentation

◆ bytes

const int blender::color::ByteTraits::bytes = 1
inlinestatic

Definition at line 32 of file BLI_color_mix.hh.

◆ cmpRange

const int blender::color::ByteTraits::cmpRange = 254
inlinestatic

Definition at line 29 of file BLI_color_mix.hh.

◆ expandedRange

const int blender::color::ByteTraits::expandedRange = 256
inlinestatic

Definition at line 30 of file BLI_color_mix.hh.

◆ frange

const float blender::color::ByteTraits::frange = 255.0f
inlinestatic

Definition at line 28 of file BLI_color_mix.hh.

◆ range

const uchar blender::color::ByteTraits::range = 255
inlinestatic

Definition at line 27 of file BLI_color_mix.hh.

◆ unit

const float blender::color::ByteTraits::unit = 255.0f
inlinestatic

Definition at line 33 of file BLI_color_mix.hh.


The documentation for this struct was generated from the following file: