How to use the image2d module of nvidia media to complete the nv12->bgra conversion.
I am using nvmimg_2d and found that the output imaging results are incorrect.
Here is my conversion action:
SrcLayer1InputFile = 2211389370644_4.nv12
SrcLayer1Layout = PitchLinear
SrcLayer1ScanType = Progressive
SrcLayer1Plane1ColorFormat = Y8
SrcLayer1Plane1Width = 1920
SrcLayer1Plane1Height = 1080
SrcLayer1Plane2ColorFormat = U8V8
SrcLayer1Plane2Width = 960
SrcLayer1Plane2Height = 540
DstOutputFile = 2211389370644_4_test.nv12
DstLayout = PitchLinear
DstScanType = Progressive
DstPlane1ColorFormat = B8G8R8A8
DstPlane1Width = 1920
DstPlane1Height = 1080
The resulting image is of poor quality and not the correct result.