title: Writing buffer contents to a file
body: <p>If I have a buffer in memory, which contains an image in YUV format, how can I save the buffer contents to a file, i.e., what file format should I use, and can I view the file later in an image viewer?</p>