Flutter Engine
The Flutter Engine
Functions
sktests Namespace Reference

Functions

uint32_t pack_clamp (SkFixed f, unsigned max)
 
uint32_t pack_repeat (SkFixed f, unsigned max, size_t width)
 
uint32_t pack_mirror (SkFixed f, unsigned max, size_t width)
 
template<typename U32 , typename Out >
void decode_packed_coordinates_and_weight (U32 packed, Out *v0, Out *v1, Out *w)
 

Function Documentation

◆ decode_packed_coordinates_and_weight()

template<typename U32 , typename Out >
void sktests::decode_packed_coordinates_and_weight ( U32  packed,
Out *  v0,
Out *  v1,
Out *  w 
)

Definition at line 582 of file SkBitmapProcState_opts.h.

582 {
583 SK_OPTS_NS::decode_packed_coordinates_and_weight<U32, Out>(packed, v0, v1, w);
584 }
SkScalar w

◆ pack_clamp()

uint32_t sktests::pack_clamp ( SkFixed  f,
unsigned  max 
)

Definition at line 538 of file SkBitmapProcState_matrixProcs.cpp.

538 {
539 // Based on ClampX_ClampY_Procs[1] (filter_scale)
540 return ::pack<clamp, extract_low_bits_clamp_clamp>(f, max, SK_Fixed1);
541}
#define SK_Fixed1
Definition: SkFixed.h:26
static float max(float r, float g, float b)
Definition: hsl.cpp:49

◆ pack_mirror()

uint32_t sktests::pack_mirror ( SkFixed  f,
unsigned  max,
size_t  width 
)

Definition at line 548 of file SkBitmapProcState_matrixProcs.cpp.

548 {
549 // Based on MirrorX_MirrorY_Procs[1] (filter_scale)
550 return ::pack<mirror, extract_low_bits_general>(f, max, SK_Fixed1 / width);
551}
int32_t width

◆ pack_repeat()

uint32_t sktests::pack_repeat ( SkFixed  f,
unsigned  max,
size_t  width 
)

Definition at line 543 of file SkBitmapProcState_matrixProcs.cpp.

543 {
544 // Based on RepeatX_RepeatY_Procs[1] (filter_scale)
545 return ::pack<repeat, extract_low_bits_general>(f, max, SK_Fixed1 / width);
546}