'Are there NV12 files? or are there in PNG files?

I am confused about image formats. I have read what theoretically YUV and RGB mean. The problem is that I understand them just theoretically.

I have a PNG file. Are PNG files RGB by default? Or can they be NV12(YUV) too?

If no, in what format do NV12 images come from? How do I recognize they are NV12 images? Do I have to perform conversion from a PNG file to read it as NV12?


Part of my confusion is because I read a program that converted RGB to YUV but then later extracted only the Y part and saved it in a file. So the file only had the Y part. Are there files with the whole YUV information?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source