You may use code from Adobe You may use code from Adobe DNG SDK sources. -- Alex Tutubalin @LibRaw LLC reply
You may use code from Adobe DNG SDK sources.