SARAWSARAW is an ImgSource extension library which allows you to read the various "Raw" image files that are generated by digital cameras. It is available as both a DLL and a set of C++ static libraries (for VC6, Visual Studio 2003, VS2005 and VS2008). Native x64 libraries are available, also.
Features
IntegrationBecause SARAW is tightly integrated into ImgSource's source and destination manager system, reading and "Raw" images is as easy as reading any of the formats that ImgSource supports natively. Here's a sample:
// init
SARAW_Initialize(your key);
// get ImgSource extension hook
HISEXTHK hHk = IS3GetExtHook(0);
// set the hook in SARAW
SARAW_SetImgSourceHooks(hHk);
// clean up
GlobalFree(hHk);
// open RAW file via ImgSource
HISSRC hSrc = IS3OpenFileSource("DSC_0286.NEF");
// read the image to RGB-24
UINT32 w, h;
UINT32 uReadFlags = 0;
HGLOBAL hImg = SARAW_ReadRAW(hSrc, &w, &h, 24, 1,1,1,1,1, 0,0,uReadFlags);
// check for error
if (hImg == NULL)
{
// test the error code.
UINT error = IS3GetLastError();
}
// close the file
IS3CloseSource(hSrc);
...
// clean up
GlobalFree(hImg);
SARAW_Exit();
What's Included?
The download package includes
Download SARAW
Win32 and x64 Libraries
Registration
Registration cost: $25.00 U.S. Register
Warning:
Contact & Bug Reports
Disclaimer
Other Platforms If you use this package with a platform other than VC++, and would like to tell us how you did it, please do. If you have any hints or tips or code snippets that could help others, please feel free to share this on the ImgSource discussion board. Note : Borland C++ Builder uses a different object file format than MicroSoft. You will have to use IMPLIB to create a static .LIB, if you want to statically link to the SARAW package. See your complier's manual for help with this. Suggestions If you have ideas about functionality that you'd like but don't see here, let us know. Many of the features included are the result of people asking if we could figure out how to do it. Credit
Much credit to Dave Coffin, for the super-human feat of reversing all of these formats, and for making the fruits of his labors free for all to use.
Copyright © 2013, Smaller Animals Software, Inc. |
Site Stuff
Smaller Animals NewsImgSource
ThumbNailer 10
|