Converting Bayer RG10 image to Viewable PNG

I have captured Raw image using V4L2 utils, using the below command.
v4l2-ctl --stream-mmap --stream-count=1 --stream-to=file.raw --set-ctrl bypass_mode=0 --set-fmt-vide0=width=1920,height=1080
What is the command to convert it to a viewable format ?

I use the 7yuv to check the raw data.