MCPcopy Create free account
hub / github.com/defold/defold / resampler_range_check

Function resampler_range_check

engine/dlib/src/basis/encoder/basisu_resampler.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace basisu
21{
22 static inline int resampler_range_check(int v, int h)
23 {
24 BASISU_NOTE_UNUSED(h);
25 assert((v >= 0) && (v < h));
26 return v;
27 }
28
29 // Float to int cast with truncation.
30 static inline int cast_to_int(Resample_Real i)

Callers 5

resample_yMethod · 0.85
put_lineMethod · 0.85
get_lineMethod · 0.85
restartMethod · 0.85
ResamplerMethod · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected