ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.06k stars 412 forks source link

nv12 convert to rgb #133

Closed w136111526 closed 3 years ago

w136111526 commented 3 years ago

Hello, I would like to convert the NV12 image to-bit rgb image, there is no function available

ermig1979 commented 3 years ago

See function Convert in file SimdFrame.hpp, line 712:

        case Frame<A>::Bgr24:
        {
            View<A> u(src.Size(), View<A>::Gray8), v(src.Size(), View<A>::Gray8);
            DeinterleaveUv(src.planes[1], u, v);
            Yuv420pToBgr(src.planes[0], u, v, dst.planes[0]);
            break;
        }