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

Function MNNSamplerNV12Copy

source/backend/cpu/compute/ImageProcessFunction.cpp:990–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988}
989
990void MNNSamplerNV12Copy(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t sta,
991 size_t count, size_t capacity, size_t iw, size_t ih, size_t yStride) {
992 MNNSamplerNV21Copy(source, dest, points, sta, count, capacity, iw, ih, yStride);
993 auto destUV = dest + (capacity) + (sta / 2) * 2;
994 auto countC2 = ((count + 1) / 2);
995 _swapUV(destUV, destUV, countC2);
996}
997
998void MNNSamplerNV12Nearest(const unsigned char* source, unsigned char* dest, MNN::CV::Point* points, size_t sta,
999 size_t count, size_t capacity, size_t iw, size_t ih, size_t yStride) {

Callers

nothing calls this directly

Calls 2

MNNSamplerNV21CopyFunction · 0.85
_swapUVFunction · 0.85

Tested by

no test coverage detected