Reply to comment

Image resolutions

Hi,
I am a new user of LibRaw and I like very much what I see here so far, so thanks for the great work :)
Currently, I work with Canon cameras and the Canon SDK. When downloading and developing an image from eg a Canon 550D, its SDK will tell me that the image resolution for a still image is 5184 x 3456, which is also confirmed here: http://www.dpreview.com/reviews/specs/Canon/canon_eos550d.asp
However, when I use the newly integrated LibRaw 0.10-Beta2:

EdsStreamRef downloadStream;
EdsCreateMemoryStream( 0, &downloadStream );
EdsDownload( _directoryItem, dirItemInfo.size, downloadStream );
EdsDownloadComplete( _directoryItem );

void* pBuffer = NULL;
EdsGetPointer( downloadStream, &pBuffer );
EdsUInt32 bufferSize = 0;
EdsGetLength( downloadStream, &BufferSize );

LibRaw libRaw;
libRaw.open_buffer( pBuffer, BufferSize );
libRaw.unpack();
libRaw.imgdata.params.output_tiff = 1;
libRaw.dcraw_process();
libRaw.dcraw_ppm_tiff_writer( "C:\\test.tiff" );
libRaw.recycle();

The image resolution returned increases to 5202 x 3465. Can someone please explain to me why there are more pixels using LibRaw than there are from the Canon SDK? Also, is there a way to alter LibRaw so that I can get the same resolution image that I would have expected?
Once I get up to speed with how your software works I would like to contribute as well, if that is possible.
Thanks,
Patrick

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Images can be added to this post.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.