Using ImageMagick to convert a 4:2:2 YCrCb raw image to something viewable

Some electronic imaging system dumped a 4:2:2 YCbCr raw image into a file. It’s a debug output. Now I wanted to see this image. GIMP doesn’t import that format. ImageMagick had the solution. It was as simple as convert -size 800x600 pal:ImageOut.raw ImageOut.bmp I don’t know why they picked the codename “pal” to represent 4:2:2 [...]