How to use c++ opencv convert bgr(cv::Mat) to nv12(cv::Mat)

I know how to convert YV12 by CV_BGR2YUV_YV12, but not find 2NV12 or 2NV21. Hoping you can show me the code.

how are those defined? I’ve never heard of those formats. I know NV12 and NV21.

what do you want to do here ?
a lot of devices produce raw output in similar formats, but what is the conversion from bgr for ?