I have a proprietary raw camera image format taken from a Aptina camera. It's raw file format is 16bit per color channel, 'GRBG' mode with file extension is *.raw. No headers nothing, just plan raw bayer samples. I want to convert this format to DNG, as none of the raw image decoders (dcraw,gimp,...) seem to support it.
1] Is there any tool/converter which can handle Aptina camera sensor raw bayer format, and allow me to convert it to DNG format?
2] If not, I want to write a small C code to convert it myself. Where can I find the detail specification about DNG format, its structure etc. Any document explaining all this DNG format?