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.
Files changed (487) hide show
  1. package/CHANGELOG.md +374 -0
  2. package/LICENSE +21 -0
  3. package/README.md +757 -0
  4. package/binding.gyp +38 -0
  5. package/deps/LibRaw-Source/LibRaw-0.21.4/.clang-format +4 -0
  6. package/deps/LibRaw-Source/LibRaw-0.21.4/COPYRIGHT +27 -0
  7. package/deps/LibRaw-Source/LibRaw-0.21.4/Changelog.txt +2802 -0
  8. package/deps/LibRaw-Source/LibRaw-0.21.4/DEVELOPER-NOTES +20 -0
  9. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_4-allow-VC5-validate.diff +21 -0
  10. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-1_6-hide-ccVc5-definitiion.diff +15 -0
  11. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/dng-sdk-allow-VC5-validate.diff +21 -0
  12. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.cpp.diff +29 -0
  13. package/deps/LibRaw-Source/LibRaw-0.21.4/GoPro/gpr_read_image.h.diff +12 -0
  14. package/deps/LibRaw-Source/LibRaw-0.21.4/INSTALL +51 -0
  15. package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.CDDL +340 -0
  16. package/deps/LibRaw-Source/LibRaw-0.21.4/LICENSE.LGPL +458 -0
  17. package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.pro +19 -0
  18. package/deps/LibRaw-Source/LibRaw-0.21.4/LibRaw.sln +123 -0
  19. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.am +140 -0
  20. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.nopp +230 -0
  21. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.devel.noppr2i +227 -0
  22. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.dist +501 -0
  23. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.in +1849 -0
  24. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.mingw +297 -0
  25. package/deps/LibRaw-Source/LibRaw-0.21.4/Makefile.msvc +628 -0
  26. package/deps/LibRaw-Source/LibRaw-0.21.4/README.DNGSDK.txt +43 -0
  27. package/deps/LibRaw-Source/LibRaw-0.21.4/README.GoPro.txt +112 -0
  28. package/deps/LibRaw-Source/LibRaw-0.21.4/README.RawSpeed.txt +62 -0
  29. package/deps/LibRaw-Source/LibRaw-0.21.4/README.cmake +9 -0
  30. package/deps/LibRaw-Source/LibRaw-0.21.4/README.demosaic-packs +17 -0
  31. package/deps/LibRaw-Source/LibRaw-0.21.4/README.md +106 -0
  32. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.cpucount-unix.patch +15 -0
  33. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.qmake-pro-files.patch +84 -0
  34. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.samsung-decoder.patch +39 -0
  35. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.uncompressed-color-dng.patch +13 -0
  36. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed.win32-dll.patch +186 -0
  37. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed/rawspeed_xmldata.cpp +4115 -0
  38. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/README.md +69 -0
  39. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/01.CameraMeta-extensibility.patch +13 -0
  40. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/02.Makernotes-processing.patch +36 -0
  41. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/03.remove-limits-and-logging.patch +245 -0
  42. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/patches/04.clang-cl-compatibility.patch +37 -0
  43. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp +251 -0
  44. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.h +83 -0
  45. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp +71 -0
  46. package/deps/LibRaw-Source/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rsxml2c.sh +5 -0
  47. package/deps/LibRaw-Source/LibRaw-0.21.4/aclocal.m4 +1446 -0
  48. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.0 +19332 -0
  49. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.1 +19332 -0
  50. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/output.2 +19332 -0
  51. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/requests +544 -0
  52. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.0 +3028 -0
  53. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.1 +665 -0
  54. package/deps/LibRaw-Source/LibRaw-0.21.4/autom4te.cache/traces.2 +3028 -0
  55. package/deps/LibRaw-Source/LibRaw-0.21.4/bin/.keep_me +2 -0
  56. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.pro +5 -0
  57. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj +145 -0
  58. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/4channels.vcxproj.filters +18 -0
  59. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.pro +6 -0
  60. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj +145 -0
  61. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj.filters +18 -0
  62. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.pro +6 -0
  63. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj +145 -0
  64. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj.filters +18 -0
  65. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/half_mt.pro +10 -0
  66. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common-lib.pro +28 -0
  67. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw-common.pro +8 -0
  68. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.pro +70 -0
  69. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj +234 -0
  70. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/libraw.vcxproj.filters +295 -0
  71. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.pro +6 -0
  72. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj +145 -0
  73. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/mem_image.vcxproj.filters +18 -0
  74. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.pro +6 -0
  75. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj +145 -0
  76. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj.filters +18 -0
  77. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.pro +6 -0
  78. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj +145 -0
  79. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj.filters +18 -0
  80. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.pro +4 -0
  81. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj +145 -0
  82. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj.filters +18 -0
  83. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.pro +6 -0
  84. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj +145 -0
  85. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj.filters +18 -0
  86. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.pro +6 -0
  87. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj +145 -0
  88. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj.filters +18 -0
  89. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.pro +6 -0
  90. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj +145 -0
  91. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj.filters +18 -0
  92. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.pro +6 -0
  93. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj +145 -0
  94. package/deps/LibRaw-Source/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj.filters +18 -0
  95. package/deps/LibRaw-Source/LibRaw-0.21.4/compile +347 -0
  96. package/deps/LibRaw-Source/LibRaw-0.21.4/config.guess +1433 -0
  97. package/deps/LibRaw-Source/LibRaw-0.21.4/config.sub +1804 -0
  98. package/deps/LibRaw-Source/LibRaw-0.21.4/configure +19332 -0
  99. package/deps/LibRaw-Source/LibRaw-0.21.4/configure.ac +153 -0
  100. package/deps/LibRaw-Source/LibRaw-0.21.4/depcomp +791 -0
  101. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-C.html +187 -0
  102. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-CXX.html +881 -0
  103. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-datastruct.html +1341 -0
  104. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-notes.html +305 -0
  105. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/API-overview.html +66 -0
  106. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Install-LibRaw.html +124 -0
  107. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Samples-LibRaw.html +213 -0
  108. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/Why-LibRaw.html +65 -0
  109. package/deps/LibRaw-Source/LibRaw-0.21.4/doc/index.html +38 -0
  110. package/deps/LibRaw-Source/LibRaw-0.21.4/install-sh +501 -0
  111. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_defs.h +66 -0
  112. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dcraw_fileio_defs.h +25 -0
  113. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/defines.h +193 -0
  114. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/dmp_include.h +27 -0
  115. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cameraids.h +320 -0
  116. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_cxx_defs.h +133 -0
  117. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/libraw_internal_funcs.h +412 -0
  118. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/var_defines.h +215 -0
  119. package/deps/LibRaw-Source/LibRaw-0.21.4/internal/x3f_tools.h +539 -0
  120. package/deps/LibRaw-Source/LibRaw-0.21.4/lib/Makefile +3 -0
  121. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw.h +534 -0
  122. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_alloc.h +148 -0
  123. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_const.h +814 -0
  124. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_datastream.h +410 -0
  125. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_internal.h +341 -0
  126. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_types.h +1175 -0
  127. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw/libraw_version.h +63 -0
  128. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw.pc.in +12 -0
  129. package/deps/LibRaw-Source/LibRaw-0.21.4/libraw_r.pc.in +12 -0
  130. package/deps/LibRaw-Source/LibRaw-0.21.4/ltmain.sh +11147 -0
  131. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ax_openmp.m4 +99 -0
  132. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/libtool.m4 +8369 -0
  133. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltoptions.m4 +437 -0
  134. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltsugar.m4 +124 -0
  135. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/ltversion.m4 +23 -0
  136. package/deps/LibRaw-Source/LibRaw-0.21.4/m4/lt~obsolete.m4 +99 -0
  137. package/deps/LibRaw-Source/LibRaw-0.21.4/missing +215 -0
  138. package/deps/LibRaw-Source/LibRaw-0.21.4/object/.keep_me +0 -0
  139. package/deps/LibRaw-Source/LibRaw-0.21.4/rsxml2c.sh +6 -0
  140. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/4channels.cpp +174 -0
  141. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/Makefile +2 -0
  142. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_emu.cpp +670 -0
  143. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/dcraw_half.c +78 -0
  144. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt.c +178 -0
  145. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/half_mt_win32.c +212 -0
  146. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/mem_image_sample.cpp +282 -0
  147. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/multirender_test.cpp +107 -0
  148. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/openbayer_sample.cpp +65 -0
  149. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/postprocessing_benchmark.cpp +223 -0
  150. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/raw-identify.cpp +743 -0
  151. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/rawtextdump.cpp +144 -0
  152. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/simple_dcraw.cpp +217 -0
  153. package/deps/LibRaw-Source/LibRaw-0.21.4/samples/unprocessed_raw.cpp +319 -0
  154. package/deps/LibRaw-Source/LibRaw-0.21.4/shlib-version.sh +11 -0
  155. package/deps/LibRaw-Source/LibRaw-0.21.4/src/Makefile +2 -0
  156. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/canon_600.cpp +225 -0
  157. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/crx.cpp +2781 -0
  158. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_dcraw.cpp +1816 -0
  159. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw.cpp +873 -0
  160. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.cpp +411 -0
  161. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/dng.cpp +284 -0
  162. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fp_dng.cpp +689 -0
  163. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/fuji_compressed.cpp +1210 -0
  164. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/generic.cpp +101 -0
  165. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/kodak_decoders.cpp +524 -0
  166. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/load_mfbacks.cpp +936 -0
  167. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/smal.cpp +181 -0
  168. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack.cpp +508 -0
  169. package/deps/LibRaw-Source/LibRaw-0.21.4/src/decoders/unpack_thumb.cpp +405 -0
  170. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/aahd_demosaic.cpp +781 -0
  171. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/ahd_demosaic.cpp +355 -0
  172. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dcb_demosaic.cpp +900 -0
  173. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/dht_demosaic.cpp +1033 -0
  174. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/misc_demosaic.cpp +420 -0
  175. package/deps/LibRaw-Source/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.cpp +434 -0
  176. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/dngsdk_glue.cpp +416 -0
  177. package/deps/LibRaw-Source/LibRaw-0.21.4/src/integration/rawspeed_glue.cpp +286 -0
  178. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_c_api.cpp +457 -0
  179. package/deps/LibRaw-Source/LibRaw-0.21.4/src/libraw_datastream.cpp +1046 -0
  180. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/adobepano.cpp +154 -0
  181. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/canon.cpp +1335 -0
  182. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/ciff.cpp +411 -0
  183. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/cr3_parser.cpp +896 -0
  184. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/epson.cpp +96 -0
  185. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/exif_gps.cpp +430 -0
  186. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/fuji.cpp +1427 -0
  187. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/hasselblad_model.cpp +538 -0
  188. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify.cpp +3167 -0
  189. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/identify_tools.cpp +140 -0
  190. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/kodak.cpp +363 -0
  191. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/leica.cpp +375 -0
  192. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/makernotes.cpp +786 -0
  193. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/mediumformat.cpp +521 -0
  194. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/minolta.cpp +110 -0
  195. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/misc_parsers.cpp +694 -0
  196. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/nikon.cpp +1051 -0
  197. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/normalize_model.cpp +1451 -0
  198. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/olympus.cpp +685 -0
  199. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/p1.cpp +192 -0
  200. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/pentax.cpp +675 -0
  201. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/samsung.cpp +182 -0
  202. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/sony.cpp +2320 -0
  203. package/deps/LibRaw-Source/LibRaw-0.21.4/src/metadata/tiff.cpp +2198 -0
  204. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/aspect_ratio.cpp +113 -0
  205. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/dcraw_process.cpp +259 -0
  206. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/mem_image.cpp +292 -0
  207. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.cpp +413 -0
  208. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_ph.cpp +31 -0
  209. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.cpp +190 -0
  210. package/deps/LibRaw-Source/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.cpp +308 -0
  211. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/ext_preprocess.cpp +127 -0
  212. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/preprocessing_ph.cpp +24 -0
  213. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/raw2image.cpp +560 -0
  214. package/deps/LibRaw-Source/LibRaw-0.21.4/src/preprocessing/subtract_black.cpp +91 -0
  215. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/cameralist.cpp +1268 -0
  216. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colorconst.cpp +57 -0
  217. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/colordata.cpp +1841 -0
  218. package/deps/LibRaw-Source/LibRaw-0.21.4/src/tables/wblists.cpp +217 -0
  219. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/curves.cpp +154 -0
  220. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/decoder_info.cpp +413 -0
  221. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/init_close_utils.cpp +340 -0
  222. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/open.cpp +1269 -0
  223. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/phaseone_processing.cpp +101 -0
  224. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/read_utils.cpp +176 -0
  225. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/thumb_utils.cpp +338 -0
  226. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_dcraw.cpp +330 -0
  227. package/deps/LibRaw-Source/LibRaw-0.21.4/src/utils/utils_libraw.cpp +673 -0
  228. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/apply_profile.cpp +76 -0
  229. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/file_write.cpp +338 -0
  230. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/tiff_writer.cpp +73 -0
  231. package/deps/LibRaw-Source/LibRaw-0.21.4/src/write/write_ph.cpp +39 -0
  232. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_parse_process.cpp +708 -0
  233. package/deps/LibRaw-Source/LibRaw-0.21.4/src/x3f/x3f_utils_patched.cpp +2119 -0
  234. package/deps/LibRaw-Source/LibRaw-0.21.4/version.sh +16 -0
  235. package/deps/LibRaw-Win64/LibRaw-0.21.4/.clang-format +4 -0
  236. package/deps/LibRaw-Win64/LibRaw-0.21.4/COPYRIGHT +27 -0
  237. package/deps/LibRaw-Win64/LibRaw-0.21.4/Changelog.txt +2802 -0
  238. package/deps/LibRaw-Win64/LibRaw-0.21.4/DEVELOPER-NOTES +20 -0
  239. package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-1_4-allow-VC5-validate.diff +21 -0
  240. package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-1_6-hide-ccVc5-definitiion.diff +15 -0
  241. package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/dng-sdk-allow-VC5-validate.diff +21 -0
  242. package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/gpr_read_image.cpp.diff +29 -0
  243. package/deps/LibRaw-Win64/LibRaw-0.21.4/GoPro/gpr_read_image.h.diff +12 -0
  244. package/deps/LibRaw-Win64/LibRaw-0.21.4/INSTALL +51 -0
  245. package/deps/LibRaw-Win64/LibRaw-0.21.4/LICENSE.CDDL +340 -0
  246. package/deps/LibRaw-Win64/LibRaw-0.21.4/LICENSE.LGPL +458 -0
  247. package/deps/LibRaw-Win64/LibRaw-0.21.4/LibRaw.pro +19 -0
  248. package/deps/LibRaw-Win64/LibRaw-0.21.4/LibRaw.sln +123 -0
  249. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.am +140 -0
  250. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.devel.nopp +230 -0
  251. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.devel.noppr2i +227 -0
  252. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.dist +501 -0
  253. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.in +1849 -0
  254. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.mingw +297 -0
  255. package/deps/LibRaw-Win64/LibRaw-0.21.4/Makefile.msvc +628 -0
  256. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.DNGSDK.txt +43 -0
  257. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.GoPro.txt +112 -0
  258. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.RawSpeed.txt +62 -0
  259. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.cmake +9 -0
  260. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.demosaic-packs +17 -0
  261. package/deps/LibRaw-Win64/LibRaw-0.21.4/README.md +106 -0
  262. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.cpucount-unix.patch +15 -0
  263. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.qmake-pro-files.patch +84 -0
  264. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.samsung-decoder.patch +39 -0
  265. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.uncompressed-color-dng.patch +13 -0
  266. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed.win32-dll.patch +186 -0
  267. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed/rawspeed_xmldata.cpp +4115 -0
  268. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/README.md +69 -0
  269. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/01.CameraMeta-extensibility.patch +13 -0
  270. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/02.Makernotes-processing.patch +36 -0
  271. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/03.remove-limits-and-logging.patch +245 -0
  272. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/patches/04.clang-cl-compatibility.patch +37 -0
  273. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp +251 -0
  274. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.h +83 -0
  275. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp +71 -0
  276. package/deps/LibRaw-Win64/LibRaw-0.21.4/RawSpeed3/rawspeed3_c_api/rsxml2c.sh +5 -0
  277. package/deps/LibRaw-Win64/LibRaw-0.21.4/aclocal.m4 +1446 -0
  278. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.0 +19332 -0
  279. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.1 +19332 -0
  280. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/output.2 +19332 -0
  281. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/requests +544 -0
  282. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.0 +3028 -0
  283. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.1 +665 -0
  284. package/deps/LibRaw-Win64/LibRaw-0.21.4/autom4te.cache/traces.2 +3028 -0
  285. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/.keep_me +2 -0
  286. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/4channels.exe +0 -0
  287. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/dcraw_emu.exe +0 -0
  288. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/dcraw_half.exe +0 -0
  289. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/half_mt.exe +0 -0
  290. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/libraw.dll +0 -0
  291. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/mem_image.exe +0 -0
  292. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/multirender_test.exe +0 -0
  293. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/openbayer_sample.exe +0 -0
  294. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/postprocessing_benchmark.exe +0 -0
  295. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/raw-identify.exe +0 -0
  296. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/rawtextdump.exe +0 -0
  297. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/simple_dcraw.exe +0 -0
  298. package/deps/LibRaw-Win64/LibRaw-0.21.4/bin/unprocessed_raw.exe +0 -0
  299. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.pro +5 -0
  300. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.vcxproj +145 -0
  301. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/4channels.vcxproj.filters +18 -0
  302. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.pro +6 -0
  303. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj +145 -0
  304. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_emu.vcxproj.filters +18 -0
  305. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.pro +6 -0
  306. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj +145 -0
  307. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/dcraw_half.vcxproj.filters +18 -0
  308. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/half_mt.pro +10 -0
  309. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw-common-lib.pro +28 -0
  310. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw-common.pro +8 -0
  311. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.pro +70 -0
  312. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.vcxproj +234 -0
  313. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/libraw.vcxproj.filters +295 -0
  314. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.pro +6 -0
  315. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.vcxproj +145 -0
  316. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/mem_image.vcxproj.filters +18 -0
  317. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.pro +6 -0
  318. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj +145 -0
  319. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/multirender_test.vcxproj.filters +18 -0
  320. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.pro +6 -0
  321. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj +145 -0
  322. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/openbayer_sample.vcxproj.filters +18 -0
  323. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.pro +4 -0
  324. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj +145 -0
  325. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/postprocessing_benchmark.vcxproj.filters +18 -0
  326. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.pro +6 -0
  327. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj +145 -0
  328. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/raw-identify.vcxproj.filters +18 -0
  329. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.pro +6 -0
  330. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj +145 -0
  331. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/rawtextdump.vcxproj.filters +18 -0
  332. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.pro +6 -0
  333. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj +145 -0
  334. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/simple_dcraw.vcxproj.filters +18 -0
  335. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.pro +6 -0
  336. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj +145 -0
  337. package/deps/LibRaw-Win64/LibRaw-0.21.4/buildfiles/unprocessed_raw.vcxproj.filters +18 -0
  338. package/deps/LibRaw-Win64/LibRaw-0.21.4/compile +347 -0
  339. package/deps/LibRaw-Win64/LibRaw-0.21.4/config.guess +1433 -0
  340. package/deps/LibRaw-Win64/LibRaw-0.21.4/config.sub +1804 -0
  341. package/deps/LibRaw-Win64/LibRaw-0.21.4/configure +19332 -0
  342. package/deps/LibRaw-Win64/LibRaw-0.21.4/configure.ac +153 -0
  343. package/deps/LibRaw-Win64/LibRaw-0.21.4/depcomp +791 -0
  344. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-C.html +187 -0
  345. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-CXX.html +881 -0
  346. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-datastruct.html +1341 -0
  347. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-notes.html +305 -0
  348. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/API-overview.html +66 -0
  349. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Install-LibRaw.html +124 -0
  350. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Samples-LibRaw.html +213 -0
  351. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/Why-LibRaw.html +65 -0
  352. package/deps/LibRaw-Win64/LibRaw-0.21.4/doc/index.html +38 -0
  353. package/deps/LibRaw-Win64/LibRaw-0.21.4/install-sh +501 -0
  354. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dcraw_defs.h +66 -0
  355. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dcraw_fileio_defs.h +25 -0
  356. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/defines.h +193 -0
  357. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/dmp_include.h +27 -0
  358. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_cameraids.h +320 -0
  359. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_cxx_defs.h +133 -0
  360. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/libraw_internal_funcs.h +412 -0
  361. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/var_defines.h +215 -0
  362. package/deps/LibRaw-Win64/LibRaw-0.21.4/internal/x3f_tools.h +539 -0
  363. package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/Makefile +3 -0
  364. package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw.exp +0 -0
  365. package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw.lib +0 -0
  366. package/deps/LibRaw-Win64/LibRaw-0.21.4/lib/libraw_static.lib +0 -0
  367. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw.h +534 -0
  368. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_alloc.h +148 -0
  369. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_const.h +814 -0
  370. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_datastream.h +410 -0
  371. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_internal.h +341 -0
  372. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_types.h +1175 -0
  373. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw/libraw_version.h +63 -0
  374. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw.pc.in +12 -0
  375. package/deps/LibRaw-Win64/LibRaw-0.21.4/libraw_r.pc.in +12 -0
  376. package/deps/LibRaw-Win64/LibRaw-0.21.4/ltmain.sh +11147 -0
  377. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ax_openmp.m4 +99 -0
  378. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/libtool.m4 +8369 -0
  379. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltoptions.m4 +437 -0
  380. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltsugar.m4 +124 -0
  381. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/ltversion.m4 +23 -0
  382. package/deps/LibRaw-Win64/LibRaw-0.21.4/m4/lt~obsolete.m4 +99 -0
  383. package/deps/LibRaw-Win64/LibRaw-0.21.4/missing +215 -0
  384. package/deps/LibRaw-Win64/LibRaw-0.21.4/object/.keep_me +0 -0
  385. package/deps/LibRaw-Win64/LibRaw-0.21.4/rsxml2c.sh +6 -0
  386. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/4channels.cpp +174 -0
  387. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/Makefile +2 -0
  388. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/dcraw_emu.cpp +670 -0
  389. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/dcraw_half.c +78 -0
  390. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/half_mt.c +178 -0
  391. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/half_mt_win32.c +212 -0
  392. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/mem_image_sample.cpp +282 -0
  393. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/multirender_test.cpp +107 -0
  394. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/openbayer_sample.cpp +65 -0
  395. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/postprocessing_benchmark.cpp +223 -0
  396. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/raw-identify.cpp +743 -0
  397. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/rawtextdump.cpp +144 -0
  398. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/simple_dcraw.cpp +217 -0
  399. package/deps/LibRaw-Win64/LibRaw-0.21.4/samples/unprocessed_raw.cpp +319 -0
  400. package/deps/LibRaw-Win64/LibRaw-0.21.4/shlib-version.sh +11 -0
  401. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/Makefile +2 -0
  402. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/canon_600.cpp +225 -0
  403. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/crx.cpp +2781 -0
  404. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_dcraw.cpp +1816 -0
  405. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_libraw.cpp +873 -0
  406. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/decoders_libraw_dcrdefs.cpp +411 -0
  407. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/dng.cpp +284 -0
  408. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/fp_dng.cpp +689 -0
  409. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/fuji_compressed.cpp +1210 -0
  410. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/generic.cpp +101 -0
  411. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/kodak_decoders.cpp +524 -0
  412. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/load_mfbacks.cpp +936 -0
  413. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/smal.cpp +181 -0
  414. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/unpack.cpp +508 -0
  415. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/decoders/unpack_thumb.cpp +405 -0
  416. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/aahd_demosaic.cpp +781 -0
  417. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/ahd_demosaic.cpp +355 -0
  418. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/dcb_demosaic.cpp +900 -0
  419. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/dht_demosaic.cpp +1033 -0
  420. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/misc_demosaic.cpp +420 -0
  421. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/demosaic/xtrans_demosaic.cpp +434 -0
  422. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/integration/dngsdk_glue.cpp +416 -0
  423. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/integration/rawspeed_glue.cpp +286 -0
  424. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/libraw_c_api.cpp +457 -0
  425. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/libraw_datastream.cpp +1046 -0
  426. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/adobepano.cpp +154 -0
  427. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/canon.cpp +1335 -0
  428. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/ciff.cpp +411 -0
  429. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/cr3_parser.cpp +896 -0
  430. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/epson.cpp +96 -0
  431. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/exif_gps.cpp +430 -0
  432. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/fuji.cpp +1427 -0
  433. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/hasselblad_model.cpp +538 -0
  434. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/identify.cpp +3167 -0
  435. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/identify_tools.cpp +140 -0
  436. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/kodak.cpp +363 -0
  437. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/leica.cpp +375 -0
  438. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/makernotes.cpp +786 -0
  439. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/mediumformat.cpp +521 -0
  440. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/minolta.cpp +110 -0
  441. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/misc_parsers.cpp +694 -0
  442. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/nikon.cpp +1051 -0
  443. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/normalize_model.cpp +1451 -0
  444. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/olympus.cpp +685 -0
  445. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/p1.cpp +192 -0
  446. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/pentax.cpp +675 -0
  447. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/samsung.cpp +182 -0
  448. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/sony.cpp +2320 -0
  449. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/metadata/tiff.cpp +2198 -0
  450. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/aspect_ratio.cpp +113 -0
  451. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/dcraw_process.cpp +259 -0
  452. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/mem_image.cpp +292 -0
  453. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_aux.cpp +413 -0
  454. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_ph.cpp +31 -0
  455. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_utils.cpp +190 -0
  456. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/postprocessing/postprocessing_utils_dcrdefs.cpp +308 -0
  457. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/ext_preprocess.cpp +127 -0
  458. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/preprocessing_ph.cpp +24 -0
  459. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/raw2image.cpp +560 -0
  460. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/preprocessing/subtract_black.cpp +91 -0
  461. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/cameralist.cpp +1268 -0
  462. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/colorconst.cpp +57 -0
  463. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/colordata.cpp +1841 -0
  464. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/tables/wblists.cpp +217 -0
  465. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/curves.cpp +154 -0
  466. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/decoder_info.cpp +413 -0
  467. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/init_close_utils.cpp +340 -0
  468. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/open.cpp +1269 -0
  469. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/phaseone_processing.cpp +101 -0
  470. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/read_utils.cpp +176 -0
  471. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/thumb_utils.cpp +338 -0
  472. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/utils_dcraw.cpp +330 -0
  473. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/utils/utils_libraw.cpp +673 -0
  474. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/apply_profile.cpp +76 -0
  475. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/file_write.cpp +338 -0
  476. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/tiff_writer.cpp +73 -0
  477. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/write/write_ph.cpp +39 -0
  478. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/x3f/x3f_parse_process.cpp +708 -0
  479. package/deps/LibRaw-Win64/LibRaw-0.21.4/src/x3f/x3f_utils_patched.cpp +2119 -0
  480. package/deps/LibRaw-Win64/LibRaw-0.21.4/version.sh +16 -0
  481. package/lib/index.d.ts +324 -0
  482. package/lib/index.js +761 -0
  483. package/package.json +97 -0
  484. package/src/addon.cpp +8 -0
  485. package/src/libraw_wrapper.cpp +1223 -0
  486. package/src/libraw_wrapper.h +109 -0
  487. package/src/libraw_wrapper_new.cpp +853 -0
