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,881 @@
1
+ <html>
2
+ <head>
3
+ <meta http-equiv="content-type" content="text/html; charset=windows-1252">
4
+ </head>
5
+ <body>
6
+ <p>LibRaw C++ API<a href="index.html">[back to Index]</a></p>
7
+ <h1>LibRaw C++ API</h1>
8
+ <p>Contents</p>
9
+ <ol>
10
+ <li><a href="#LibRaw">LibRaw Objects</a></li>
11
+ <li><a href="#return">Returned values</a></li>
12
+ <li><a href="#dataload">Methods Loading Data from a File</a>
13
+ <ul>
14
+ <li><a href="#open_datastream">int
15
+ LibRaw::open_datastream(LibRaw_abstract_datastream *stream)</a></li>
16
+ <li><a href="#open_file">int LibRaw::open_file(const char
17
+ *rawfile[,INT64 bigfile_size])</a></li>
18
+ <li><a href="#open_buffer">int LibRaw::open_buffer(void *buffer,
19
+ size_t bufsize)</a></li>
20
+ <li><a href="#open_bayer">int LibRaw::open_bayer(...)</a></li>
21
+ <li><a href="#unpack">int LibRaw::unpack(void)</a></li>
22
+ <li><a href="#unpack_thumb">int LibRaw::unpack_thumb(void)</a></li>
23
+ <li><a href="#unpack_thumb_ex">int LibRaw::unpack_thumb_ex(int)</a></li>
24
+ </ul>
25
+ </li>
26
+ <li><a href="#utility">Auxiliary Functions</a>
27
+ <ul>
28
+ <li>Library version info
29
+ <ul>
30
+ <li><a href="#version">const char* LibRaw::version()</a></li>
31
+ <li><a href="#versionNumber">int LibRaw::versionNumber()</a></li>
32
+ <li><a href="#LIBRAW_CHECK_VERSION">bool
33
+ LIBRAW_CHECK_VERSION(major,minor,patch)</a></li>
34
+ </ul>
35
+ </li>
36
+ <li>List of supported cameras
37
+ <ul>
38
+ <li><a href="#cameraCount">int LibRaw::cameraCount()</a></li>
39
+ <li><a href="#cameraList">const char** LibRaw::cameraList()</a></li>
40
+ </ul>
41
+ </li>
42
+ <li><a href="#set_rawspeed_camerafile">int
43
+ LibRaw::set_rawspeed_camerafile(char *path_to_cameras_xml)</a></li>
44
+ <li><a href="#get_decoder_info">int
45
+ LibRaw::get_decoder_info(libraw_decoder_info_t *)</a></li>
46
+ <li><a href="#unpack_function_name">const char*
47
+ LibRaw::unpack_function_name()</a></li>
48
+ <li><a href="#COLOR">int LibRaw::COLOR()</a></li>
49
+ <li><a href="#error_count">int LibRaw::error_count()</a></li>
50
+ <li><a href="#setCancelFlag">void LibRaw::setCancelFlag()</a></li>
51
+ <li><a href="#clearCancelFlag">void LibRaw::clearCancelFlag()</a></li>
52
+ <li><a href="#subtract_black">int LibRaw::subtract_black()</a></li>
53
+ <li><a href="#adjust_to_raw_inset_crop">int
54
+ LibRaw::adjust_to_raw_inset_crop()</a></li>
55
+ <li><a href="#floatingpoint">Support for Floating Point data</a></li>
56
+ <li><a href="#ycc">Support for YCC formats</a></li>
57
+ <li><a href="#recycle">void LibRaw::recycle_datastream(void)</a></li>
58
+ <li><a href="#recycle">void LibRaw::recycle(void)</a></li>
59
+ <li><a href="#%7ELibRaw">LibRaw::~LibRaw()</a></li>
60
+ <li><a href="#strprogress">const char* LibRaw::strprogress(enum
61
+ LibRaw_progress code)</a></li>
62
+ <li><a href="#libraw_strerror">const char* LibRaw::strerror(int
63
+ errorcode)</a></li>
64
+ <li><a href="#callbacks">Setting Error Notification Functions and
65
+ other callbacks</a>
66
+ <ul>
67
+ <li><a href="#progress">User callback for progress
68
+ indication/interruption</a></li>
69
+ <li><a href="#exif">User callback for exif/makernotes parser
70
+ routines</a></li>
71
+ <li><a href="#dataerror">File Read Error Notifier</a></li>
72
+ </ul>
73
+ </li>
74
+ </ul>
75
+ </li>
76
+ <li><a href="#dcrawemu">Data Postprocessing: Emulation of dcraw Behavior</a>
77
+ <ul>
78
+ <li><a href="#dcraw_params">Parameter Setting</a></li>
79
+ <li><a href="#raw2image">int LibRaw::raw2image</a></li>
80
+ <li><a href="#free_image">void LibRaw::free_image</a></li>
81
+ <li><a href="#adjust_sizes_info_only">int
82
+ LibRaw::adjust_sizes_info_only(void)</a></li>
83
+ <li><a href="#dcraw_process">int LibRaw::dcraw_process(void)</a></li>
84
+ </ul>
85
+ </li>
86
+ <li><a href="#dcrawrite">Data Output to Files: Emulation of dcraw Behavior</a>
87
+ <ul>
88
+ <li><a href="#dcraw_ppm_tiff_writer">int
89
+ LibRaw::dcraw_ppm_tiff_writer(const char *outfile)</a></li>
90
+ <li><a href="#dcraw_thumb_writer">int LibRaw::dcraw_thumb_writer(const
91
+ char *thumbfile)</a></li>
92
+ </ul>
93
+ </li>
94
+ <li><a href="#memwrite">Copying unpacked data into memory buffer</a>
95
+ <ul>
96
+ <li><a href="#get_mem_image_format">void get_mem_image_format(int
97
+ *widthp, int *heightp, int *colorsp, int *bpp)</a></li>
98
+ <li><a href="#copy_mem_image">int LibRaw::copy_mem_image(void* scan0,
99
+ int stride, int bgr)</a></li>
100
+ <li><a href="#dcraw_make_mem_image">libraw_processed_image_t
101
+ *dcraw_make_mem_image(int *errorcode)</a></li>
102
+ <li><a href="#dcraw_make_mem_thumb">libraw_processed_image_t
103
+ *dcraw_make_mem_thumb(int *errorcode)</a></li>
104
+ <li><a href="#dcraw_clear_mem">void
105
+ LibRaw::dcraw_clear_mem(libraw_processed_image_t *)</a></li>
106
+ </ul>
107
+ </li>
108
+ <li><a href="#datastream">Input layer abstraction</a>
109
+ <ul>
110
+ <li><a href="LibRaw_abstract_datastream">class
111
+ LibRaw_abstract_datastream - abstract RAW read interface</a><a href="#datastream_methods">LibRaw_abstract_datastream
112
+ class methods</a>
113
+ <ul>
114
+ <li><a href="#datastream_methods_utility">Object verification</a></li>
115
+ <li><a href="#datastream_methods_read">Stream read and positioning</a></li>
116
+ <li><a href="#datastream_methods_other">Other methods</a></li>
117
+ </ul>
118
+ </li>
119
+ <li><a href="#datastream_derived">Derived input classes included in
120
+ LibRaw</a>
121
+ <ul>
122
+ <li><a href="#file_datastream">class LibRaw_file_datastream - file
123
+ input interface</a></li>
124
+ <li><a href="#bigfile_datastream">class LibRaw_file_datastream -
125
+ file input interface for large files</a></li>
126
+ <li><a href="#buffer_datastream">class LibRaw_buffer_datastream -
127
+ input from memory buffer</a></li>
128
+ </ul>
129
+ </li>
130
+ <li><a href="#own_datastreams">Own datastream derived classes</a>
131
+ <ul>
132
+ <li><a href="#substream">substream field: secondary input stream</a></li>
133
+ </ul>
134
+ </li>
135
+ </ul>
136
+ </li>
137
+ </ol>
138
+ <p><a name="LibRaw"></a></p>
139
+ <h2>LibRaw Objects</h2>
140
+ <p>The main LibRaw object (class) is created either without parameters or
141
+ with flags determining the object behavior.</p>
142
+ <pre>#include "libraw/libraw.h"<br>...<br><br> LibRaw ImageProcessor(unsigned int flags=0);<br>...<br> </pre>
143
+ <p>Flags (several flags are combined via operator |, i.e., bitwise OR):</p>
144
+ <ul>
145
+ <li><strong>LIBRAW_OPTIONS_NO_DATAERR_CALLBACK</strong>: do not set the
146
+ standard <a href="#callbacks">file read error handler</a> (standard
147
+ handler outputs the error report in stderr).</li>
148
+ </ul>
149
+ <p>Three groups of methods are used for image processing</p>
150
+ <ul>
151
+ <li><a href="#dataload">Data loading from the RAW file</a></li>
152
+ <li><a href="#dcrawemu">Postprocessing functions emulating the dcraw
153
+ behavior</a></li>
154
+ <li><a href="#dcrawrite">File output functions emulating the dcraw
155
+ behavior</a>.</li>
156
+ </ul>
157
+ <p>The results of processing are placed in the imgdata field of type <a href="API-datastruct.html">libraw_data_t</a>;
158
+ the same data set contains fields that control the postprocessing and
159
+ output.</p>
160
+ <p><a name="return"></a></p>
161
+ <h2>Returned Values</h2>
162
+ <p>All LibRaw API functions return an integer number in accordance with the
163
+ <a href="API-notes.html#errors">return code convention</a>. Please read
164
+ the descriptions of <a href="API-notes.html#errors">this convention</a>
165
+ and <a href="#callbacks">LibRaw behavior in cases of fatal errors</a>.</p>
166
+ <p><a name="dataload"></a></p>
167
+ <h2>Methods Loading Data from a File</h2>
168
+ <p><a name="open_datastream"></a></p>
169
+ <h3>int LibRaw::open_datastream(LibRaw_abstract_datastream *stream)</h3>
170
+ <p>Opens a datastream with RAW data, reads metadata (EXIF) from it, and
171
+ fills the following structures:</p>
172
+ <ul>
173
+ <li>imgdata.idata (<a href="API-datastruct.html#libraw_iparams_t">libraw_iparams_t</a>),</li>
174
+ <li>imgdata.sizes (<a href="API-datastruct.html#libraw_image_sizes_t">libraw_image_sizes_t</a>),</li>
175
+ <li>imgdata.color (<a href="API-datastruct.html#libraw_colordata_t">libraw_colordata_t</a>),</li>
176
+ <li>imgdata.other (<a href="API-datastruct.html#libraw_imgother_t">libraw_imgother_t</a>),
177
+ and</li>
178
+ <li>imgdata.thumbnail (<a href="API-datastruct.html#libraw_thumbnail_t">libraw_thumbnail_t</a>).</li>
179
+ </ul>
180
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
181
+ code convention</a>: positive if any system call has returned an error,
182
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
183
+ error list</a>) if there has been an error situation within LibRaw.</p>
184
+ <p>Before file opening, <a href="#recycle">recycle()</a> is always called;
185
+ hence, if several images are processed in the batch mode, there is no need
186
+ to call recycle() at the end of each processing cycle.</p>
187
+ <p><strong>Input data</strong>: pointer to object, derived from <a href="#datastream">LibRaw_abstract_datastream</a>
188
+ class. This object should be initialized and ready to read. This object
189
+ should be destroyed in calling application after use.</p>
190
+ <p><a name="open_file"></a></p>
191
+ <h3>int LibRaw::open_file(const char *filename[,INT64 bigfile_size])</h3>
192
+ <h3>Win32 only: int LibRaw::open_file(const wchar_t *filename[,INT64
193
+ bigfile_size])</h3>
194
+ <p>Creates an <a href="#file_datastream">LibRaw_file_datastream</a> object,
195
+ calls <a href="#open_datastream">open_datastream()</a>. If succeed, sets
196
+ internal flag which signals to destroy internal datastream object on <a href="#recycle">recycle()</a>.
197
+ On failure, just created file_datastream destroyed immediately.</p>
198
+ <p>Second optional parameter <strong>bigfile_size</strong> controls
199
+ background I/O interface used for file operations. For files smaller than
200
+ bigfile_size the <a href="#file_datastream">LibRaw_file_datastream</a>
201
+ will be used and the <a href="#bigfile_datastream">LibRaw_bigfile_datastream</a>
202
+ otherwise.</p>
203
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
204
+ code convention</a>: positive if any system call has returned an error,
205
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
206
+ error list</a>) if there has been an error situation within LibRaw.</p>
207
+ <p><a name="open_buffer"></a></p>
208
+ <h3>int LibRaw::open_buffer(void *buffer, size_t bufsize)</h3>
209
+ <p>Created an <a href="#buffer_datastream">LibRaw_buffer_datastream</a>
210
+ object, calls <a href="#open_datastream">open_datastream()</a>. If
211
+ succeed, sets internal flag which signals to destroy internal datastream
212
+ object on <a href="#recycle">recycle()</a>. On failure, just created
213
+ file_datastream destroyed immediately.</p>
214
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
215
+ code convention</a>: positive if any system call has returned an error,
216
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
217
+ error list</a>) if there has been an error situation within LibRaw.</p>
218
+ <p><a name="open_bayer"></a></p>
219
+ <h3>int LibRaw::open_bayer(unsigned char *data, unsigned datalen, ushort
220
+ _raw_width, ushort _raw_height, ushort _left_margin, ushort _top_margin,
221
+ ushort _right_margin, ushort _bottom_margin, unsigned char procflags,
222
+ unsigned char bayer_pattern, unsigned unused_bits, unsigned otherflags,
223
+ unsigned black_level)</h3>
224
+ <p>Parameters: </p>
225
+ <ul>
226
+ <li>data, datalen - buffer passed </li>
227
+ <li>_raw_width/_raw_height/*margin - image size and margins </li>
228
+ <li> procflags:
229
+ <ul>
230
+ <li>for 10-bit format:
231
+ <ul>
232
+ <li>1: "4 pixels in 5 bytes" packing is used </li>
233
+ <li>0: "6 pixels in 8 bytes" packing is used </li>
234
+ </ul>
235
+ </li>
236
+ <li>for 16-bit format:
237
+ <ul>
238
+ <li>1: Big-endian data </li>
239
+ </ul>
240
+ </li>
241
+ </ul>
242
+ </li>
243
+ <li>bayer_pattern: one of LIBRAW_OPENBAYER_RGGB,LIBRAW_OPENBAYER_BGGR,
244
+ LIBRAW_OPENBAYER_GRBG,LIBRAW_OPENBAYER_GBRG </li>
245
+ <li>unused_bits: count of upper zero bits </li>
246
+ <li>otherflags:
247
+ <ul>
248
+ <li>Bit 1 - filter (average neighbors) for pixels with values of zero
249
+ </li>
250
+ <li>Bits 2-4 - the orientation of the image (0=do not rotate, 3=180,
251
+ 5=90CCW, 6=90CW) </li>
252
+ </ul>
253
+ </li>
254
+ <li>black_level: file black level (it also may be specified via
255
+ imgdata.params) </li>
256
+ </ul>
257
+ See samples/openbayer_sample.cpp for usage sample (note, this sample is
258
+ 'sample only', suited for Kodak KAI-0340 sensor, you'll need change
259
+ open_bayer() params for your data).
260
+ <p><a name="unpack"></a></p>
261
+ <h3>int LibRaw::unpack(void)</h3>
262
+ <p>Unpacks the RAW files of the image, calculates the black level (not for
263
+ all formats). The results are placed in imgdata.image.</p>
264
+ <p>Data reading is sometimes (not frequently) affected by settings made in
265
+ imgdata.params (<a href="API-datastruct.html#libraw_output_params_t">libraw_output_params_t</a>);
266
+ see <a href="API-notes.html">API notes</a> for details.</p>
267
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
268
+ code convention</a>: positive if any system call has returned an error,
269
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
270
+ error list</a>) if there has been an error situation within LibRaw.</p>
271
+ <p><a name="unpack_thumb"></a><a name="unpack_thumb_ex"></a></p>
272
+ <h3>int LibRaw::unpack_thumb(void)</h3>
273
+ <h3>int LibRaw::unpack_thumb_ex(int i)</h3>
274
+ <p></p>
275
+ <p>unpack_thumb(): reads (or unpacks) the default (largest) image preview
276
+ (thumbnail), placing the result into the imgdata.thumbnail.thumb buffer.</p>
277
+ <p>unpack_thumb_ex(int i): reads i-th thumbnail (thumbnails list is
278
+ available in imgdata.thumbs_list structure).</p>
279
+ <p> JPEG previews are placed into this buffer without any changes (with the
280
+ header etc.). Other preview formats are placed into the buffer in the form
281
+ of the unpacked bitmap image (three components, 8 bits per component).<br>
282
+ The thumbnail format is written to the imgdata.thumbnail.tformat field;
283
+ for the possible values, see <a href="API-datastruct.html#LibRaw_thumbnail_formats">description
284
+ of constants and data structures</a>.</p>
285
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
286
+ code convention</a>: positive if any system call has returned an error,
287
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
288
+ error list</a>) if there has been an error situation within LibRaw.</p>
289
+ <h3></h3>
290
+ <p></p>
291
+ <p><a name="utility"></a></p>
292
+ <h2>Auxiliary Functions</h2>
293
+ <h3>Library version check</h3>
294
+ <p><a name="version"></a></p>
295
+ <h4>const char* LibRaw::version()</h4>
296
+ <p>Returns string representation of LibRaw version in
297
+ MAJOR.MINOR.PATCH-Status format (i.e. 0.6.0-Alpha2 or 0.6.1-Release).</p>
298
+ <p><a name="versionNumber"></a></p>
299
+ <h4>int LibRaw::versionNumber()</h4>
300
+ <p>Returns integer representation of LibRaw version. During LibRaw
301
+ development, the version number is always increase .</p>
302
+ <p><a name="LIBRAW_CHECK_VERSION"></a></p>
303
+ <h4>bool LIBRAW_CHECK_VERSION(major,minor,patch)</h4>
304
+ <p>Macro for version check in caller applications. Returns 'true' if current
305
+ library version is greater or equal to set in macro parameters. This macro
306
+ executes at runtime (not at compile time) and may be used for checking
307
+ version of dynamically loaded LibRaw (from DLL/shared library).</p>
308
+ <h3>List of supported RAW formats (cameras)</h3>
309
+ <p><a name="cameraCount"></a></p>
310
+ <h4>int LibRaw::cameraCount()</h4>
311
+ <p>Returns count of cameras supported.</p>
312
+ <p><a name="cameraList"></a></p>
313
+ <h4>const char** LibRaw::cameraList()</h4>
314
+ <p>Returns list of supported cameras. Latest item of list is set to NULL
315
+ (for easy printing).</p>
316
+ <p><a name="#set_rawspeed_camerafile"></a></p>
317
+ <h4>int LibRaw::set_rawspeed_camerafile(char *path_to_cameras_xml)</h4>
318
+ <p>(Only if LibRaw was built with RawSpeed support).</p>
319
+ <p>Loads XML file with RawSpeed camera description data (cameras.xml)
320
+ specified by path_to_cameras_xml. Returns 0 on success, nonzero on error.
321
+ <a name="get_decoder_info"></a></p>
322
+ <h4>int LibRaw::get_decoder_info(libraw_decoder_info_t *)</h4>
323
+ <p>The function fills <a href="API-datastruct.html#libraw_decoder_info_t">libraw_decoder_info_t</a>
324
+ structure by passed pointer with current raw decoder data.</p>
325
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
326
+ code convention</a>: positive if any system call has returned an error,
327
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
328
+ error list</a>) if there has been an error situation within LibRaw.</p>
329
+ <p><a name="unpack_function_name"></a></p>
330
+ <h3>const char* LibRaw::unpack_function_name()</h3>
331
+ <p>Returns function name of file unpacking function. Intended only for
332
+ LibRaw test suite designers to use in test coverage evaluation.</p>
333
+ <p><a name="setCancelFlag"></a></p>
334
+ <h4>void LibRaw::setCancelFlag()</h4>
335
+ <p>This call sets internal fast cancel flags. If set, current Raw decoder
336
+ will be terminated ASAP. This call is useful if you need to cancel all
337
+ LibRaw decoders in multithreaded program (e.g. for fast program
338
+ termination or just for cancel current processing).</p>
339
+ <p><a name="clearCancelFlag"></a></p>
340
+ <h4>void LibRaw::clearCancelFlag()</h4>
341
+ <p>This call clears internal fast cancel flags, so (early) terminated LibRaw
342
+ decoder may work again.</p>
343
+ <p><a name="COLOR"></a></p>
344
+ <h4>int LibRaw::COLOR(int row, int col)</h4>
345
+ <p>This call returns pixel color (color component number) in bayer pattern at
346
+ row,col. The returned value is in 0..3 range for 4-component Bayer (RGBG2,
347
+ CMYG and so on) and in 0..2 range for 3-color data.</p>
348
+ <p>Color indexes returned could be used as index in imgdata.idata.cdesc
349
+ string to get color 'name'.</p>
350
+ <p><a name="error_count"></a></p>
351
+ <h4>int LibRaw::error_count()</h4>
352
+ <p>This call returns count of non-fatal data errors (out of range, etc)
353
+ occurred in unpack() stage.</p>
354
+ <p><a name="subtract_black"></a></p>
355
+ <h4>int LibRaw::subtract_black()</h4>
356
+ <p>This call will subtract black level values from RAW data (for suitable
357
+ RAW data). <a href="API-datastruct.html#libraw_colordata_t">colordata.data_maximum</a>
358
+ and <strong>colordata.maximum</strong> and black level data (<a href="API-datastruct.html#libraw_colordata_t">colordata.black</a>
359
+ and colordata.cblack) will be adjusted too.</p>
360
+ <p>This call should be used if you postprocess RAW data by your own code.
361
+ LibRaw <a href="#dcrawemu">postprocessing functions</a> will call <strong>subtract_black()</strong>
362
+ by oneself.</p>
363
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
364
+ code convention</a>: positive if any system call has returned an error,
365
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
366
+ error list</a>) if there has been an error situation within LibRaw.</p>
367
+ <a name="adjust_to_raw_inset_crop"></a>
368
+ <h4>int LibRaw::adjust_to_raw_inset_crop(unsigned mask, float maxcrop =
369
+ 0.55f)</h4>
370
+ <p> Promotes imgdata.sizes.raw_inset_crops[] values to imgdata.sizes.*margin
371
+ and imgdata.sizes.width/height fields</p>
372
+ <p> Parameters<br>
373
+ mask: </p>
374
+ <ul>
375
+ <li>if bit 1 is set: prefer raw_inset_crops[1] </li>
376
+ <li>if bit 0 is set: prefer raw_inset_crops[0] </li>
377
+ </ul>
378
+ <p>maxcrop: limits crop to not less than (original width/height)*maxcrop; if
379
+ raw_inset_crops[i] data results in tighter crop, than this item is
380
+ ignored. </p>
381
+ <p>return value: index in raw_inset_crops[] used increased by one, so </p>
382
+ <ul>
383
+ <li>0: no changes made </li>
384
+ <li>1: [0]th data used </li>
385
+ <li>2: [1]th data used </li>
386
+ </ul>
387
+ <p>Note: this call SHOULD be used after LibRaw::unpack(), otherwise black
388
+ level calculation from masked area may be fooled resulting in wrong black
389
+ levels. </p>
390
+ <p><a name="floatingpoint"></a></p>
391
+ <h4>Support for floating point data</h4>
392
+ <p>Libraw can read floating point DNG files (no other RAW formats may use
393
+ floating point) with or without conversion to integer data. Floating point
394
+ values are stored in imgdata.rawdata buffers:</p>
395
+ <ul>
396
+ <li><span style="font-family: monospace;">float * float_image</span> (if
397
+ not NULL) points to floating point bayer data</li>
398
+ <li><span style="font-family: monospace;">float (*float3_image)[3]</span>
399
+ (if not NULL) points to floating point 3-channel buffer</li>
400
+ <li><span style="font-family: monospace;">float (*float4_image)[4]</span>
401
+ (if not NULL) points to floating point 4-channel buffer</li>
402
+ </ul>
403
+ <p>Function calls for floating point support:</p>
404
+ <ul>
405
+ <li><span style="font-family: monospace;">int LibRaw::is_floating_point();
406
+ </span>function will return 1 if file contains floating point data</li>
407
+ <li><span style="font-family: monospace;">int LibRaw::have_fpdata();</span>
408
+ function will return 1 if FP data has read (decoded) into memory and not
409
+ converted to integer data</li>
410
+ <li>int LibRaw::convertFloatToInt(float dmin=4096.f, float dmax=32767.f,
411
+ float dtarget = 16383.f) converts floating point data to integer. If
412
+ data maximum is out of dmin..dmax range, than data scaled to set maximum
413
+ to dtarget</li>
414
+ </ul>
415
+ <p><a name="ycc"></a></p>
416
+ <h4>Support for YCC formats (Canon sRAW/mRAW and Nikon Small NEF)</h4>
417
+ <pre> int LibRaw::is_sraw();<br> int LibRaw::is_nikon_sraw();<br> int LibRaw::sraw_midpoint()</pre>
418
+ <ul>
419
+ <li>is_sraw() call returns nonzero if current image is YCC-based.</li>
420
+ <li>is_nikon_sraw() call returns nonzero for Nikon Small NEF files</li>
421
+ <li>sraw_midpoint() call returns neutral (gray) point for color channels</li>
422
+ </ul>
423
+ <p><a name="recycle_datastream"></a></p>
424
+ <h4>void LibRaw::set_dng_host(void* p)</h4>
425
+ <p>If LibRaw is compiled with Adobe DNG SDK support and you wish to use this
426
+ support:</p>
427
+ <ul>
428
+ <li>you need to create own dng_host object</li>
429
+ <li>and pass it to LibRaw object using this function</li>
430
+ </ul>
431
+ <h4>void LibRaw::recycle_datastream(void)</h4>
432
+ <p>This call closes input datastream with associated data buffer and
433
+ unblocks opened file. <a name="recycle"></a></p>
434
+ <h3>void LibRaw::recycle(void)</h3>
435
+ <p>Frees the allocated data of LibRaw instance, enabling one to process the
436
+ next file using the same processor. Repeated calls of recycle() are quite
437
+ possible and do not conflict with anything.</p>
438
+ <p><a name="~LibRaw"></a></p>
439
+ <h3>LibRaw::~LibRaw()</h3>
440
+ <p>Destructor, which consists in calling recycle().</p>
441
+ <p><a name="strprogress"></a></p>
442
+ <h3>const char* LibRaw::strprogress(enum LibRaw_progress code)</h3>
443
+ <p>Converts progress stage code to description string (in English).</p>
444
+ <p><a name="libraw_strerror"></a></p>
445
+ <h3>const char* LibRaw::strerror(int errorcode)</h3>
446
+ <p>Analog of strerror(3) function: outputs the text descriptions of LibRaw
447
+ error codes (in English).</p>
448
+ <p><a name="callbacks"></a></p>
449
+ <h3>Setting Error Notification Functions</h3>
450
+ <p>In process of RAW conversion LibRaw can call user-setted callback. This
451
+ callback can be used for:</p>
452
+ <ul>
453
+ <li>Dynamic status update (progress bar and so on).</li>
454
+ <li>Cancel of processing (for example, user pressed Cancel button).</li>
455
+ </ul>
456
+ <p>Also, work of the library may cause two types of exceptional situations
457
+ that require notification of the calling application:</p>
458
+ <ul>
459
+ <li>Memory shortage</li>
460
+ <li>Data read error.</li>
461
+ </ul>
462
+ <p>An application may set its own callbacks that will be called in the cases
463
+ mentioned above to notify the user (or the calling program).</p>
464
+ <p><a name="progress"></a></p>
465
+ <h4>Progress indication/processing termination</h4>
466
+ <pre> typedef int (*progress_callback)(void *callback_data,enum LibRaw_progress stage, int iteration, int expected);<br> void LibRaw::set_progress_handler(progress_callback func,void *callback_data);<br> </pre>
467
+ <p>LibRaw user can set own callback which will be called 10-50 times during
468
+ RAW postprocessing by dcraw_process().</p>
469
+ <p>This callback may terminate current image processing by returning of
470
+ non-zero value. In such case all processing will be cancelled immediately
471
+ and all resources will be returned to system by recycle() call. Current
472
+ call of dcraw_process() will return error code
473
+ LIBRAW_CANCELLED_BY_CALLBACK.</p>
474
+ <p>Callback parameters:</p>
475
+ <dl>
476
+ <dt>void *callback_data</dt>
477
+ <dd>void*-pointer, passed as 2nd argument to set_progress_handler(). This
478
+ pointer should be used to pass additional data to callback (i.e. thread
479
+ local data and so on).</dd>
480
+ <dt>enum LibRaw_progress stage</dt>
481
+ <dd>Current processing stage. This number can be converted to string by
482
+ call to <a href="#strprogress">LibRaw::strprogress</a>. Not all
483
+ processing stages are covered by callback calls.</dd>
484
+ <dt>int iteration</dt>
485
+ <dd>Iteration number within current stage (from 0 to expected-1).</dd>
486
+ <dt>int expected</dt>
487
+ <dd>Expected number of iterations on current stage.</dd>
488
+ </dl>
489
+ <p>Callback should return value of: <strong>0</strong> for continue
490
+ processing and <strong>non-zero</strong> for immediate cancel of
491
+ processing.</p>
492
+ <p>&nbsp;</p>
493
+ <p>If LibRaw compiled with OpenMP support, iteration parameter may not
494
+ always increase within one stage. Out of order callback calls are
495
+ possible.</p>
496
+ <p>Callback code sample:</p>
497
+ <pre>int my_progress_callback(void *data,enum LibRaw_progress p,int iteration, int expected)<br>{<br> char *passed_string = (char *data);<br> printf("Callback: %s pass %d of %d, data passed: %s\n",libraw_strprogress(p),iteration,expected,passed_string);<br> if(timeout || key_pressed )<br> return 1; // cancel processing immediately<br> else<br> return 0; // can continue<br>}</pre>
498
+ <p><a name="exif"></a></p>
499
+ <h4>User-specified exif tag parser callback</h4>
500
+ <pre> typedef void (*exif_parser_callback) (void *context, int tag, int type, int len,unsigned int ord, void *ifp);<br> void LibRaw::set_exifparser_handler( exif_parser_callback cb,void *context);<br> </pre>
501
+ <p>Callback to be called on each parsed EXIF/Makernotes tag with parameters:</p>
502
+ <ul>
503
+ <li>context - pointer to context passed to set_exifparser_handler();</li>
504
+ <li>tag - EXIF/Makernotes tag value</li>
505
+ <li>type - TIFF(EXIF) tag type</li>
506
+ <li>len - tag length</li>
507
+ <li>ord - byte order (II or MM)</li>
508
+ <li>void *ifp - pointer to LibRaw_abstract_datastream, positioned to tag
509
+ data</li>
510
+ </ul>
511
+ <p><a name="dataerror"></a></p>
512
+ <h4>File Read Error Notifier</h4>
513
+ <pre> typedef void (*data_callback)(void *callback_data,const char *file, const int offset);<br> void LibRaw::set_dataerror_handler(data_callback func, void *callback_data); <br> </pre>
514
+ <p>The user can define his or her own function to be called in the case of
515
+ error in the input data. It is a void function receiving two parameters:</p>
516
+ <ul>
517
+ <li><strong>void *callback_data</strong> - void*-pointer, passed as 2nd
518
+ argument to set_progress_handler(). This pointer should be used to pass
519
+ additional data to callback (i.e. thread local data and so on).</li>
520
+ <li><strong>file</strong> is the name of the RAW file whose processing
521
+ evoked the file read error. This name <strong>can be NULL</strong> if
522
+ underlying data input layer does not know the name. So, if calling
523
+ application sets own callback, this callback should work with NULL file
524
+ name.</li>
525
+ <li><strong>offset</strong> is -1 at end-of-file (if LibRaw expects more
526
+ data) or a positive number equal to the file position (bytes from file
527
+ beginning) where the unpacking error occurred.</li>
528
+ </ul>
529
+ <p>The callback function is intended for information purposes: it notifies
530
+ the user or the program code that processing is impossible.</p>
531
+ <p>If the user does not set his or her own handler, the standard one (output
532
+ of error message in stderr) will be used.</p>
533
+ <p>One can set the null handler by passing NULL to set_dataerror_handler;
534
+ then no notifier function will be called. The same effect can be achieved
535
+ by creating a LibRaw object with the LIBRAW_OPTIONS_NO_DATAERR_CALLBACK
536
+ flag in the constructor.</p>
537
+ <p>In the case of error in the input data, processing of the current file is
538
+ terminated and a notifier is called; all allocated resources are freed,
539
+ and <a href="#recycle">recycle()</a> is performed. The current call will
540
+ return LIBRAW_IO_ERROR. <br>
541
+ At an attempt to continue data processing, all subsequent calls will
542
+ return LIBRAW_OUT_OF_ORDER_CALL. Processing of a new file may be started
543
+ in the usual way, by calling LibRaw::open_file().</p>
544
+ <p><a name="dcrawemu"></a></p>
545
+ <h2>Data Postprocessing: Emulation of dcraw Behavior</h2>
546
+ <p>Instead of writing one's own Bayer pattern postprocessing, one can use
547
+ the dcraw functions, which are called after the calls of open_file() +
548
+ unpack() /+ unpack_thumb()/</p>
549
+ <p><a name="dcraw_params"></a></p>
550
+ <h3>Parameter Setting</h3>
551
+ <p>Virtually all parameters that can be set through the dcraw command line
552
+ are specified by assigning values to fields of the <strong>LibRaw::imgdata.params</strong>
553
+ structure. The type of this structure is <strong>libraw_output_params_t</strong>;
554
+ all fields are listed and described in sufficient detail in the <a href="API-datastruct.html#libraw_output_params_t">description
555
+ of data structures</a>.</p>
556
+ <p><a name="raw2image"></a></p>
557
+ <h3>int LibRaw::raw2image</h3>
558
+ <p>This function allocates buffer for postprocessing (imgdata.image) and
559
+ fills it with data layout compatible with LibRaw 0.13/0.14 and below. If
560
+ the buffer is already allocated, it will be free()ed and allocated again.</p>
561
+ <p>This function should be called only if your code do postprocessing stage.
562
+ If you use LibRaw's postprocessing calls (see below) you don't need to
563
+ call raw2image().</p>
564
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">return
565
+ code convention</a>: positive if any system call has returned an error,
566
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
567
+ error list</a>) if there has been an error situation within LibRaw.</p>
568
+ <p><a name="free_image"></a></p>
569
+ <h3>void LibRaw::free_image</h3>
570
+ <p>This function releases the imgdata.image buffer allocated by raw2image();</p>
571
+ <p>This method should be called if current postprocessing results are not
572
+ needed by the program (e.g. already copied somewhere), but new
573
+ postprocessing calls (with another settings) are possible, so it is to
574
+ early to call <a href="#recycle">recycle()</a>.</p>
575
+ <p><a name="adjust_sizes_info_only"></a></p>
576
+ <h3>int LibRaw::adjust_sizes_info_only(void)</h3>
577
+ <p>The function calculates the correct size of the output image
578
+ (imgdata.sizes.iwidth and imgdata.sizes.iheight) for the following cases:</p>
579
+ <ul>
580
+ <li>Files from Fuji cameras (with a 45-degree rotation)</li>
581
+ <li>Files from cameras with non-square pixels</li>
582
+ <li>Images shot by a rotated camera.</li>
583
+ </ul>
584
+ <p>In the aforementioned cases, the function changes the fields of the image
585
+ output size; note that this change cannot be repeated again.</p>
586
+ <p><a name="dcraw_process"></a></p>
587
+ <h3>int LibRaw::dcraw_process(void)</h3>
588
+ <p>The function emulates the postprocessing capabilities available in <strong>dcraw</strong>.<br>
589
+ Called after calling LibRaw::unpack();</p>
590
+ <p>The entire functionality of dcraw (set via the field values in <a href="API-datastruct.html#libraw_output_params_t">imgdata.params</a>)
591
+ is supported, except for</p>
592
+ <ul>
593
+ <li>Dark frame subtraction</li>
594
+ <li>Work with bad pixels.</li>
595
+ </ul>
596
+ <p>The function is intended solely for demonstration and testing purposes;
597
+ it is assumed that its source code will be used in most real applications
598
+ as the reference material concerning the order of RAW data processing.</p>
599
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">error
600
+ code convention</a>: positive if any system call has returned an error,
601
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
602
+ error list</a>) if there has been an error situation within LibRaw.</p>
603
+ <p><a name="dcrawrite"></a></p>
604
+ <h2>Data Output to Files: Emulation of dcraw Behavior</h2>
605
+ <p>In spite of the abundance of libraries for file output in any formats,
606
+ LibRaw includes calls that emulate the file output provided by dcraw. This
607
+ is done primarily for easier verification of library work: the resultant
608
+ files must be binary identical.</p>
609
+ <p><a name="dcraw_ppm_tiff_writer"></a></p>
610
+ <h3>int LibRaw::dcraw_ppm_tiff_writer(const char *outfile)</h3>
611
+ <p>The function outputs the postprocessing results to a file in the PPM/PGM
612
+ or TIFF format (the format is set via imgdata.params.output_tiff). The
613
+ results are binary identical to those provided by dcraw.</p>
614
+ <p>If "-" is passed as outfile, the function will write to standard output
615
+ (stdout).</p>
616
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">error
617
+ code convention</a>: positive if any system call has returned an error,
618
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
619
+ error list</a>) if there has been an error situation within LibRaw.</p>
620
+ <p><a name="dcraw_thumb_writer"></a></p>
621
+ <h3>int LibRaw::dcraw_thumb_writer(const char *thumbfile)</h3>
622
+ <p>Writes the thumbnail to a file in the PPM format for bitmap thumbnails
623
+ and in the JPEG format for JPEG thumbnails, i.e., in the format completely
624
+ identical to the results provided by dcraw.</p>
625
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">error
626
+ code convention</a>: positive if any system call has returned an error,
627
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
628
+ error list</a>) if there has been an error situation within LibRaw.</p>
629
+ <p><a name="memwrite"></a></p>
630
+ <h2>Copying unpacked data into memory buffer</h2>
631
+ <p>There is several function calls for store unpacked data into memory
632
+ buffer (after using dcraw_process() and so on):</p>
633
+ <ul>
634
+ <li><strong>get_mem_image_format</strong> - get resulting bitmap size and
635
+ bit depth.</li>
636
+ <li><strong>copy_mem_image</strong> - copy postprocessed data into some
637
+ memory buffer with different color order and line stride.</li>
638
+ <li><strong>dcraw_make_mem_image</strong> - store processed image data
639
+ into allocated buffer;</li>
640
+ <li><strong>dcraw_make_mem_thumb</strong> - store extracted thumbnail into
641
+ buffer as JPEG-file image (for most cameras) or as RGB-bitmap.</li>
642
+ </ul>
643
+ <p>For usage primer see samples/mem_image.c sample.</p>
644
+ <p>&nbsp;</p>
645
+ <p><a name="get_mem_image_format"></a></p>
646
+ <h3>void get_mem_image_format(int *widthp, int *heightp, int *colorsp, int
647
+ *bpp) const - return processing bitmap size</h3>
648
+ <p>This function returns size of postprocessed image:</p>
649
+ <ul>
650
+ <li>Image width is returned in *widthp;</li>
651
+ <li>Bitmap height is returned in *heightp;</li>
652
+ <li>Image color count is returned in *colorsp;</li>
653
+ <li>Bits per pixel (8 or 16) is returned in *bpp;</li>
654
+ </ul>
655
+ <p><a name="copy_mem_image"></a></p>
656
+ <h3>int LibRaw::copy_mem_image(void* scan0, int stride, int bgr) - copies
657
+ postprocessed bitmap data into buffer</h3>
658
+ <p>Function parameters:</p>
659
+ <ul>
660
+ <li>void *scan0 - pointer to buffer to copy data to. The buffer should be
661
+ at least stride*image_height bytes;</li>
662
+ <li>int stride - stride of each other image line (row) in bytes. Usually
663
+ image_width*(bit_per_pixel/8)*image_colors, but may be more if you wish
664
+ to align image rows to, for example, 8 or 16 or 32 bytes to make CPU
665
+ more happy.</li>
666
+ <li>int bgr - pixel copy order. RGB if bgr==0 and BGR otherwise.</li>
667
+ </ul>
668
+ <p>The function returns an integer number in accordance with the <a href="API-notes.html#errors">error
669
+ code convention</a>: positive if any system call has returned an error,
670
+ negative (from the <a href="API-datastruct.html#LibRaw_errors">LibRaw
671
+ error list</a>) if there has been an error situation within LibRaw.</p>
672
+ <p><a name="dcraw_make_mem_image"></a></p>
673
+ <h3>libraw_processed_image_t *dcraw_make_mem_image(int *errorcode=NULL) -
674
+ store unpacked and processed image into memory buffer as RGB-bitmap</h3>
675
+ <p>This function allocates memory buffer and stores unpacked-preprocessed
676
+ image into this buffer. Function returns allocated structure <a href="API-datastruct.html#libraw_processed_image_t">libraw_processed_image_t</a>
677
+ with filled fields. Always returns data as RGB bitmap (i.e. <strong>type</strong>
678
+ field is equal to LIBRAW_IMAGE_BITMAP).</p>
679
+ <p>dcraw_process() should be called before dcraw_make_mem_image();</p>
680
+ <p>Returns NULL in case of an error. If caller has passed not-NULL value as
681
+ errorcode parameter, than *errorcode will be set to error code according
682
+ to <a href="API-notes.html#errors">error code convention</a>.</p>
683
+ <p><strong>NOTE!</strong> Memory, allocated for return value will not be
684
+ fried at destructor or <strong>LibRaw::recycle</strong> calls. Caller of
685
+ dcraw_make_mem_image should free this memory by call to <a href="#dcraw_clear_mem">LibRaw::dcraw_clear_mem()</a>.</p>
686
+ <p><a name="dcraw_make_mem_thumb"></a></p>
687
+ <h3>libraw_processed_image_t *dcraw_make_mem_thumb(int *errorcode=NULL) -
688
+ store unpacked thumbnail into memory buffer</h3>
689
+ <p>This function allocates memory buffer and stores thumbnail data in it.
690
+ Function returns allocated structure <a href="API-datastruct.html#libraw_processed_image_t">libraw_processed_image_t</a>
691
+ with filled fields. For most RAW images allocated structure will contains
692
+ JPEG image (i.e. <strong>type</strong> field is equal to
693
+ LIBRAW_IMAGE_JPEG). For some cameras with RGB-bitmap thumbnail (Kodak
694
+ SLRs) returned structure contains RGB bitmap (<strong>type</strong> field
695
+ is equal to LIBRAW_IMAGE_JPEG, see structure description for details).</p>
696
+ <p>unpack_thumb() should be called before dcraw_make_mem_thumb();</p>
697
+ <p>Returns NULL in case of an error. If caller has passed not-NULL value as
698
+ errorcode parameter, than *errorcode will be set to error code according
699
+ to � <a href="API-notes.html#errors">error code convention</a>.</p>
700
+ <p><strong>NOTE!</strong> Memory, allocated for return value will not be
701
+ fried at destructor or <strong>LibRaw::recycle</strong> calls. Caller of
702
+ dcraw_make_mem_image should free this memory by call to <a href="#dcraw_clear_mem">LibRaw::dcraw_clear_mem()</a>.</p>
703
+ <h3>void LibRaw::dcraw_clear_mem(libraw_processed_image_t *)</h3>
704
+ <p>This function will free the memory allocated by <strong>dcraw_make_mem_image</strong>
705
+ or <strong>dcraw_make_mem_thumb</strong>.</p>
706
+ <p>This is static class member, so call syntax should be
707
+ LibRaw::dcraw_clear_mem(...).</p>
708
+ <p>This call translates directly to free() system function, but it is better
709
+ to use dcraw_clear_mem because LibRaw (DLL) may be compiled with memory
710
+ manager other than in calling application.</p>
711
+ <p><a name="datastream"></a></p>
712
+ <h2>Input layer abstraction</h2>
713
+ <p><a name="LibRaw_abstract_datastream"></a></p>
714
+ <h3>class LibRaw_abstract_datastream - abstract RAW read interface</h3>
715
+ <p>LibRaw reads RAW-data by calling (virtual) methods of C++ object derived
716
+ from <strong>LibRaw_abstract_datastream</strong>. This C++ class does not
717
+ implement any read, but defines interface to be called. Call to base class
718
+ methods always results in error.</p>
719
+ <p><a name="datastream_methods"></a></p>
720
+ <h4>LibRaw_abstract_datastream class methods</h4>
721
+ <p><a name="datastream_methods_utility"></a></p>
722
+ <h5>Object verification</h5>
723
+ <dl>
724
+ <dt><strong> virtual int valid()</strong></dt>
725
+ <dd>Checks input datastream validity. Returns 1 on valid stream and 0 if
726
+ datastream was created on non-valid input parameters (wrong filename for
727
+ file stream and so on).</dd>
728
+ </dl>
729
+ <p><a name="datastream_methods_read"></a></p>
730
+ <h5>Stream read and positioning</h5>
731
+ <p>This group of methods implements file object (FILE*) semantics.</p>
732
+ <dl>
733
+ <dt><strong>virtual int read(void * ptr,size_t size, size_t nmemb)</strong></dt>
734
+ <dd>Similar to fread(ptr,size,nmemb,file).</dd>
735
+ <dt><strong>virtual int seek(off_t o, int whence)</strong></dt>
736
+ <dd>Similar to fseek(file,o,whence).</dd>
737
+ <dt><strong>virtual int tell(</strong></dt>
738
+ <dd>Similar to ftell(file).</dd>
739
+ <dt><strong>virtual int get_char()</strong></dt>
740
+ <dd>Similar to getc(file)/fgetc(file).</dd>
741
+ <dt><strong>virtual char* gets(char *s, int n)</strong></dt>
742
+ <dd>Similar to fgets(s,n,file).</dd>
743
+ <dt><strong>virtual int eof()</strong></dt>
744
+ <dd>Similar to feof(file).</dd>
745
+ <dt><strong>virtual int scanf_one(const char *fmt, void *val)</strong></dt>
746
+ <dd>Simplified variant of fscanf(file,fmt,val): format string is always
747
+ contains one argument to read. So, variable args call is not needed and
748
+ only one pointer to data passed.</dd>
749
+ <dt><strong> virtual int jpeg_src(void * p);</strong></dt>
750
+ <dd>Initializes read structures in j_decompress_ptr object passed as *p.
751
+ This object is used by libjpeg for JPEG data reading from datastream.
752
+ <p>Returns -1 on error and 0 on success.</p>
753
+ </dd>
754
+ <dt><strong> virtual void * make_jas_stream();</strong></dt>
755
+ <dd>Creates LibJasper input stream (for JPEG2000 decoding).
756
+ <p>returns NULL on error or data pointer on success.</p>
757
+ </dd>
758
+ </dl>
759
+ <p><a name="datastream_methods_other"></a></p>
760
+ <h5>Other methods</h5>
761
+ <p>This group of methods includes several supplementary calls. These calls
762
+ are used to temporary switch to another data stream (file and/or memory
763
+ buffer).</p>
764
+ <dl>
765
+ <dt><strong>virtual const char* fname()</strong></dt>
766
+ <dd>Returns name of opened file if datastream object knows it (for
767
+ example, <strong>LibRaw_file_datastream</strong> used). Filename used
768
+ in:
769
+ <ul>
770
+ <li>error notification callbacks;</li>
771
+ <li>generation of filename of JPEG-file with metadata when needed
772
+ (i.e. cameras with 'Diag RAW hack').</li>
773
+ </ul>
774
+ </dd>
775
+ <dt><strong>virtual int subfile_open(const char *fn)</strong></dt>
776
+ <dd>This call temporary switches input to file <strong>fn</strong>.
777
+ Returns 0 on success and error code on error.<br>
778
+ The function used to read metadata from external JPEG file (on cameras
779
+ with "Diag RAW hack"). <br>
780
+ This call is not implemented for <a href="#buffer_datastream">LibRaw_buffer_datastream</a>,
781
+ so external JPEG processing is not possible when buffer datastream used.
782
+ <br>
783
+ This function should be implemented in real input class, base class call
784
+ always return error. <br>
785
+ Working implementation sample can be found in <a href="#file_datastream">LibRaw_file_datastream</a>
786
+ implementation in <strong>libraw/libraw_datastream.h</strong> file.</dd>
787
+ <dt><strong> virtual void subfile_close()</strong></dt>
788
+ <dd>This call switches input stream from temporary open file back to main
789
+ data stream.</dd>
790
+ <dt><strong> virtual int tempbuffer_open(void *buf, size_t size)</strong></dt>
791
+ <dd>This call temporary switches input to <a href="#buffer_datastream">LibRaw_buffer_datastream</a>
792
+ object, created from <strong>buf</strong>.<br>
793
+ This method is needed for Sony encrypted metadata parser.
794
+ <p>This call implemented in base class (<strong>LibRaw_abstract_datastream</strong>),
795
+ there is no need to reimplement in in derived classes.<br>
796
+ Possible activity of temporary datastream requires very accurate
797
+ programming when implementing datastreams derived from base <strong>LibRaw_abstract_datastream</strong>.
798
+ See <a href="#substream">below</a> for more details.</p>
799
+ </dd>
800
+ <dt><strong> virtual void tempbuffer_close()</strong></dt>
801
+ <dd>This call switch input back from temporary datastream to main stream.
802
+ This call implemented in base <strong>LibRaw_abstract_datastream</strong>
803
+ class.</dd>
804
+ </dl>
805
+ <p><a name="datastream_derived"></a></p>
806
+ <h3>Derived input classes included in LibRaw</h3>
807
+ <p>There is three "standard" input classes in LibRaw distribution:</p>
808
+ <ul>
809
+ <li><a href="#file_datastream">LibRaw_file_datastream</a> implements input
810
+ from file (in filesystem).</li>
811
+ <li><a href="#bigfile_datastream">LibRaw_bigfile_datastream</a> slower
812
+ I/O, but files larger than 2Gb are supported.</li>
813
+ <li><a href="#buffer_datastream">LibRaw_buffer_datastream</a> implements
814
+ input from memory buffer.</li>
815
+ </ul>
816
+ <p>LibRaw C++ interface users can implement their own input classes and use
817
+ them via <a href="#open_datastream">LibRaw::open_datastream</a> call.
818
+ Requirements and implementation specifics are described below.</p>
819
+ <p><a name="file_datastream"></a></p>
820
+ <h4>class LibRaw_file_datastream - file input interface</h4>
821
+ <p>This class implements input from file.</p>
822
+ <p><strong>Class methods:</strong></p>
823
+ <dl>
824
+ <dt><strong> LibRaw_file_datastream(const char *fname) </strong></dt>
825
+ <dd>This constructor creates <strong>LibRaw_file_datastream</strong>
826
+ object from file <strong>fname</strong>.<br>
827
+ Unfortunately, C++ constructor cannot return an error. So if bad
828
+ filename passed (e.g. nonexistent file) object is created as non-valid
829
+ (valid() call returns zero).</dd>
830
+ </dl>
831
+ <p>All other class methods are <a href="#datastream_methods">described
832
+ above</a>.<br>
833
+ This class implements all possible methods, including fname() and
834
+ subfile_open().</p>
835
+ <p><a name="bigfile_datastream"></a></p>
836
+ <h4>class LibRaw_bigfile_datastream - file input interface</h4>
837
+ <p>This class implements input from file.</p>
838
+ <p><strong>Class methods:</strong></p>
839
+ <dl>
840
+ <dt><strong> LibRaw_bigfile_datastream(const char *fname) </strong></dt>
841
+ <dd>This constructor creates <strong>LibRaw_bigfile_datastream</strong>
842
+ object from file <strong>fname</strong>.<br>
843
+ Unfortunately, C++ constructor cannot return an error. So if bad
844
+ filename passed (e.g. nonexistent file) object is created as non-valid
845
+ (valid() call returns zero).</dd>
846
+ </dl>
847
+ <p>The difference between <strong>file</strong> and <strong>bigfile</strong>
848
+ datastreams are obvious from class name: bigfile one supports large files
849
+ (more than 2Gb) on all supported systems. File one uses streambuf
850
+ interface which is limited to 2Gb on many systems.</p>
851
+ <p>All other class methods are <a href="#datastream_methods">described
852
+ above</a>.<br>
853
+ This class implements all possible methods, including fname() and
854
+ subfile_open().</p>
855
+ <p><a name="buffer_datastream"></a></p>
856
+ <h4>class LibRaw_buffer_datastream - memory buffer input interface</h4>
857
+ <p>This class implements input from memory buffer.</p>
858
+ <p><strong>Class methods:</strong></p>
859
+ <dl>
860
+ <dt><strong> LibRaw_buffer_datastream(void *buffer, size_t bsize)</strong></dt>
861
+ <dd>This constructor creates datastream object from <strong>buffer</strong>
862
+ with size <strong>bsize</strong>.<br>
863
+ It is not possibly to verify the pointer passed, so buffer address is
864
+ checked against 0 and -1 only.</dd>
865
+ </dl>
866
+ <p>All other class methods are <a href="#datastream_methods">described
867
+ above</a>.<br>
868
+ This class does not implement fname() and subfile_open() calls, so
869
+ external JPEG metadata parsing is not possible.</p>
870
+ <p><a name="own_datastreams"></a></p>
871
+ <h3>Own datastream derived classes</h3>
872
+ <p>To create own read interface LibRaw user should implement C++ class
873
+ derived from <strong>LibRaw_abstract_datastream</strong> with all read
874
+ methods.<br>
875
+ LibRaw standard implementations may be used as reference. See <strong>libraw/libraw_datastream.h</strong>
876
+ file for details (all standard LibRaw input classes are implemented using
877
+ inline functions only).</p>
878
+ <p><a name="substream"></a></p>
879
+ <p><a href="index.html">[back to Index]</a></p>
880
+ </body>
881
+ </html>