which api in msdk can convert rgb4 to nv12?
The VPP component of the Intel Media SDKcan perform BRG4(32) to NV12 conversion.
For more details please refer to the reference manual and the sample_vpp sample for details.
Has the sample_vpp sample implemented it?
Yes, that is correct.