@@ -0,0 +1,305 @@
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="content-type" content="text/html; charset=windows-1252">
4
+ </head>
5
+ <body>
6
+ <p>LibRaw: General Notes on API<a href="index.html">[back to Index]</a></p>
7
+ <h1>LibRaw: General Notes on API</h1>
8
+ <h2>Contents</h2>
9
+ <ol>
10
+ <li><a href="#versions">LibRaw editions</a></li>
11
+ <li><a href="#errors">Error Code Conventions and Error Handling</a></li>
12
+ <li><a href="#warnings">Nonstandard Situations That Are Not Errors</a></li>
13
+ <li><a href="#io">Input Layer Abstraction</a></li>
14
+ <li><a href="threads">Thread Safety</a></li>
15
+ <li><a href="#CXX">The Use of C++</a></li>
16
+ <li><a href="#imgdata_params">Parameters of the LibRaw::imgdata.params
17
+ Structure Affecting the Behavior of open_file/unpack/unpack_thumb</a></li>
18
+ <li><a href="#memory">Memory Usage</a>
19
+ <ol>
20
+ <li><a href="#stack">Stack Usage</a></li>
21
+ <li><a href="#memmgr">Dynamic Memory Management</a></li>
22
+ <li><a href="#memuse">Dynamic Memory Usage</a>
23
+ <ol>
24
+ <li><a href="#memraw">Memory Buffer for the RAW Image</a></li>
25
+ <li><a href="#memimage">Memory for the Postprocessed Image</a></li>
26
+ <li><a href="#memthumb">Memory for the Decoded Thumbnail</a></li>
27
+ <li><a href="#memraw">Memory for RAW Unpacking</a></li>
28
+ <li><a href="#mempostproces">Memory for Postprocessing</a></li>
29
+ <li><a href="#memwrite">Memory for File Writing</a></li>
30
+ <li><a href="#memunpack">Unpacking into memory buffer</a></li>
31
+ </ol>
32
+ </li>
33
+ </ol>
34
+ </li>
35
+ <li><a href="#incompat">Incompatibilities with dcraw</a>
36
+ <ol>
37
+ <li><a href="#incompat_max">Automatic maximum search/brightness
38
+ adjustment</a></li>
39
+ <li><a href="#incompat_kodak">Processing of Thumbnails from Kodak
40
+ cameras</a></li>
41
+ </ol>
42
+ </li>
43
+ </ol>
44
+ <p><a name="versions"></a></p>
45
+ <h2>LibRaw Versions</h2>
46
+ <p>Since version 0.9, there is only one LibRaw variants. Older versions have
47
+ three separate editions (normal, -Lite and -Commercial versions).</p>
48
+ <p><a name="errors"></a></p>
49
+ <h2>Error Code Conventions and Error Handling</h2>
50
+ <p>The following conventions concern the returned errors:</p>
51
+ <ol>
52
+ <li>All functions that can return an error code have integer type of
53
+ return data.</li>
54
+ <li>If there is no error, the return value is 0 (LIBRAW_SUCCESS).</li>
55
+ <li>If an error has happened in a system call, the return value is errno
56
+ (a positive number), which can be analyzed using strerror() or similar
57
+ means.</li>
58
+ <li>All LibRaw's own error codes are negative; each of these errors
59
+ belongs to one of two types:
60
+ <dl>
61
+ <dt><strong>Non-fatal errors</strong></dt>
62
+ <dd>Non-fatal errors do not forbid execution of other functions in the
63
+ processing succession (e.g., <a href="API-CXX.html#unpack_thumb">unpack_thumb()</a>
64
+ can easily return the code corresponding to "preview is absent" but
65
+ this does not prevent further call of <a href="API-CXX.html#unpack">unpack()</a>.</dd>
66
+ <dt><strong>Fatal errors</strong></dt>
67
+ <dd>In the case of fatal errors (memory shortage, input data error,
68
+ data unpacking failure), the current stage of processing is
69
+ terminated and all allocated resources are freed.<br>
70
+ If an attempt to continue processing is made, all subsequent API
71
+ calls will return the LIBRAW_OUT_OF_ORDER_CALL error.<br>
72
+ At the same time, the LibRaw instance in which a fatal error has
73
+ occurred can process the next RAW files in the usual way (by calling
74
+ <a href="API-CXX.html#open_file">open_file()</a> (or other input
75
+ methods), then <a href="API-CXX.html#unpack">unpack()</a>, etc.).</dd>
76
+ </dl>
77
+ </li>
78
+ <li>The macro LIBRAW_FATAL_ERROR(error code) checks if an error is fatal
79
+ or not.</li>
80
+ <li>The error codes are <a href="API-datastruct.html#errors">listed and
81
+ deciphered here</a>.</li>
82
+ </ol>
83
+ <p><a name="warnings"></a></p>
84
+ <h2>Nonstandard Situations That Are Not Errors</h2>
85
+ <p>If the program has encountered a nonstandard situation that does not
86
+ prevent retrieval of some data from a file, it sends a signal by setting
87
+ the corresponding bit in <a href="API-datastruct.html#libraw_data_t">imgdata.process_warnings</a>.
88
+ The possible types of warnings are <a href="API-datastruct.html#warnings">listed
89
+ and deciphered here</a>.</p>
90
+ <p><a name="io"></a></p>
91
+ <h2>Input Layer Abstraction</h2>
92
+ <p>LibRaw uses objects derived from <a href="API-CXX.html#datastream">LibRaw_abstract_datastream</a>
93
+ for data input. Semantics of these objects is similar to 'file with
94
+ arbitrary seek' object: both read and seek operations are used.</p>
95
+ <p>Some RAW formats requires temporary switch to another data stream created
96
+ on top on memory buffer for metadata read. Methods for doing so are
97
+ implemented in base class <a href="API-CXX.html#datastream">LibRaw_abstract_datastream</a>
98
+ by internal data field <strong>substream</strong>. Look into source code
99
+ of <a href="API-CXX.html#file_datastream">LibRaw_file_datastream</a>
100
+ class in <strong>libraw/libraw_datastream.h</strong> file for more
101
+ details. <br>
102
+ When implementing own datastream classes, you need to take <strong>substream</strong>
103
+ into account and pass control to methods of this field if it is active
104
+ (not NULL).</p>
105
+ <p>If datastream implementation knows name of input file, it should provide
106
+ fname() call. This name will be used in <a href="API-CXX.html#callbacks">error
107
+ callbacks</a> and in guessing name of JPEG file with metadata (for RAW
108
+ files with external metadata).</p>
109
+ <p>For external metadata support input class should implement <strong>subfile_open()/subfile_close()</strong>
110
+ methods. ���������� ��� ������. <br>
111
+ Sample of these methods implementation may be found in <a href="API-CXX.html#file_datastream">LibRaw_file_datastream</a>
112
+ class (look into <strong>libraw/libraw_datastream.h</strong> file for
113
+ details).</p>
114
+ <p><a name="threads"></a></p>
115
+ <h2>Thread safety</h2>
116
+ <p>Thread safety is ensured if a LibRaw object is created and used within
117
+ one thread. At the same time, the number of threads (each with its own
118
+ LibRaw object) is not limited in any way (except by memory requirements).</p>
119
+ <p>If a LibRaw object is created in one execution thread and used in
120
+ another, external synchronization is necessary.</p>
121
+ <p>There is two libraries under Unix environment (Linux/FreeBSD/MacOS):
122
+ libraw_r.a (thread-safe) and libraw.a (single-threaded, slightly faster).</p>
123
+ <p>Thread-safe library version stores intermediate unpacker data into LibRaw
124
+ class data. So, several copies of LibRaw, working in parallel, is
125
+ possible.</p>
126
+ <p>Not thread-safe library uses global variable for intermediate data store
127
+ which is faster but not reenterant. This non-thread-safe library still may
128
+ be used in multi-threaded apps, but only if exactly one LibRaw class copy
129
+ exists in program.</p>
130
+ <p>Windows version is similar to multi-threaded Unix one.</p>
131
+ <p><a name="CXX"></a></p>
132
+ <h2>The Use of C++</h2>
133
+ <p>Exception situations within LibRaw are handled using the C++ exception
134
+ mechanism. All exceptions are caught inside the library functions and
135
+ should not penetrate outside.</p>
136
+ <p>Memory is allocated/freed using functions malloc(calloc)/free rather than
137
+ new/delete.</p>
138
+ <p>If C API is used, references to C++ calls new/delete still remain, and so
139
+ linking with libstdc++(Unix)/....(Windows) is necessary.</p>
140
+ <p><a name="imgdata_params"></a></p>
141
+ <h2>Parameters of the LibRaw::imgdata.params Structure Affecting the
142
+ Behavior of open_file/unpack/unpack_thumb</h2>
143
+ <p>Most data fields of structure LibRaw::imgdata.params affect only <a href="API-CXX.html#dcrawemu">data
144
+ postprocessing</a>, but there are some exceptions, which have been
145
+ inherited by the current version of LibRaw from/ dcraw source texts (these
146
+ dependences will be gradually removed).</p>
147
+ <dl>
148
+ <dt><strong>imgdata.params.use_camera_matrix and
149
+ imgdata.params.use_camera_wb</strong></dt>
150
+ <dd>These fields affect loading of RAW data for cameras with a color
151
+ matrix.<br>
152
+ <strong>Attention!</strong> If parameter <strong>imgdata.params.use_camera_matrix</strong>
153
+ is not set by the user, it is copied from <strong>imgdata.params.use_camera_wb</strong>
154
+ at the stage of file opening.</dd>
155
+ <dt><strong>imgdata.params.user_flip</strong></dt>
156
+ <dd>If this parameter is greater than or equal to zero, assignment <code>imgdata.sizes.flip
157
+ = imgdata.params.user_flip</code> is performed at the <a href="API-CXX.html#open_file">open_file()</a>
158
+ stage.</dd>
159
+ <dt><strong>imgdata.params.shot_select</strong></dt>
160
+ <dd>This parameter makes it possible to select the number of the extracted
161
+ image for data formats in which storage of several RAW images in one
162
+ data file is possible.</dd>
163
+ <dt><strong>imgdata.params.half_size</strong></dt>
164
+ <dd>Affects RAW data loading for Phase One and Sinar backs. Also, it this
165
+ parameter is set then image bitmap will be reduced by half in each
166
+ dimension. In later case, all 4 components of bitmap will be filled
167
+ during data extraction phase.</dd>
168
+ <dt><strong>imgdata.params.threshold, imgdata.params.aber</strong></dt>
169
+ <dd>If these parameters used, then half-sized bitmap will be used for data
170
+ unpacking. See above for details.</dd>
171
+ <dt><strong>imgdata.params.use_camera_wb</strong></dt>
172
+ <dd>Affects loading of white balance matrix for Leaf backs.</dd>
173
+ </dl>
174
+ <p><a name="memory"></a></p>
175
+ <h2>Memory Usage</h2>
176
+ <p><a name="stack"></a></p>
177
+ <h3>Stack Usage</h3>
178
+ <p>An instance of the LibRaw class has its own size about <strong>800 Kb</strong>;
179
+ if constructions like <code>LibRaw imageProcessor;</code> are used, this
180
+ memory is stack-allocated.</p>
181
+ <p>Methods of class LibRaw (and C API calls) may allocate up to 130-140 Kb
182
+ of data on the stack (to place auto variables) during their work.</p>
183
+ <p>Thus, the work of one LibRaw instance may require about <strong>1MB</strong>
184
+ of stack memory. This is not a problem for most contemporary
185
+ architectures. However, when working in a multithreaded environment, one
186
+ should not forget to allocate a sufficient amount of memory for the thread
187
+ stack.</p>
188
+ <p>In the case of dynamic allocation (<code>LibRaw *iProcessor = new LibRaw;</code>),
189
+ the requirements to stack memory will decrease by ~800 Kb, which is the
190
+ size of a class instance). If <a href="API-C.html">C API</a> is used, the
191
+ LibRaw instance is allocated dynamically.</p>
192
+ <p><a name="memmgr"></a></p>
193
+ <h3>Dynamic Memory Management</h3>
194
+ <p>LibRaw keeps record of all allocated dynamic memory blocks; in the case
195
+ of an exceptional situation (fatal error), they are all freed. The code
196
+ for keeping this record is fairly primitive and not designed to consider
197
+ allocation of many blocks (in the normal situation, allocation takes place
198
+ from 2 to 6 times during file processing); this fact should be taken into
199
+ account by developers trying to add new methods to LibRaw.</p>
200
+ <p><a name="memuse"></a></p>
201
+ <h3>Dynamic Memory Usage</h3>
202
+ <p>LibRaw uses dynamic memory</p>
203
+ <ul>
204
+ <li>for the decoded image;</li>
205
+ <li>for the decoded thumbnail;</li>
206
+ <li>for the postprocessed image;</li>
207
+ <li>for the ICC profile retrieved from the RAW file (if available);</li>
208
+ <li>for temporary data at the stage of RAW file unpacking;</li>
209
+ <li>for temporary data at the stage of postprocessing and result output;</li>
210
+ <li>for reading of the RAW source file (only under Win32).</li>
211
+ </ul>
212
+ <p><a name="memraw"></a></p>
213
+ <h4>Memory buffer for the RAW image</h4>
214
+ <p>Decoded RAW data are stored:</p>
215
+ <ul>
216
+ <li>one 16-bit value per pixel for "bayer" images. The masked pixels
217
+ (black or dark or masked frame) are stored with image data.</li>
218
+ <li>Free or four 16-bit values for full-color images (Foveon, Linear DNG,
219
+ Canon sRAW etc.).</li>
220
+ <li>one,three, or four 32-bit floating point values per pixel for
221
+ floating-point data.</li>
222
+ </ul>
223
+ <p>The buffer for RAW data is allocated by <a href="API-CXX.html#unpack">unpack()</a>
224
+ call and freed upon calling <a href="API-CXX.html#recycle">recycle()</a>.</p>
225
+ <p><a name="memimage"></a></p>
226
+ <h4>Memory for the Postprocessed Image</h4>
227
+ <p>On postprocessing stage each pixel contains four 16-bit values, one for
228
+ each possible color channel (some sensors are actually 4-color).</p>
229
+ <p>The buffer for the decoded image is allocated upon calling <a href="API-CXX.html#raw2image">raw2image()</a>
230
+ or <a href="API-CXX.html#dcraw_process">dcraw_process()</a></p>
231
+ <p>The buffer freed upon calling <a href="API-CXX.html#recycle">recycle()</a>
232
+ or <a href="API-CXX.html#free_image">free_image()</a> calls.</p>
233
+ <p><a name="memthumb"></a></p>
234
+ <h4>Memory for the Decoded Thumbnail</h4>
235
+ <p>Memory for the thumbmail is allocated upon calling <a href="API-CXX.html#unpack_thumb">unpack_thumb()</a>
236
+ and freed upon calling <a href="API-CXX.html#recycle">recycle()</a>. The
237
+ size of the allocated buffer is precisely adjusted to the thumbnail size,
238
+ i.e., up to several Mb.</p>
239
+ <p><a name="memprofile"></a></p>
240
+ <p><a name="memraw"></a></p>
241
+ <h4>Memory for RAW Unpacking</h4>
242
+ <p>Memory for temporary buffer needed during RAW data unpacking may be
243
+ allocated during the work of <a href="API-CXX.html#unpack">unpack()</a>
244
+ and freed before completion of this function. The sizes of the allocated
245
+ buffers are small, up to tens of Kb.</p>
246
+ <p><a name="mempostproces"></a></p>
247
+ <h4>Memory for Postprocessing</h4>
248
+ <p>During image postprocessing (inherited from dcraw), memory for the
249
+ histogram (128 Kb) is allocated. This memory is allocated upon calling <a
250
+ href="API-CXX.html#dcraw_process">dcraw_process()</a> and freed upon
251
+ calling <a href="API-CXX.html#recycle">recycle()</a>.</p>
252
+ <p>In addition, during the work of <a href="API-CXX.html#dcraw_process">dcraw_process()</a>
253
+ and during the usage of some available possibilities, like</p>
254
+ <ul>
255
+ <li>rotation of images from FUJI cameras;</li>
256
+ <li>correction of chromatic aberrations;</li>
257
+ <li>image size changes (including correction of non-square pixels);</li>
258
+ <li>highlight recovery;</li>
259
+ </ul>
260
+ <p>a temporary buffer with the size equal to the size of the resultant image
261
+ (6-8 bytes per pixel for various processing stages) will be allocated. As
262
+ soon as the intermediate substage of processing is completed, the buffer
263
+ with the previous copy of the image will be freed.<br>
264
+ If postprocessing is not used, then temporary buffers are not allocated.</p>
265
+ <p><a name="memwrite"></a></p>
266
+ <h4>Memory for File Writing</h4>
267
+ <p>Upon calling <a href="API-CXX.html#dcraw_ppm_tiff_writer">dcraw_ppm_tiff_writer()</a>,
268
+ memory for a single row of the output image is allocated. The allocated
269
+ memory is freed before the end of this call.</p>
270
+ <p><a name="memunpack"></a></p>
271
+ <h4>Unpacking into memory buffer</h4>
272
+ <p>Functions <a href="API-CXX.html#dcraw_make_mem_image">dcraw_make_mem_image()</a>
273
+ <a href="API-CXX.html#dcraw_make_mem_thumb">dcraw_make_mem_thumb()</a>
274
+ (and complementary calls in C-API) allocates memory for entire output
275
+ datasets (full RGB bitmap and thumbnail, respectively).To free allocated
276
+ memory use <a href="API-CXX.html#dcraw_clear_mem">dcraw_clear_mem()</a>
277
+ function.</p>
278
+ <p><a name="incompat"></a></p>
279
+ <h2>Incompatibilities with dcraw</h2>
280
+ <p><a name="incompat_max"></a></p>
281
+ <h3>Automatic maximum search/brightness adjustment</h3>
282
+ <p>Many camera formats really use less data range, than possible by format
283
+ nature (bit count). If data maximum estimated incorrectly (too low) this
284
+ may resuls in colored highlights ('pink clouds') because of data cut at
285
+ wrong level.</p>
286
+ <p>To prevent this, LibRaw uses real data maximum from current file if this
287
+ maximum is larger than format maximum multiplied by
288
+ imdata.params.adjust_maximum_thr value (default is 0.75).</p>
289
+ <p>To turn off this feature (and repeat dcraw.c pink clouds) set
290
+ imdata.params.adjust_maximum_thr to 0.0</p>
291
+ <p><a name="incompat_kodak"></a></p>
292
+ <h3>Processing of Thumbnails from Kodak cameras</h3>
293
+ <p>In some Kodak cameras, the preview (thumbnail) is stored in the form of
294
+ uncorrected image. During its extraction using <strong>dcraw -e</strong>,
295
+ the white balance, color conversion, and other settings are the same as
296
+ those used for extraction of the main RAW data (including defect removal
297
+ and dark frame subtraction, which is erroneous, since the image size is
298
+ different). <br>
299
+ In LibRaw::unpack_thumb() calls, the white balance taken from the camera
300
+ ("as shot") is used and no settings from imgdata.params are considered.</p>
301
+ <p>For all other cameras, thumbnails are extracted "as is," without any
302
+ color conversions, both in dcraw and in LibRaw.</p>
303
+ <p><a href="index.html">[back to Index]</a></p>
304
+ </body>
305
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <title>Overview of LibRaw API (C++)</title>
5
+ </head>
6
+
7
+ <body>
8
+ <a href=index.html>[back to Index]</a>
9
+ <h1>Overview of LibRaw API (C++)</h1>
10
+ <h2>General Remarks</h2>
11
+ <ol>
12
+ <li>The entire processing is carried out by an instance of the LibRaw class, which is an image processor.</li>
13
+ <li>One image processor can simultaneously process only one data source file, but consecutive processing of any number of files
14
+ is possible.</li>
15
+ <li>There may be several simultaneously working image processors in a software program (e.g., in different threads), although one
16
+ should remember that each image processor may require much memory.</li>
17
+ <li>Reading of source data from the RAW file requires virtually no customization (see <a
18
+ href="API-notes.html">API Notes</a> for exceptions to this rule).</li>
19
+ <li>All data extracted from the RAW file are accessible through data fields of the image processor (LibRaw class instance).</li>
20
+ <li>Although LibRaw <b>is not intended for RAW data postprocessing</b>, the library includes calls that enable complete
21
+ emulation of the <b>dcraw</b> utility.
22
+ <li>All customization for the processing is performed via data fields of the LibRaw class.</li>
23
+ </ol>
24
+
25
+ <h2>Brief Demonstration</h2>
26
+ <p>
27
+ The example below contains no error processing for the sake of brevity.
28
+ </p>
29
+ <pre>
30
+ #include "libraw/libraw.h"
31
+ int process_image(char *file)
32
+ {
33
+ // Let us create an image processor
34
+ LibRaw iProcessor;
35
+
36
+ // Open the file and read the metadata
37
+ iProcessor.open_file(file);
38
+
39
+ // The metadata are accessible through <a href="API-datastruct.html">data fields of the class</a>
40
+ printf("Image size: %d x %d\n",iProcessor.imgdata.sizes.width,iProcessor.imgdata.sizes.height);
41
+
42
+ // Let us unpack the image
43
+ iProcessor.unpack();
44
+
45
+ // Convert from imgdata.rawdata to imgdata.image:
46
+ iProcessor.raw2image();
47
+
48
+ // And let us print its dump; the data are accessible through <a href="API-datastruct.html">data fields of the class</a>
49
+ for(i = 0;i lt; iProcessor.imgdata.sizes.iwidth * iProcessor.imgdata.sizes.iheight; i++)
50
+ printf("i=%d R=%d G=%d B=%d G2=%d\n",
51
+ i,
52
+ iProcessor.imgdata.image[i][0],
53
+ iProcessor.imgdata.image[i][1],
54
+ iProcessor.imgdata.image[i][2],
55
+ iProcessor.imgdata.image[i][3]
56
+ );
57
+
58
+ // Finally, let us free the image processor for work with the next image
59
+ iProcessor.recycle();
60
+ }
61
+ </pre>
62
+
63
+
64
+ <a href=index.html>[back to Index]</a>
65
+ </body>
66
+ </html>
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=windows-1252">
5
+ <title>LibRaw Compilation and Installation</title>
6
+ </head>
7
+ <body> <a href="index.html">[back to Index]</a>
8
+ <h1>LibRaw Compilation and Installation</h1>
9
+ <p>LibRaw is distributed in the form of source codes. For further use, they
10
+ should be compiled (and, if desired, placed into system folders with
11
+ libraries and include-files).</p>
12
+ <a name="unix"></a>
13
+ <h2>Unix Systems (FreeBSD, Linux, Mac OS X)</h2>
14
+ <p> To build the library, you will need a working C++ compiler (gcc 3+ and
15
+ clang 2+ are OK) and the make utility. </p>
16
+ <p>Additional libraries (optional):</p>
17
+ <ul>
18
+ <li>zlib (used to decode deflated DNGs)</li>
19
+ <li>libjasper (used to decode RED files)</li>
20
+ <li>libjpeg8 (used to decode lossy DNGs and several old Kodak cameras)</li>
21
+ </ul>
22
+ <p> LibRaw has been tested on 32- and 64-bit Unix systems working on x86-
23
+ (and AMD64-) compatible processors. Building and work on other
24
+ architectures have not been tested. </p>
25
+ <h3>Compilation of Library and Examples</h3>
26
+ <p> Unpack the downloaded distribution package.</p>
27
+ <pre> tar xzvf LibRaw-X.YY.tar.gz
28
+ </pre>
29
+ <p>For GitHub downloads (clones), perform ./configure script generation via</p>
30
+ <pre> autoreconf --install</pre>
31
+ <p>Go to LibRaw directory and run <b>./configure</b> and <b>make</b>: </p>
32
+ <pre>cd LibRaw-X.YY
33
+ ./configure # with optional args
34
+ make
35
+ </pre>
36
+ <p>As a result, you will compile</p>
37
+ <ul>
38
+ <li>Library libraw.a in the lib/ folder</li>
39
+ <li><a href="Samples-LibRaw.html">Examples</a> in the bin/ folder (source
40
+ codes of examples are in the samples/ folder).</li>
41
+ </ul>
42
+ <p>In the current version, only static libraries are built:</p>
43
+ <ul>
44
+ <li>libraw.a: non-thread-safe version</li>
45
+ <li>libraw_r.a: thread-safe</li>
46
+ </ul>
47
+ <h3>Build parameters</h3>
48
+ <p> ./configure script have some non-standard parameters: </p>
49
+ <dl>
50
+ <dt> --enable-openmp<br>
51
+ --disable-openmp </dt>
52
+ <dd> Enable/disable OpenMP support if compiler supports it. OpenMP is
53
+ enabled by default. </dd>
54
+ <dt> --enable-lcms<br>
55
+ --disable-lcms </dt>
56
+ <dd> Enable/disable LCMS color engine support. If enabled, ./configure
57
+ will try to find lcms library. Both LCMS-1.x and LCMS-2.x are supported
58
+ LCMS support is enabled by default </dd>
59
+ <dt> --enable-examples<br>
60
+ --disable-examples </dt>
61
+ <dd> Enables/disables examples compilation and installation. Enabled by
62
+ default </dd>
63
+ </dl>
64
+ <h3>Installation and Usage</h3>
65
+ <p>To install the library, run</p>
66
+ <pre> sudo make install
67
+ </pre>
68
+ <p> It will place the libraries in <b>/usr/local/lib</b>, the include-files
69
+ in <b>/usr/local/include</b> (subfolder of libraw) and LibRaw samples to
70
+ <b>/usr/local/bin</b>. You can override installation path by using
71
+ ./configure script. <br>
72
+ To use LibRaw, add the following parameters to the compiler call (when
73
+ building your own projects): </p>
74
+ <ul>
75
+ <li>Path to include-files: -I/usr/local/include</li>
76
+ <li>Path to libraries: -L/usr/local/lib</li>
77
+ <li>Library: -lraw (ordinary version) or -lraw_r (thread-safe version).</li>
78
+ </ul>
79
+ <h2>Windows: Building under Cygwin</h2>
80
+ <p> Building and installation are completely similar to <a href="#unix">building
81
+ and installation under Unix systems</a>. </p>
82
+ <h2>Windows: Native Building</h2>
83
+ <p> Building under Windows has three steps: </p>
84
+ <ul>
85
+ <li>Unpack the distribution package (if you have got no tar+gzip, take the
86
+ LibRaw distribution package in the .ZIP format) and go to folder
87
+ LibRaw-X.YYY. </li>
88
+ <li>Set the environment parameters so that the compiler/linker would find
89
+ the libraries and include-files. For Visual C++, this is done by running
90
+ <b>vcvars32.bat</b>. </li>
91
+ <li> Run<br>
92
+ <b>nmake -f Makefile.msvc</b><br>
93
+ </li>
94
+ </ul>
95
+ <p>You may need to edit Makefile.msvc to provide libjpeg/zlib/libjasper
96
+ paths to INCLUDE/LIB.</p>
97
+ <p> If all paths are set correctly and the include-files/libraries have been
98
+ found, then the following will be compiled:</p>
99
+ <ul>
100
+ <li>Library libraw_static.lib in folder lib</li>
101
+ <li>Dynamic library bin/libraw.dll and linking library for it
102
+ lib/libraw.lib</li>
103
+ <li>Examples in folder bin/.</li>
104
+ </ul>
105
+ <p>Only the thread-safe library is built under Win32, but it can be used
106
+ with non-threaded applications as well. All examples are linked with the
107
+ dynamic library (DLL); if static linking is necessary, one should link
108
+ applications with library libraw_static.lib and set the preprocessor
109
+ option /DLIBRAW_NODLL during compilation. </p>
110
+ <p> Windows-version compiles without LCMS support for now. </p>
111
+ <p> During building of DLL, all public functions are exported; further, the
112
+ exported subset may be reduced. </p>
113
+ <p> Unfortunately, paths to include/ libraries depend on the way Visual C
114
+ (or other compiler) is installed; therefore, it is impossible to specify
115
+ some standard paths in Makefile.msvc. </p>
116
+ <h2>Windows Installation</h2>
117
+ <p> No installation under Windows is supported. It is assumed that all DLLs
118
+ will be supplied together with the software using them (and this software
119
+ will perform the installation). Accordingly, in building of programs using
120
+ LibRaw, the paths to libraries, DLLs, and include-files should be
121
+ specified manually. </p>
122
+ <a href="index.html">[back to Index]</a>
123
+ </body>
124
+ </html>