MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / clamp

Method clamp

encoder/basisu_resampler.cpp:396–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 }
395
396 void Resampler::clamp(Sample * Pdst, int n)
397 {
398 while (n > 0)
399 {
400 Sample x = *Pdst;
401 *Pdst++ = clamp_sample(x);
402 n--;
403 }
404 }
405
406 void Resampler::resample_y(Sample * Pdst)
407 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected