Recent comments

Reply to: Problems building libraw.dll   10 months 2 weeks ago

There is no need to modify Makefile.msvc for 64-bit.

Just run nmake in corresponding (32 or 64 bit) Developer Shell (or use vcvarsNN.bat to set up environment variables)

We also provide LibRaw.sln (one may need to change tools version to Visual Studio used)

Reply to: LibRaw 0.20 supported cameras   10 months 2 weeks ago

Could we have support for OM-1 OM System (Olympus) soon?

Reply to: cam_xyz array differs from exiv2 output on Sony A7C   10 months 2 weeks ago

Thank you! :) I get matching values after updating libraw to the current git master.

Reply to: cam_xyz array differs from exiv2 output on Sony A7C   10 months 2 weeks ago

A7C (ILCE-7C) is not officially supported by 0.20.2, consider upgrade to current 'public snapshot' from github: https://github.com/LibRaw/LibRaw

Reply to: cam_xyz array differs from exiv2 output on Sony A7C   10 months 2 weeks ago

0.20.2.

There is now more info on darktable's side: https://github.com/darktable-org/rawspeed/pull/250#issuecomment-1077723895

Reply to: cam_xyz array differs from exiv2 output on Sony A7C   10 months 2 weeks ago

What version of LibRaw do you use?

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

Thank you all for the answers. I read the binary with native C++ fstream (800x800 = 640000 values). then used __builtin_bswap16() to swap and obtain my bayer data which I was able to convert to RGB,
Many thanks

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

procflags of open_bayer() should also do the swap for you in the above example: https://www.libraw.org/docs/API-CXX.html#open_bayer

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

For byte swapping use something like ntohs() (actually this converts from big endian to your machine/host endianness, so it might be a noop if your machine is big endian as well) or, depending on your system/compiler, some incarnation of the bswap16() intrinsic/bultin function (e.g. __builtin_bswap16() for GCC, _byteswap_ushort() for MSVC, etc.)

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

Thank you again for your answers.
Actually, yes the data is encoded in int16.
I was able to read it in python swap bit ordering to bi endian. Any idea how I can achieve this in c++ ?
Also my guess for taking 2 bites with go for two consecutive bytes. Does this seam reasonable. I don' have all format specifications in hand.

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

Also, if your file is 2 bytes per pixel, uncompressed, you do not need LibRaw to read source data values. Your values are already here (in unsigned short format, probably you may need big/little-endian swap; I know nothing about your images and your camera)

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

If your input data is 16 bit (2 bytes per pixel), 1,280,000 bytes is expected....

Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

Thank you Alex for your answer. I tried with open_bayer as I think the raw file has no metadata. With the code bellow I could see that readb as 1280000 values instead of 640000 for an image 800x8000. The final result with dcraw_process is not satisfactory. I wonder If and how I could retrieve the unpacked values and do the conversion myself.

FILE *in = fopen(fname, "rb");
	fseek(in, 0, SEEK_END);
	unsigned fsz = ftell(in);
	unsigned char *buffer = (unsigned char *)malloc(fsz);
	if (!buffer)
		return 2;
	fseek(in, 0, SEEK_SET);
	unsigned readb = fread(buffer, 1, fsz, in);
	if (readb != fsz)
		return 3;
	std::cout << "readb" << readb << std::endl;
	LibRaw rp;
	rp.imgdata.params.output_tiff = 1;
	int ret = rp.open_bayer(buffer, fsz, 800, 800, 0, 0, 0, 0, 0,
							LIBRAW_OPENBAYER_BGGR, 0, 0, 0);
	if (ret != LIBRAW_SUCCESS)
		return 4;
	if ((ret = rp.unpack()) != LIBRAW_SUCCESS)
		printf("Unpack error: %d\n", ret);
 
	if ((ret = rp.dcraw_process()) != LIBRAW_SUCCESS)
		printf("Processing error: %d\n", ret);
 
	char outfn[256];
	sprintf(outfn, "%s.tif", fname);
	if (LIBRAW_SUCCESS != (ret = rp.dcraw_ppm_tiff_writer(outfn)))
		printf("Cannot write %s: %s\n", outfn, libraw_strerror(ret));
	else
		printf("Created %s\n", outfn);
 
	ret = rp.dcraw_process();
	// Check for error using LIBRAW_SUCCESS. I never get an error here
 
	ret = rp.dcraw_ppm_tiff_writer(fname); 
Reply to: reading .raw with LibRaw iProcessor example   10 months 2 weeks ago

-2 is: LIBRAW_FILE_UNSUPPORTED

If your 'raw' file is just a sensor dump without metadata consider using open_bayer() call

Reply to: LibRaw 0.20 supported cameras   10 months 4 weeks ago

Microsoft RAW extension is produced by Microsoft, we're not involved in this process in any way (Microsoft uses the public version of LibRaw).
So, we're completely not responsible for MS RAW Extension.

You may try to use our FastRawViewer instead.

Reply to: LibRaw 0.20 supported cameras   10 months 4 weeks ago

I have the exact same issue with A7VI RAWs and the Microsoft RAW extension.
I figured out it's related to the new Sony lossless compressed RAW format.
A7IV compress or uncompressed RAW are displayed fine, but A7IV lossless compress RAWs are not displayed at all.
The LibRAW blog post from 22. Oct. 2021 says the new Sony losslesss compressed RAW format is now supported.
My guess would be Microsoft RAW extension includes a version that is too old.

Reply to: LibRaw 0.20 supported cameras   11 months 1 day ago

So you're talking about Microsoft RAW Extension, right?

Reply to: LibRaw 0.20 supported cameras   11 months 1 day ago

Using Windows 11 for importing and cataloguing, I cant view any Sony a7iv raw files. I can open them in photoshop, but I dont like shooting raw & jpeg

Reply to: LibRaw 0.20 supported cameras   11 months 1 day ago

What software (that uses LibRaw for RAW support) do you use?

Reply to: LibRaw 0.20 supported cameras   11 months 1 day ago

Just wondering if an approximate date is known for next update to include Sony a7iv ILCE-7M4. Thanks

Reply to: cmakelist configuration   11 months 2 days ago

There is separate project on github: https://github.com/LibRaw/LibRaw-cmake

Note: we (LibRaw team) is not responsible for it and do not provide any support for it.

Reply to: Kodak kodak_radc_load_raw function   11 months 1 week ago

Could you please provide some sample file that illustrates the issue?

Right now we're unable to reproduce it, Kodak DC40/50 files (that uses radc decoder) loads correctly in RawDigger (that uses LibRaw): https://www.dropbox.com/s/qw6o57ikv3mls1n/Screenshot%202022-03-06%2017.4...

Reply to: LibRaw 0.20 supported cameras   11 months 3 weeks ago

Sony ILCE-1 is fully supported in 202110 snapshot:
Supported camera list: https://www.libraw.org/supported-cameras-libraw-202110
Announce page: https://www.libraw.org/news/libraw-202110-snapshot

Reply to: LibRaw 0.20 supported cameras   11 months 3 weeks ago

So its been almost a year and the public snapshot seems not to be out there. When can we expect full Sony A1 Raw file support for uncompressed raw, lossless compressed raw and compressed raw? Thank you.

Pages