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

Function MNNSamplerNV12Nearest

source/backend/cpu/compute/ImageProcessFunction.cpp:998–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {
1000 MNNSamplerNV21Nearest(source, dest, points, sta, count, capacity, iw, ih, yStride);
1001 auto destUV = dest + (capacity) + (sta / 2) * 2;
1002 auto countC2 = ((count + 1) / 2);
1003 _swapUV(destUV, destUV, countC2);
1004}
1005
1006void MNNC3blitH(const unsigned char* source, unsigned char* dest, size_t count) {
1007 for (int i = 0; i < count; i++) {

Callers

nothing calls this directly

Calls 2

MNNSamplerNV21NearestFunction · 0.85
_swapUVFunction · 0.85

Tested by

no test coverage detected