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

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