SharpLibraw icon indicating copy to clipboard operation
SharpLibraw copied to clipboard

How do I get at the "flip" int in libraw_image_sizes_t?

Open MikePelton opened this issue 1 year ago • 5 comments

Hi - am trying to stop libraw from rotating images which I understand can be achieved by setting the flip variable in the ...image_sizes struct to 0. However I can't see access to that struct via rawlib.cs (I may be missing something obvious of course). Alternatively if I can intercept the EXIF data being read as the file's being opened I could know the original orientation and reverse libraw's rotation in separate code, but I'm not seeing an example of how to interpret the data being passed into EXIFParserCallback(IntPtr context, int tag, int type, int len, uint ord, IntPtr ifp, long _base), specifically how do I read data off the IntPtr ifp? All help welcome - thanks!

MikePelton avatar Nov 12 '22 09:11 MikePelton