MCPcopy Create free account
hub / github.com/alibaba/MNN / __clamp

Function __clamp

source/backend/cpu/compute/ImageProcessFunction.cpp:739–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737
738
739static inline float __clamp(float v, float minV, float maxV) {
740 return std::max(std::min(v, maxV), minV);
741}
742
743static void _sampleBilinearCommon(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t count,
744 size_t iw, size_t ih, size_t yStride, size_t bpp) {

Callers 6

_sampleBilinearCommonFunction · 0.70
MNNSamplerNearestFunction · 0.70
MNNSamplerCopyCommonFunction · 0.70
MNNSamplerI420CopyFunction · 0.70
MNNSamplerI420NearestFunction · 0.70
MNNSamplerNV21CopyFunction · 0.70

Calls 2

maxFunction · 0.50
minFunction · 0.50

Tested by

no test coverage detected