lightdrift-libraw 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +374 -0
- package/LICENSE +21 -0
- package/README.md +757 -0
- package/binding.gyp +38 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/.clang-format +4 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/COPYRIGHT +27 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Changelog.txt +2802 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/DEVELOPER-NOTES +20 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_4-allow-VC5-validate.diff +21 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_6-hide-ccVc5-definitiion.diff +15 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-allow-VC5-validate.diff +21 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.cpp.diff +29 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.h.diff +12 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/INSTALL +51 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.CDDL +340 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.LGPL +458 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.pro +19 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.sln +123 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.am +140 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.nopp +230 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.noppr2i +227 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.dist +501 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.in +1849 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.mingw +297 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.msvc +628 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.DNGSDK.txt +43 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.GoPro.txt +112 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.RawSpeed.txt +62 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.cmake +9 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.demosaic-packs +17 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/README.md +106 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.cpucount-unix.patch +15 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.qmake-pro-files.patch +84 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.samsung-decoder.patch +39 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.uncompressed-color-dng.patch +13 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.win32-dll.patch +186 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed_xmldata.cpp +4115 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/README.md +69 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/01.CameraMeta-extensibility.patch +13 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/02.Makernotes-processing.patch +36 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/03.remove-limits-and-logging.patch +245 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/04.clang-cl-compatibility.patch +37 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp +251 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.h +83 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp +71 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rsxml2c.sh +5 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/aclocal.m4 +1446 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.0 +19332 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.1 +19332 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.2 +19332 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/requests +544 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.0 +3028 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.1 +665 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.2 +3028 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/bin/.keep_me +2 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.pro +5 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/half_mt.pro +10 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common-lib.pro +28 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common.pro +8 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.pro +70 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj +234 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj.filters +295 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.pro +4 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.pro +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj +145 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj.filters +18 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/compile +347 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/config.guess +1433 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/config.sub +1804 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/configure +19332 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/configure.ac +153 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/depcomp +791 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-C.html +187 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-CXX.html +881 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-datastruct.html +1341 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-notes.html +305 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-overview.html +66 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Install-LibRaw.html +124 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Samples-LibRaw.html +213 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Why-LibRaw.html +65 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/doc/index.html +38 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/install-sh +501 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_defs.h +66 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_fileio_defs.h +25 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/defines.h +193 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dmp_include.h +27 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cameraids.h +320 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cxx_defs.h +133 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_internal_funcs.h +412 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/var_defines.h +215 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/internal/x3f_tools.h +539 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/lib/Makefile +3 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw.h +534 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_alloc.h +148 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_const.h +814 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_datastream.h +410 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_internal.h +341 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_types.h +1175 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_version.h +63 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw.pc.in +12 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/libraw_r.pc.in +12 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/ltmain.sh +11147 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ax_openmp.m4 +99 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/libtool.m4 +8369 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltoptions.m4 +437 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltsugar.m4 +124 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltversion.m4 +23 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/m4/lt~obsolete.m4 +99 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/missing +215 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/object/.keep_me +0 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/rsxml2c.sh +6 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/4channels.cpp +174 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/Makefile +2 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_emu.cpp +670 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_half.c +78 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt.c +178 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt_win32.c +212 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/mem_image_sample.cpp +282 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/multirender_test.cpp +107 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/openbayer_sample.cpp +65 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/postprocessing_benchmark.cpp +223 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/raw-identify.cpp +743 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/rawtextdump.cpp +144 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/simple_dcraw.cpp +217 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/samples/unprocessed_raw.cpp +319 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/shlib-version.sh +11 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/Makefile +2 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/canon_600.cpp +225 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/crx.cpp +2781 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_dcraw.cpp +1816 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw.cpp +873 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.cpp +411 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/dng.cpp +284 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fp_dng.cpp +689 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fuji_compressed.cpp +1210 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/generic.cpp +101 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/kodak_decoders.cpp +524 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/load_mfbacks.cpp +936 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/smal.cpp +181 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack.cpp +508 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack_thumb.cpp +405 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/aahd_demosaic.cpp +781 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/ahd_demosaic.cpp +355 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dcb_demosaic.cpp +900 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dht_demosaic.cpp +1033 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/misc_demosaic.cpp +420 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.cpp +434 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/dngsdk_glue.cpp +416 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/rawspeed_glue.cpp +286 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_c_api.cpp +457 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_datastream.cpp +1046 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/adobepano.cpp +154 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/canon.cpp +1335 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/ciff.cpp +411 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/cr3_parser.cpp +896 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/epson.cpp +96 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/exif_gps.cpp +430 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/fuji.cpp +1427 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/hasselblad_model.cpp +538 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify.cpp +3167 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify_tools.cpp +140 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/kodak.cpp +363 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/leica.cpp +375 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/makernotes.cpp +786 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/mediumformat.cpp +521 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/minolta.cpp +110 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/misc_parsers.cpp +694 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/nikon.cpp +1051 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/normalize_model.cpp +1451 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/olympus.cpp +685 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/p1.cpp +192 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/pentax.cpp +675 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/samsung.cpp +182 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/sony.cpp +2320 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/tiff.cpp +2198 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/aspect_ratio.cpp +113 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/dcraw_process.cpp +259 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/mem_image.cpp +292 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.cpp +413 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_ph.cpp +31 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.cpp +190 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.cpp +308 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/ext_preprocess.cpp +127 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/preprocessing_ph.cpp +24 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/raw2image.cpp +560 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/subtract_black.cpp +91 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/cameralist.cpp +1268 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colorconst.cpp +57 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colordata.cpp +1841 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/wblists.cpp +217 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/curves.cpp +154 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/decoder_info.cpp +413 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/init_close_utils.cpp +340 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/open.cpp +1269 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/phaseone_processing.cpp +101 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/read_utils.cpp +176 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/thumb_utils.cpp +338 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_dcraw.cpp +330 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_libraw.cpp +673 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/apply_profile.cpp +76 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/file_write.cpp +338 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/tiff_writer.cpp +73 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/write_ph.cpp +39 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_parse_process.cpp +708 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_utils_patched.cpp +2119 -0
- package/deps/LibRaw-Source/LibRaw-0.21.4/version.sh +16 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/.clang-format +4 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/COPYRIGHT +27 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Changelog.txt +2802 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/DEVELOPER-NOTES +20 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-1_4-allow-VC5-validate.diff +21 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-1_6-hide-ccVc5-definitiion.diff +15 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-allow-VC5-validate.diff +21 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/gpr_read_image.cpp.diff +29 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/gpr_read_image.h.diff +12 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/INSTALL +51 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/LICENSE.CDDL +340 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/LICENSE.LGPL +458 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/LibRaw.pro +19 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/LibRaw.sln +123 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.am +140 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.devel.nopp +230 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.devel.noppr2i +227 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.dist +501 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.in +1849 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.mingw +297 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.msvc +628 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.DNGSDK.txt +43 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.GoPro.txt +112 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.RawSpeed.txt +62 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.cmake +9 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.demosaic-packs +17 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/README.md +106 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.cpucount-unix.patch +15 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.qmake-pro-files.patch +84 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.samsung-decoder.patch +39 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.uncompressed-color-dng.patch +13 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.win32-dll.patch +186 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed_xmldata.cpp +4115 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/README.md +69 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/01.CameraMeta-extensibility.patch +13 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/02.Makernotes-processing.patch +36 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/03.remove-limits-and-logging.patch +245 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/04.clang-cl-compatibility.patch +37 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp +251 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.h +83 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp +71 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rsxml2c.sh +5 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/aclocal.m4 +1446 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.0 +19332 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.1 +19332 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.2 +19332 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/requests +544 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.0 +3028 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.1 +665 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.2 +3028 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/.keep_me +2 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/4channels.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/dcraw_emu.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/dcraw_half.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/half_mt.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/libraw.dll +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/mem_image.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/multirender_test.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/openbayer_sample.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/postprocessing_benchmark.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/raw-identify.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/rawtextdump.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/simple_dcraw.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/unprocessed_raw.exe +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.pro +5 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/half_mt.pro +10 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw-common-lib.pro +28 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw-common.pro +8 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.pro +70 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.vcxproj +234 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.vcxproj.filters +295 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.pro +4 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.pro +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj +145 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj.filters +18 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/compile +347 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/config.guess +1433 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/config.sub +1804 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/configure +19332 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/configure.ac +153 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/depcomp +791 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-C.html +187 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-CXX.html +881 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-datastruct.html +1341 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-notes.html +305 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-overview.html +66 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Install-LibRaw.html +124 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Samples-LibRaw.html +213 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Why-LibRaw.html +65 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/index.html +38 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/install-sh +501 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dcraw_defs.h +66 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dcraw_fileio_defs.h +25 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/defines.h +193 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dmp_include.h +27 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_cameraids.h +320 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_cxx_defs.h +133 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_internal_funcs.h +412 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/var_defines.h +215 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/x3f_tools.h +539 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/Makefile +3 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw.exp +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw.lib +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw_static.lib +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw.h +534 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_alloc.h +148 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_const.h +814 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_datastream.h +410 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_internal.h +341 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_types.h +1175 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_version.h +63 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw.pc.in +12 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw_r.pc.in +12 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/ltmain.sh +11147 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ax_openmp.m4 +99 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/libtool.m4 +8369 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltoptions.m4 +437 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltsugar.m4 +124 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltversion.m4 +23 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/lt~obsolete.m4 +99 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/missing +215 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/object/.keep_me +0 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/rsxml2c.sh +6 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/4channels.cpp +174 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/Makefile +2 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/dcraw_emu.cpp +670 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/dcraw_half.c +78 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/half_mt.c +178 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/half_mt_win32.c +212 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/mem_image_sample.cpp +282 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/multirender_test.cpp +107 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/openbayer_sample.cpp +65 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/postprocessing_benchmark.cpp +223 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/raw-identify.cpp +743 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/rawtextdump.cpp +144 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/simple_dcraw.cpp +217 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/unprocessed_raw.cpp +319 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/shlib-version.sh +11 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/Makefile +2 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/canon_600.cpp +225 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/crx.cpp +2781 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_dcraw.cpp +1816 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_libraw.cpp +873 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.cpp +411 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/dng.cpp +284 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/fp_dng.cpp +689 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/fuji_compressed.cpp +1210 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/generic.cpp +101 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/kodak_decoders.cpp +524 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/load_mfbacks.cpp +936 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/smal.cpp +181 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/unpack.cpp +508 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/unpack_thumb.cpp +405 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/aahd_demosaic.cpp +781 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/ahd_demosaic.cpp +355 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/dcb_demosaic.cpp +900 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/dht_demosaic.cpp +1033 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/misc_demosaic.cpp +420 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.cpp +434 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/integration/dngsdk_glue.cpp +416 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/integration/rawspeed_glue.cpp +286 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/libraw_c_api.cpp +457 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/libraw_datastream.cpp +1046 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/adobepano.cpp +154 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/canon.cpp +1335 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/ciff.cpp +411 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/cr3_parser.cpp +896 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/epson.cpp +96 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/exif_gps.cpp +430 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/fuji.cpp +1427 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/hasselblad_model.cpp +538 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/identify.cpp +3167 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/identify_tools.cpp +140 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/kodak.cpp +363 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/leica.cpp +375 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/makernotes.cpp +786 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/mediumformat.cpp +521 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/minolta.cpp +110 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/misc_parsers.cpp +694 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/nikon.cpp +1051 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/normalize_model.cpp +1451 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/olympus.cpp +685 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/p1.cpp +192 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/pentax.cpp +675 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/samsung.cpp +182 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/sony.cpp +2320 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/tiff.cpp +2198 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/aspect_ratio.cpp +113 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/dcraw_process.cpp +259 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/mem_image.cpp +292 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.cpp +413 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_ph.cpp +31 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.cpp +190 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.cpp +308 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/ext_preprocess.cpp +127 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/preprocessing_ph.cpp +24 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/raw2image.cpp +560 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/subtract_black.cpp +91 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/cameralist.cpp +1268 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/colorconst.cpp +57 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/colordata.cpp +1841 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/wblists.cpp +217 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/curves.cpp +154 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/decoder_info.cpp +413 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/init_close_utils.cpp +340 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/open.cpp +1269 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/phaseone_processing.cpp +101 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/read_utils.cpp +176 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/thumb_utils.cpp +338 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/utils_dcraw.cpp +330 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/utils_libraw.cpp +673 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/apply_profile.cpp +76 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/file_write.cpp +338 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/tiff_writer.cpp +73 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/write_ph.cpp +39 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/x3f/x3f_parse_process.cpp +708 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/src/x3f/x3f_utils_patched.cpp +2119 -0
- package/deps/LibRaw-Win64/LibRaw-0.21.4/version.sh +16 -0
- package/lib/index.d.ts +324 -0
- package/lib/index.js +761 -0
- package/package.json +97 -0
- package/src/addon.cpp +8 -0
- package/src/libraw_wrapper.cpp +1223 -0
- package/src/libraw_wrapper.h +109 -0
- package/src/libraw_wrapper_new.cpp +853 -0
package/lib/index.js
ADDED
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
|
|
3
|
+
let librawAddon;
|
|
4
|
+
try {
|
|
5
|
+
librawAddon = require("../build/Release/libraw_addon");
|
|
6
|
+
} catch (err) {
|
|
7
|
+
try {
|
|
8
|
+
librawAddon = require("../build/Debug/libraw_addon");
|
|
9
|
+
} catch (err2) {
|
|
10
|
+
throw new Error('LibRaw addon not built. Run "npm run build" first.');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class LibRaw {
|
|
15
|
+
constructor() {
|
|
16
|
+
this._wrapper = new librawAddon.LibRawWrapper();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// ============== FILE OPERATIONS ==============
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Load a RAW file from filesystem
|
|
23
|
+
* @param {string} filename - Path to the RAW file
|
|
24
|
+
* @returns {Promise<boolean>} - Success status
|
|
25
|
+
*/
|
|
26
|
+
async loadFile(filename) {
|
|
27
|
+
return new Promise((resolve, reject) => {
|
|
28
|
+
try {
|
|
29
|
+
const result = this._wrapper.loadFile(filename);
|
|
30
|
+
resolve(result);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
reject(error);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Load a RAW file from memory buffer
|
|
39
|
+
* @param {Buffer} buffer - Buffer containing RAW data
|
|
40
|
+
* @returns {Promise<boolean>} - Success status
|
|
41
|
+
*/
|
|
42
|
+
async loadBuffer(buffer) {
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
try {
|
|
45
|
+
const result = this._wrapper.loadBuffer(buffer);
|
|
46
|
+
resolve(result);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
reject(error);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Close and cleanup resources
|
|
55
|
+
* @returns {Promise<boolean>} - Success status
|
|
56
|
+
*/
|
|
57
|
+
async close() {
|
|
58
|
+
return new Promise((resolve, reject) => {
|
|
59
|
+
try {
|
|
60
|
+
const result = this._wrapper.close();
|
|
61
|
+
resolve(result);
|
|
62
|
+
} catch (error) {
|
|
63
|
+
reject(error);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ============== ERROR HANDLING ==============
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get the last error message
|
|
72
|
+
* @returns {string} - Last error message
|
|
73
|
+
*/
|
|
74
|
+
getLastError() {
|
|
75
|
+
return this._wrapper.getLastError();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Convert error code to string
|
|
80
|
+
* @param {number} errorCode - Error code
|
|
81
|
+
* @returns {string} - Error message
|
|
82
|
+
*/
|
|
83
|
+
strerror(errorCode) {
|
|
84
|
+
return this._wrapper.strerror(errorCode);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ============== METADATA & INFORMATION ==============
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Get basic metadata from the loaded RAW file
|
|
91
|
+
* @returns {Promise<Object>} - Metadata object
|
|
92
|
+
*/
|
|
93
|
+
async getMetadata() {
|
|
94
|
+
return new Promise((resolve, reject) => {
|
|
95
|
+
try {
|
|
96
|
+
const metadata = this._wrapper.getMetadata();
|
|
97
|
+
resolve(metadata);
|
|
98
|
+
} catch (error) {
|
|
99
|
+
reject(error);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Get image dimensions and size information
|
|
106
|
+
* @returns {Promise<Object>} - Size object with width/height details
|
|
107
|
+
*/
|
|
108
|
+
async getImageSize() {
|
|
109
|
+
return new Promise((resolve, reject) => {
|
|
110
|
+
try {
|
|
111
|
+
const size = this._wrapper.getImageSize();
|
|
112
|
+
resolve(size);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
reject(error);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Get advanced metadata including color matrices and calibration data
|
|
121
|
+
* @returns {Promise<Object>} - Advanced metadata object
|
|
122
|
+
*/
|
|
123
|
+
async getAdvancedMetadata() {
|
|
124
|
+
return new Promise((resolve, reject) => {
|
|
125
|
+
try {
|
|
126
|
+
const metadata = this._wrapper.getAdvancedMetadata();
|
|
127
|
+
resolve(metadata);
|
|
128
|
+
} catch (error) {
|
|
129
|
+
reject(error);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Get lens information
|
|
136
|
+
* @returns {Promise<Object>} - Lens metadata object
|
|
137
|
+
*/
|
|
138
|
+
async getLensInfo() {
|
|
139
|
+
return new Promise((resolve, reject) => {
|
|
140
|
+
try {
|
|
141
|
+
const lensInfo = this._wrapper.getLensInfo();
|
|
142
|
+
resolve(lensInfo);
|
|
143
|
+
} catch (error) {
|
|
144
|
+
reject(error);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get color information including white balance and color matrices
|
|
151
|
+
* @returns {Promise<Object>} - Color information object
|
|
152
|
+
*/
|
|
153
|
+
async getColorInfo() {
|
|
154
|
+
return new Promise((resolve, reject) => {
|
|
155
|
+
try {
|
|
156
|
+
const colorInfo = this._wrapper.getColorInfo();
|
|
157
|
+
resolve(colorInfo);
|
|
158
|
+
} catch (error) {
|
|
159
|
+
reject(error);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// ============== IMAGE PROCESSING ==============
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Unpack thumbnail data
|
|
168
|
+
* @returns {Promise<boolean>} - Success status
|
|
169
|
+
*/
|
|
170
|
+
async unpackThumbnail() {
|
|
171
|
+
return new Promise((resolve, reject) => {
|
|
172
|
+
try {
|
|
173
|
+
const result = this._wrapper.unpackThumbnail();
|
|
174
|
+
resolve(result);
|
|
175
|
+
} catch (error) {
|
|
176
|
+
reject(error);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Process the RAW image with current settings
|
|
183
|
+
* @returns {Promise<boolean>} - Success status
|
|
184
|
+
*/
|
|
185
|
+
async processImage() {
|
|
186
|
+
return new Promise((resolve, reject) => {
|
|
187
|
+
try {
|
|
188
|
+
const result = this._wrapper.processImage();
|
|
189
|
+
resolve(result);
|
|
190
|
+
} catch (error) {
|
|
191
|
+
reject(error);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Subtract black level from RAW data
|
|
198
|
+
* @returns {Promise<boolean>} - Success status
|
|
199
|
+
*/
|
|
200
|
+
async subtractBlack() {
|
|
201
|
+
return new Promise((resolve, reject) => {
|
|
202
|
+
try {
|
|
203
|
+
const result = this._wrapper.subtractBlack();
|
|
204
|
+
resolve(result);
|
|
205
|
+
} catch (error) {
|
|
206
|
+
reject(error);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Convert RAW data to image format
|
|
213
|
+
* @returns {Promise<boolean>} - Success status
|
|
214
|
+
*/
|
|
215
|
+
async raw2Image() {
|
|
216
|
+
return new Promise((resolve, reject) => {
|
|
217
|
+
try {
|
|
218
|
+
const result = this._wrapper.raw2Image();
|
|
219
|
+
resolve(result);
|
|
220
|
+
} catch (error) {
|
|
221
|
+
reject(error);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Adjust maximum values in the image
|
|
228
|
+
* @returns {Promise<boolean>} - Success status
|
|
229
|
+
*/
|
|
230
|
+
async adjustMaximum() {
|
|
231
|
+
return new Promise((resolve, reject) => {
|
|
232
|
+
try {
|
|
233
|
+
const result = this._wrapper.adjustMaximum();
|
|
234
|
+
resolve(result);
|
|
235
|
+
} catch (error) {
|
|
236
|
+
reject(error);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// ============== MEMORY IMAGE CREATION ==============
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Create processed image in memory
|
|
245
|
+
* @returns {Promise<Object>} - Image data object with Buffer
|
|
246
|
+
*/
|
|
247
|
+
async createMemoryImage() {
|
|
248
|
+
return new Promise((resolve, reject) => {
|
|
249
|
+
try {
|
|
250
|
+
const imageData = this._wrapper.createMemoryImage();
|
|
251
|
+
resolve(imageData);
|
|
252
|
+
} catch (error) {
|
|
253
|
+
reject(error);
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Create thumbnail image in memory
|
|
260
|
+
* @returns {Promise<Object>} - Thumbnail data object with Buffer
|
|
261
|
+
*/
|
|
262
|
+
async createMemoryThumbnail() {
|
|
263
|
+
return new Promise((resolve, reject) => {
|
|
264
|
+
try {
|
|
265
|
+
const thumbData = this._wrapper.createMemoryThumbnail();
|
|
266
|
+
resolve(thumbData);
|
|
267
|
+
} catch (error) {
|
|
268
|
+
reject(error);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// ============== FILE WRITERS ==============
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Write processed image as PPM file
|
|
277
|
+
* @param {string} filename - Output filename
|
|
278
|
+
* @returns {Promise<boolean>} - Success status
|
|
279
|
+
*/
|
|
280
|
+
async writePPM(filename) {
|
|
281
|
+
return new Promise((resolve, reject) => {
|
|
282
|
+
try {
|
|
283
|
+
const result = this._wrapper.writePPM(filename);
|
|
284
|
+
resolve(result);
|
|
285
|
+
} catch (error) {
|
|
286
|
+
reject(error);
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Write processed image as TIFF file
|
|
293
|
+
* @param {string} filename - Output filename
|
|
294
|
+
* @returns {Promise<boolean>} - Success status
|
|
295
|
+
*/
|
|
296
|
+
async writeTIFF(filename) {
|
|
297
|
+
return new Promise((resolve, reject) => {
|
|
298
|
+
try {
|
|
299
|
+
const result = this._wrapper.writeTIFF(filename);
|
|
300
|
+
resolve(result);
|
|
301
|
+
} catch (error) {
|
|
302
|
+
reject(error);
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Write thumbnail to file
|
|
309
|
+
* @param {string} filename - Output filename
|
|
310
|
+
* @returns {Promise<boolean>} - Success status
|
|
311
|
+
*/
|
|
312
|
+
async writeThumbnail(filename) {
|
|
313
|
+
return new Promise((resolve, reject) => {
|
|
314
|
+
try {
|
|
315
|
+
const result = this._wrapper.writeThumbnail(filename);
|
|
316
|
+
resolve(result);
|
|
317
|
+
} catch (error) {
|
|
318
|
+
reject(error);
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// ============== CONFIGURATION & SETTINGS ==============
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Set output parameters for processing
|
|
327
|
+
* @param {Object} params - Parameter object
|
|
328
|
+
* @returns {Promise<boolean>} - Success status
|
|
329
|
+
*/
|
|
330
|
+
async setOutputParams(params) {
|
|
331
|
+
return new Promise((resolve, reject) => {
|
|
332
|
+
try {
|
|
333
|
+
const result = this._wrapper.setOutputParams(params);
|
|
334
|
+
resolve(result);
|
|
335
|
+
} catch (error) {
|
|
336
|
+
reject(error);
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Get current output parameters
|
|
343
|
+
* @returns {Promise<Object>} - Current parameters
|
|
344
|
+
*/
|
|
345
|
+
async getOutputParams() {
|
|
346
|
+
return new Promise((resolve, reject) => {
|
|
347
|
+
try {
|
|
348
|
+
const params = this._wrapper.getOutputParams();
|
|
349
|
+
resolve(params);
|
|
350
|
+
} catch (error) {
|
|
351
|
+
reject(error);
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// ============== UTILITY FUNCTIONS ==============
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Check if image uses floating point data
|
|
360
|
+
* @returns {Promise<boolean>} - Floating point status
|
|
361
|
+
*/
|
|
362
|
+
async isFloatingPoint() {
|
|
363
|
+
return new Promise((resolve, reject) => {
|
|
364
|
+
try {
|
|
365
|
+
const result = this._wrapper.isFloatingPoint();
|
|
366
|
+
resolve(result);
|
|
367
|
+
} catch (error) {
|
|
368
|
+
reject(error);
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Check if image is Fuji rotated
|
|
375
|
+
* @returns {Promise<boolean>} - Fuji rotation status
|
|
376
|
+
*/
|
|
377
|
+
async isFujiRotated() {
|
|
378
|
+
return new Promise((resolve, reject) => {
|
|
379
|
+
try {
|
|
380
|
+
const result = this._wrapper.isFujiRotated();
|
|
381
|
+
resolve(result);
|
|
382
|
+
} catch (error) {
|
|
383
|
+
reject(error);
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Check if image is sRAW format
|
|
390
|
+
* @returns {Promise<boolean>} - sRAW status
|
|
391
|
+
*/
|
|
392
|
+
async isSRAW() {
|
|
393
|
+
return new Promise((resolve, reject) => {
|
|
394
|
+
try {
|
|
395
|
+
const result = this._wrapper.isSRAW();
|
|
396
|
+
resolve(result);
|
|
397
|
+
} catch (error) {
|
|
398
|
+
reject(error);
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Check if thumbnail is JPEG format
|
|
405
|
+
* @returns {Promise<boolean>} - JPEG thumbnail status
|
|
406
|
+
*/
|
|
407
|
+
async isJPEGThumb() {
|
|
408
|
+
return new Promise((resolve, reject) => {
|
|
409
|
+
try {
|
|
410
|
+
const result = this._wrapper.isJPEGThumb();
|
|
411
|
+
resolve(result);
|
|
412
|
+
} catch (error) {
|
|
413
|
+
reject(error);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Get error count during processing
|
|
420
|
+
* @returns {Promise<number>} - Number of errors
|
|
421
|
+
*/
|
|
422
|
+
async errorCount() {
|
|
423
|
+
return new Promise((resolve, reject) => {
|
|
424
|
+
try {
|
|
425
|
+
const count = this._wrapper.errorCount();
|
|
426
|
+
resolve(count);
|
|
427
|
+
} catch (error) {
|
|
428
|
+
reject(error);
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// ============== EXTENDED UTILITY FUNCTIONS ==============
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Check if image is Nikon sRAW format
|
|
437
|
+
* @returns {Promise<boolean>} - True if Nikon sRAW
|
|
438
|
+
*/
|
|
439
|
+
async isNikonSRAW() {
|
|
440
|
+
return new Promise((resolve, reject) => {
|
|
441
|
+
try {
|
|
442
|
+
const result = this._wrapper.isNikonSRAW();
|
|
443
|
+
resolve(result);
|
|
444
|
+
} catch (error) {
|
|
445
|
+
reject(error);
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Check if image is Coolscan NEF format
|
|
452
|
+
* @returns {Promise<boolean>} - True if Coolscan NEF
|
|
453
|
+
*/
|
|
454
|
+
async isCoolscanNEF() {
|
|
455
|
+
return new Promise((resolve, reject) => {
|
|
456
|
+
try {
|
|
457
|
+
const result = this._wrapper.isCoolscanNEF();
|
|
458
|
+
resolve(result);
|
|
459
|
+
} catch (error) {
|
|
460
|
+
reject(error);
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Check if image has floating point data
|
|
467
|
+
* @returns {Promise<boolean>} - True if floating point data available
|
|
468
|
+
*/
|
|
469
|
+
async haveFPData() {
|
|
470
|
+
return new Promise((resolve, reject) => {
|
|
471
|
+
try {
|
|
472
|
+
const result = this._wrapper.haveFPData();
|
|
473
|
+
resolve(result);
|
|
474
|
+
} catch (error) {
|
|
475
|
+
reject(error);
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Get sRAW midpoint value
|
|
482
|
+
* @returns {Promise<number>} - sRAW midpoint
|
|
483
|
+
*/
|
|
484
|
+
async srawMidpoint() {
|
|
485
|
+
return new Promise((resolve, reject) => {
|
|
486
|
+
try {
|
|
487
|
+
const result = this._wrapper.srawMidpoint();
|
|
488
|
+
resolve(result);
|
|
489
|
+
} catch (error) {
|
|
490
|
+
reject(error);
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Check if thumbnail is OK
|
|
497
|
+
* @param {number} [maxSize=-1] - Maximum size limit
|
|
498
|
+
* @returns {Promise<number>} - Thumbnail status
|
|
499
|
+
*/
|
|
500
|
+
async thumbOK(maxSize = -1) {
|
|
501
|
+
return new Promise((resolve, reject) => {
|
|
502
|
+
try {
|
|
503
|
+
const result = this._wrapper.thumbOK(maxSize);
|
|
504
|
+
resolve(result);
|
|
505
|
+
} catch (error) {
|
|
506
|
+
reject(error);
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Get unpacker function name
|
|
513
|
+
* @returns {Promise<string>} - Name of the unpacker function
|
|
514
|
+
*/
|
|
515
|
+
async unpackFunctionName() {
|
|
516
|
+
return new Promise((resolve, reject) => {
|
|
517
|
+
try {
|
|
518
|
+
const result = this._wrapper.unpackFunctionName();
|
|
519
|
+
resolve(result);
|
|
520
|
+
} catch (error) {
|
|
521
|
+
reject(error);
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Get decoder information
|
|
528
|
+
* @returns {Promise<Object>} - Decoder info with name and flags
|
|
529
|
+
*/
|
|
530
|
+
async getDecoderInfo() {
|
|
531
|
+
return new Promise((resolve, reject) => {
|
|
532
|
+
try {
|
|
533
|
+
const result = this._wrapper.getDecoderInfo();
|
|
534
|
+
resolve(result);
|
|
535
|
+
} catch (error) {
|
|
536
|
+
reject(error);
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// ============== ADVANCED PROCESSING ==============
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Unpack RAW data (low-level operation)
|
|
545
|
+
* @returns {Promise<boolean>} - Success status
|
|
546
|
+
*/
|
|
547
|
+
async unpack() {
|
|
548
|
+
return new Promise((resolve, reject) => {
|
|
549
|
+
try {
|
|
550
|
+
const result = this._wrapper.unpack();
|
|
551
|
+
resolve(result);
|
|
552
|
+
} catch (error) {
|
|
553
|
+
reject(error);
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* Convert RAW to image with extended options
|
|
560
|
+
* @param {boolean} [subtractBlack=true] - Whether to subtract black level
|
|
561
|
+
* @returns {Promise<boolean>} - Success status
|
|
562
|
+
*/
|
|
563
|
+
async raw2ImageEx(subtractBlack = true) {
|
|
564
|
+
return new Promise((resolve, reject) => {
|
|
565
|
+
try {
|
|
566
|
+
const result = this._wrapper.raw2ImageEx(subtractBlack);
|
|
567
|
+
resolve(result);
|
|
568
|
+
} catch (error) {
|
|
569
|
+
reject(error);
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Adjust sizes for information only (no processing)
|
|
576
|
+
* @returns {Promise<boolean>} - Success status
|
|
577
|
+
*/
|
|
578
|
+
async adjustSizesInfoOnly() {
|
|
579
|
+
return new Promise((resolve, reject) => {
|
|
580
|
+
try {
|
|
581
|
+
const result = this._wrapper.adjustSizesInfoOnly();
|
|
582
|
+
resolve(result);
|
|
583
|
+
} catch (error) {
|
|
584
|
+
reject(error);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Free processed image data
|
|
591
|
+
* @returns {Promise<boolean>} - Success status
|
|
592
|
+
*/
|
|
593
|
+
async freeImage() {
|
|
594
|
+
return new Promise((resolve, reject) => {
|
|
595
|
+
try {
|
|
596
|
+
const result = this._wrapper.freeImage();
|
|
597
|
+
resolve(result);
|
|
598
|
+
} catch (error) {
|
|
599
|
+
reject(error);
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Convert floating point to integer data
|
|
606
|
+
* @param {number} [dmin=4096] - Minimum data value
|
|
607
|
+
* @param {number} [dmax=32767] - Maximum data value
|
|
608
|
+
* @param {number} [dtarget=16383] - Target value
|
|
609
|
+
* @returns {Promise<boolean>} - Success status
|
|
610
|
+
*/
|
|
611
|
+
async convertFloatToInt(dmin = 4096, dmax = 32767, dtarget = 16383) {
|
|
612
|
+
return new Promise((resolve, reject) => {
|
|
613
|
+
try {
|
|
614
|
+
const result = this._wrapper.convertFloatToInt(dmin, dmax, dtarget);
|
|
615
|
+
resolve(result);
|
|
616
|
+
} catch (error) {
|
|
617
|
+
reject(error);
|
|
618
|
+
}
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
// ============== MEMORY OPERATIONS EXTENDED ==============
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Get memory image format information
|
|
626
|
+
* @returns {Promise<Object>} - Format info with width, height, colors, bps
|
|
627
|
+
*/
|
|
628
|
+
async getMemImageFormat() {
|
|
629
|
+
return new Promise((resolve, reject) => {
|
|
630
|
+
try {
|
|
631
|
+
const result = this._wrapper.getMemImageFormat();
|
|
632
|
+
resolve(result);
|
|
633
|
+
} catch (error) {
|
|
634
|
+
reject(error);
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Copy memory image to buffer
|
|
641
|
+
* @param {Buffer} buffer - Destination buffer
|
|
642
|
+
* @param {number} stride - Row stride in bytes
|
|
643
|
+
* @param {boolean} bgr - Whether to use BGR order
|
|
644
|
+
* @returns {Promise<boolean>} - Success status
|
|
645
|
+
*/
|
|
646
|
+
async copyMemImage(buffer, stride, bgr = false) {
|
|
647
|
+
return new Promise((resolve, reject) => {
|
|
648
|
+
try {
|
|
649
|
+
const result = this._wrapper.copyMemImage(buffer, stride, bgr);
|
|
650
|
+
resolve(result);
|
|
651
|
+
} catch (error) {
|
|
652
|
+
reject(error);
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// ============== COLOR OPERATIONS ==============
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Get color filter at specific position
|
|
661
|
+
* @param {number} row - Row position
|
|
662
|
+
* @param {number} col - Column position
|
|
663
|
+
* @returns {Promise<number>} - Color value
|
|
664
|
+
*/
|
|
665
|
+
async getColorAt(row, col) {
|
|
666
|
+
return new Promise((resolve, reject) => {
|
|
667
|
+
try {
|
|
668
|
+
const result = this._wrapper.getColorAt(row, col);
|
|
669
|
+
resolve(result);
|
|
670
|
+
} catch (error) {
|
|
671
|
+
reject(error);
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// ============== CANCELLATION SUPPORT ==============
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Set cancellation flag to stop processing
|
|
680
|
+
* @returns {Promise<boolean>} - Success status
|
|
681
|
+
*/
|
|
682
|
+
async setCancelFlag() {
|
|
683
|
+
return new Promise((resolve, reject) => {
|
|
684
|
+
try {
|
|
685
|
+
const result = this._wrapper.setCancelFlag();
|
|
686
|
+
resolve(result);
|
|
687
|
+
} catch (error) {
|
|
688
|
+
reject(error);
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Clear cancellation flag
|
|
695
|
+
* @returns {Promise<boolean>} - Success status
|
|
696
|
+
*/
|
|
697
|
+
async clearCancelFlag() {
|
|
698
|
+
return new Promise((resolve, reject) => {
|
|
699
|
+
try {
|
|
700
|
+
const result = this._wrapper.clearCancelFlag();
|
|
701
|
+
resolve(result);
|
|
702
|
+
} catch (error) {
|
|
703
|
+
reject(error);
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// ============== VERSION INFORMATION (INSTANCE METHODS) ==============
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Get LibRaw version string
|
|
712
|
+
* @returns {string} - Version string
|
|
713
|
+
*/
|
|
714
|
+
version() {
|
|
715
|
+
return this._wrapper.version();
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Get LibRaw version as array [major, minor, patch]
|
|
720
|
+
* @returns {number[]} - Version number array
|
|
721
|
+
*/
|
|
722
|
+
versionNumber() {
|
|
723
|
+
return this._wrapper.versionNumber();
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// ============== STATIC METHODS ==============
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Get LibRaw version
|
|
730
|
+
* @returns {string} - Version string
|
|
731
|
+
*/
|
|
732
|
+
static getVersion() {
|
|
733
|
+
return librawAddon.LibRawWrapper.getVersion();
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Get LibRaw capabilities
|
|
738
|
+
* @returns {number} - Capabilities flags
|
|
739
|
+
*/
|
|
740
|
+
static getCapabilities() {
|
|
741
|
+
return librawAddon.LibRawWrapper.getCapabilities();
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Get list of supported cameras
|
|
746
|
+
* @returns {string[]} - Array of camera names
|
|
747
|
+
*/
|
|
748
|
+
static getCameraList() {
|
|
749
|
+
return librawAddon.LibRawWrapper.getCameraList();
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Get count of supported cameras
|
|
754
|
+
* @returns {number} - Number of supported cameras
|
|
755
|
+
*/
|
|
756
|
+
static getCameraCount() {
|
|
757
|
+
return librawAddon.LibRawWrapper.getCameraCount();
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
module.exports = LibRaw;
|