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

Function MNNSamplerC1Nearest

source/backend/cpu/compute/ImageProcessFunction.cpp:830–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void MNNSamplerC1Nearest(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t sta,
831 size_t count, size_t capacity, size_t iw, size_t ih, size_t yStride) {
832#ifdef MNN_USE_NEON
833 MNNSamplerC1NearestOpt(source, dest + sta, (float*)points, count, iw - 1, ih - 1, yStride);
834#else
835 MNNSamplerNearest(source, dest, points, sta, count, iw, ih, yStride, 1);
836#endif
837}
838
839void MNNSamplerC3Nearest(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t sta,
840 size_t count, size_t capacity, size_t iw, size_t ih, size_t yStride) {

Callers 2

MNNSamplerI420NearestFunction · 0.85
MNNSamplerNV21NearestFunction · 0.85

Calls 1

MNNSamplerNearestFunction · 0.85

Tested by

no test coverage detected