Codec Pack pixel formats

Anything (more or less) related to FastPictureViewer not fitting in the above sections.

Codec Pack pixel formats

Postby kdv on Wed Feb 09, 2011 10:13 am

Hi.

I'd like to read Canon and Nikon raw images within a C++/Windows Imaging Component program.
I understand your Codec Pack will allow me to do so.
What pixel formats do the WIC codecs return? I'm interested in getting the full (12 or 14 bit) intensity information, e.g. 48bpp or 64bpp pixel formats.

Thanks.
kdv
 
Posts: 1
Joined: Wed Feb 09, 2011 8:34 am

Re: Codec Pack pixel formats

Postby Axel on Thu Feb 10, 2011 10:07 am

You can indeed use the WIC framework from C++ to access image data and your software will be able to take advantage of any installed WIC codec automatically: adding raw support to a WIC-enabled application is simply a matter of installing the appropriate codec on the end-user machine. This is in fact exactly how the FastPictureViewer Codec Pack extends Windows Explorer, Windows 7's Media Center etc.

All our raw codecs currently returns 24bpp RGB data (specifically: WICPixelFormat24bppBGR, but you must always query for that using the appropriate mechanisms as this may change in the future).

Most of the time in normal use - keep in mind that these codecs are primarily Windows Explorer extensions used to build thumbnails and fast previews - the images are created from the embedded previews, which are 24bpp JPEGs. When the RGB data is made by converting the raw information, the output is reduced to 24 bit RGB so the same pixel format is returned for the thumbnails, preview and full-size images. This format, incidentally, matches the hardware pixel format of most display cards...

Some of our raster codecs (e.g. PSD, HDR, EXR, DDS, TGA, PNM) can return higher bit depth, up to the maximum supported by the underlying format.
Axel
Site Admin
 
Posts: 776
Joined: Thu Nov 06, 2008 1:54 am
Location: Geneva, Switzerland


Return to General Discussions