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

Function MNNSamplerC4Nearest

source/backend/cpu/compute/ImageProcessFunction.cpp:821–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821void MNNSamplerC4Nearest(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t sta,
822 size_t count, size_t capacity, size_t iw, size_t ih, size_t yStride) {
823#ifdef MNN_USE_NEON
824 MNNSamplerC4NearestOpt(source, dest + 4 * sta, (float*)points, count, iw - 1, ih - 1, yStride);
825#else
826 MNNSamplerNearest(source, dest, points, sta, count, iw, ih, yStride, 4);
827#endif
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) {

Callers

nothing calls this directly

Calls 1

MNNSamplerNearestFunction · 0.85

Tested by

no test coverage detected