Start by being specific about what x and y are

http://www.wotsit.org/ has lots of info on file formats