diff --git a/.github/workflows/libraw.yml b/.github/workflows/libraw.yml new file mode 100644 index 00000000000..0c54629e158 --- /dev/null +++ b/.github/workflows/libraw.yml @@ -0,0 +1,41 @@ +name: libraw +on: + push: + paths: + - libraw/** + - .github/workflows/libraw.yml + pull_request: + paths: + - libraw/** + - .github/workflows/libraw.yml + workflow_dispatch: +env: + CI_DEPLOY_MODULE: ${{ github.workflow }} + CI_DEPLOY_PLATFORM: ${{ github.job }} + CI_DEPLOY_SETTINGS: ${{ secrets.CI_DEPLOY_SETTINGS }} + CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }} + CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }} + STAGING_REPOSITORY: ${{ secrets.STAGING_REPOSITORY }} +jobs: + linux-x86_64: + runs-on: ubuntu-20.04 + container: centos:7 + steps: + - uses: bytedeco/javacpp-presets/.github/actions/deploy-centos@actions + macosx-arm64: + runs-on: macos-11 + steps: + - uses: bytedeco/javacpp-presets/.github/actions/deploy-macosx@actions + macosx-x86_64: + runs-on: macos-11 + steps: + - uses: bytedeco/javacpp-presets/.github/actions/deploy-macosx@actions + windows-x86_64: + runs-on: windows-2019 + steps: + - uses: bytedeco/javacpp-presets/.github/actions/deploy-windows@actions + redeploy: + needs: [linux-x86_64, macosx-arm64, macosx-x86_64, windows-x86_64] + runs-on: ubuntu-20.04 + steps: + - uses: bytedeco/javacpp-presets/.github/actions/redeploy@actions diff --git a/CHANGELOG.md b/CHANGELOG.md index 26c9a98e826..3710ee6ce19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ + * Add presets for LibRaw 0.20.2 ([pull #1211](https://github.com/bytedeco/javacpp-presets/pull/1211)) + ### November 2, 2022 version 1.5.8 * Fix mapping of `torch::ExpandingArrayWithOptionalElem` in presets for PyTorch ([issue #1250](https://github.com/bytedeco/javacpp-presets/issues/1250)) * Disable OpenMP for Tesseract to work around performance issues ([pull #1201](https://github.com/bytedeco/javacpp-presets/pull/1201)) diff --git a/README.md b/README.md index bf1330c1347..c28f31974ea 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ JavaCPP Presets [![llvm](https://github.com/bytedeco/javacpp-presets/workflows/llvm/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Allvm) [![libffi](https://github.com/bytedeco/javacpp-presets/workflows/libffi/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Alibffi) [![libpostal](https://github.com/bytedeco/javacpp-presets/workflows/libpostal/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Alibpostal) +[![libraw](https://github.com/bytedeco/javacpp-presets/workflows/libraw/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Alibraw) [![leptonica](https://github.com/bytedeco/javacpp-presets/workflows/leptonica/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Aleptonica) [![tesseract](https://github.com/bytedeco/javacpp-presets/workflows/tesseract/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Atesseract) [![caffe](https://github.com/bytedeco/javacpp-presets/workflows/caffe/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Acaffe) @@ -209,6 +210,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * LLVM 15.0.x http://llvm.org/releases/download.html * libffi 3.4.x https://github.com/libffi/libffi * libpostal 1.1 https://github.com/openvenues/libpostal + * LibRaw 0.20.2 https://www.libraw.org/download * Leptonica 1.82.x http://www.leptonica.org/download.html * Tesseract 5.2.x https://github.com/tesseract-ocr/tesseract * Caffe 1.0 https://github.com/BVLC/caffe diff --git a/cppbuild.sh b/cppbuild.sh index 1846f54e733..7e490eb036d 100755 --- a/cppbuild.sh +++ b/cppbuild.sh @@ -158,7 +158,7 @@ function sedinplace { } if [[ -z ${PROJECTS:-} ]]; then - PROJECTS=(opencv ffmpeg flycapture spinnaker libdc1394 libfreenect libfreenect2 librealsense librealsense2 videoinput artoolkitplus chilitags flandmark arrow hdf5 hyperscan lz4 mkl mkl-dnn dnnl openblas arpack-ng cminpack fftw gsl cpython numpy scipy gym llvm libpostal leptonica tesseract caffe openpose cuda nvcodec opencl mxnet pytorch tensorflow tensorflow-lite tensorrt tritonserver depthai ale onnx ngraph onnxruntime tvm bullet liquidfun qt skia cpu_features modsecurity systems) + PROJECTS=(opencv ffmpeg flycapture spinnaker libdc1394 libfreenect libfreenect2 librealsense librealsense2 videoinput artoolkitplus chilitags flandmark arrow hdf5 hyperscan lz4 mkl mkl-dnn dnnl openblas arpack-ng cminpack fftw gsl cpython numpy scipy gym llvm libpostal libraw leptonica tesseract caffe openpose cuda nvcodec opencl mxnet pytorch tensorflow tensorflow-lite tensorrt tritonserver depthai ale onnx ngraph onnxruntime tvm bullet liquidfun qt skia cpu_features modsecurity systems) fi for PROJECT in ${PROJECTS[@]}; do diff --git a/libraw/COPYRIGHT b/libraw/COPYRIGHT new file mode 100644 index 00000000000..4406299ea44 --- /dev/null +++ b/libraw/COPYRIGHT @@ -0,0 +1,27 @@ + ** LibRaw: Raw images processing library ** + +Copyright (C) 2008-2020 LibRaw LLC (http://www.libraw.org, info@libraw.org) + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + +LibRaw uses code from dcraw.c -- Dave Coffin's raw photo decoder, +dcraw.c is copyright 1997-2018 by Dave Coffin, dcoffin a cybercom o net. +LibRaw do not use RESTRICTED code from dcraw.c + +LibRaw uses DCB demosaic and FBDD denoise licensed under BSD-like 3-clause license +DCB and FBDD are Copyright (C) 2010, Jacek Gozdz (cuniek@kft.umcs.lublin.pl) + +LibRaw uses X3F library to unpack Foveon Files, licensed BSD-style license +Copyright (c) 2010, Roland Karlsson (roland@proxel.se) +All rights reserved. + +LibRaw uses pieces of code from Adobe DNG SDK 1.4, +Copyright (c) 2005 Adobe Systems Incorporated, licensed under MIT license + diff --git a/libraw/LICENSE.CDDL b/libraw/LICENSE.CDDL new file mode 100644 index 00000000000..8ee560c09af --- /dev/null +++ b/libraw/LICENSE.CDDL @@ -0,0 +1,340 @@ +COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + +1. Definitions. + +1.1. Contributor means each individual or entity that creates or +contributes to the creation of Modifications. + +1.2. Contributor Version means the combination of the Original +Software, prior Modifications used by a Contributor (if any), +and the Modifications made by that particular Contributor. + +1.3. Covered Software means (a) the Original Software, or (b) +Modifications, or (c) the combination of files containing +Original Software with files containing Modifications, in each +case including portions thereof. + +1.4. Executable means the Covered Software in any form other +than Source Code. + +1.5. Initial Developer means the individual or entity that first +makes Original Software available under this License. + +1.6. Larger Workmeans a work which combines Covered Software or +portions thereof with code not governed by the terms of this +License. + +1.7. License means this document. + +1.8. Licensable means having the right to grant, to the maximum +extent possible, whether at the time of the initial grant or +subsequently acquired, any and all of the rights conveyed herein. + +1.9. Modifications means the Source Code and Executable form of +any of the following: A. Any file that results from an addition +to, deletion from or modification of the contents of a file +containing Original Software or previous Modifications; B. Any +new file that contains any part of the Original Software or +previous Modification; or C. Any new file that is contributed or +otherwise made available under the terms of this License. + +1.10. Original Software means the Source Code and Executable +form of computer software code that is originally released under +this License. + +1.11. Patent Claims means any patent claim(s), now owned or +hereafter acquired, including without limitation, method, +process, and apparatus claims, in any patent Licensable by +grantor. + +1.12. Source Code means (a) the common form of computer software +code in which modifications are made and (b) associated +documentation included in or with such code. + +1.13. You (or Your) means an individual or a legal entity +exercising rights under, and complying with all of the terms of, +this License. For legal entities, You includes any entity which +controls, is controlled by, or is under common control with You. +For purposes of this definition, control means (a) the power, +direct or indirect, to cause the direction or management of such +entity, whether by contract or otherwise, or (b) ownership of +more than fifty percent (50%) of the outstanding shares or +beneficial ownership of such entity. + +2. License Grants. + +2.1. The Initial Developer Grant. Conditioned upon Your +compliance with Section 3.1 below and subject to third party +intellectual property claims, the Initial Developer hereby +grants You a world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Initial Developer, to use, reproduce, +modify, display, perform, sublicense and distribute the Original +Software (or portions thereof), with or without Modifications, +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using or +selling of Original Software, to make, have made, use, practice, +sell, and offer for sale, and/or otherwise dispose of the +Original Software (or portions thereof); + +(c) The licenses granted in Sections 2.1(a) and (b) are +effective on the date Initial Developer first distributes or +otherwise makes the Original Software available to a third party +under the terms of this License; + +(d) Notwithstanding Section 2.1(b) above, no patent license is +granted: (1) for code that You delete from the Original +Software, or (2) for infringements caused by: (i) the +modification of the Original Software, or (ii) the combination +of the Original Software with other software or devices. + +2.2. Contributor Grant. Conditioned upon Your compliance with +Section 3.1 below and subject to third party intellectual +property claims, each Contributor hereby grants You a +world-wide, royalty-free, non-exclusive license: + +(a) under intellectual property rights (other than patent or +trademark) Licensable by Contributor to use, reproduce, modify, +display, perform, sublicense and distribute the Modifications +created by such Contributor (or portions thereof), either on an +unmodified basis, with other Modifications, as Covered Software +and/or as part of a Larger Work; and + +(b) under Patent Claims infringed by the making, using, or +selling of Modifications made by that Contributor either alone +and/or in combination with its Contributor Version (or portions +of such combination), to make, use, sell, offer for sale, have +made, and/or otherwise dispose of: (1) Modifications made by +that Contributor (or portions thereof); and (2) the combination +of Modifications made by that Contributor with its Contributor +Version (or portions of such combination). + +(c) The licenses granted in Sections 2.2(a) and 2.2(b) +areeffective on the date Contributor first distributes or +otherwise makes the Modifications available to a third party. + +(d) Notwithstanding Section 2.2(b) above, no patent license is +granted: (1) for any code that Contributor has deleted from the +Contributor Version; (2) for infringements caused by: (i) third +party modifications of Contributor Version, or (ii) the +combination of Modifications made by that Contributor with other +software (except as part of the Contributor Version) or other +devices; or (3) under Patent Claims infringed by Covered +Software in the absence of Modifications made by that +Contributor. + +3. Distribution Obligations. + +3.1. Availability of Source Code. Any Covered Software that You +distribute or otherwise make available in Executable form must +also be made available in Source Code form and that Source Code +form must be distributed only under the terms of this License. +You must include a copy of this License with every copy of the +Source Code form of the Covered Software You distribute or +otherwise make available. You must inform recipients of any such +Covered Software in Executable form as to how they can obtain +such Covered Software in Source Code form in a reasonable manner +on or through a medium customarily used for software exchange. + +3.2. Modifications. The Modifications that You create or to +which You contribute are governed by the terms of this License. +You represent that You believe Your Modifications are Your +original creation(s) and/or You have sufficient rights to grant +the rights conveyed by this License. + +3.3. Required Notices. You must include a notice in each of Your +Modifications that identifies You as the Contributor of the +Modification. You may not remove or alter any copyright, patent +or trademark notices contained within the Covered Software, or +any notices of licensing or any descriptive text giving +attribution to any Contributor or the Initial Developer. + +3.4. Application of Additional Terms. You may not offer or +impose any terms on any Covered Software in Source Code form +that alters or restricts the applicable version of this License +or the recipients rights hereunder. You may choose to offer, and +to charge a fee for, warranty, support, indemnity or liability +obligations to one or more recipients of Covered +Software. However, you may do so only on Your own behalf, and +not on behalf of the Initial Developer or any Contributor. You +must make it absolutely clear that any such warranty, support, +indemnity or liability obligation is offered by You alone, and +You hereby agree to indemnify the Initial Developer and every +Contributor for any liability incurred by the Initial Developer +or such Contributor as a result of warranty, support, indemnity +or liability terms You offer. + +3.5. Distribution of Executable Versions. You may distribute the +Executable form of the Covered Software under the terms of this +License or under the terms of a license of Your choice, which +may contain terms different from this License, provided that You +are in compliance with the terms of this License and that the +license for the Executable form does not attempt to limit or +alter the recipients rights in the Source Code form from the +rights set forth in this License. If You distribute the Covered +Software in Executable form under a different license, You must +make it absolutely clear that any terms which differ from this +License are offered by You alone, not by the Initial Developer +or Contributor. You hereby agree to indemnify the Initial +Developer and every Contributor for any liability incurred by +the Initial Developer or such Contributor as a result of any +such terms You offer. + +3.6. Larger Works. You may create a Larger Work by combining +Covered Software with other code not governed by the terms of +this License and distribute the Larger Work as a single product. +In such a case, You must make sure the requirements of this +License are fulfilled for the Covered Software. + +4. Versions of the License. + +4.1. New Versions. Sun Microsystems, Inc. is the initial license +steward and may publish revised and/or new versions of this +License from time to time. Each version will be given a +distinguishing version number. Except as provided in Section +4.3, no one other than the license steward has the right to +modify this License. + +4.2. Effect of New Versions. You may always continue to use, +distribute or otherwise make the Covered Software available +under the terms of the version of the License under which You +originally received the Covered Software. If the Initial +Developer includes a notice in the Original Software prohibiting +it from being distributed or otherwise made available under any +subsequent version of the License, You must distribute and make +the Covered Software available under the terms of the version of +the License under which You originally received the Covered +Software. Otherwise, You may also choose to use, distribute or +otherwise make the Covered Software available under the terms of +any subsequent version of the License published by the license +steward. + +4.3. Modified Versions. When You are an Initial Developer and +You want to create a new license for Your Original Software, You +may create and use a modified version of this License if You: +(a) rename the license and remove any references to the name of +the license steward (except to note that the license differs +from this License); and (b) otherwise make it clear that the +license contains terms which differ from this License. + +5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER +THIS LICENSE ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, +WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, +MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED +SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE +DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY +OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, +REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN +ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE +IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. + +6. TERMINATION. + +6.1. This License and the rights granted hereunder will +terminate automatically if You fail to comply with terms herein +and fail to cure such breach within 30 days of becoming aware of +the breach. Provisions which, by their nature, must remain in +effect beyond the termination of this License shall survive. + +6.2. If You assert a patent infringement claim (excluding +declaratory judgment actions) against Initial Developer or a +Contributor (the Initial Developer or Contributor against whom +You assert such claim is referred to as Participant) alleging +that the Participant Software (meaning the Contributor Version +where the Participant is a Contributor or the Original Software +where the Participant is the Initial Developer) directly or +indirectly infringes any patent, then any and all rights granted +directly or indirectly to You by such Participant, the Initial +Developer (if the Initial Developer is not the Participant) and +all Contributors under Sections 2.1 and/or 2.2 of this License +shall, upon 60 days notice from Participant terminate +prospectively and automatically at the expiration of such 60 day +notice period, unless if within such 60 day period You withdraw +Your claim with respect to the Participant Software against such +Participant either unilaterally or pursuant to a written +agreement with Participant. + +6.3. In the event of termination under Sections 6.1 or 6.2 +above, all end user licenses that have been validly granted by +You or any distributor hereunder prior to termination (excluding +licenses granted to You by any distributor) shall survive +termination. + +7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO +LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR +OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER +CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY +SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY +CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST +PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR +MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, +EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY +OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO +LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH +PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH +LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR +LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS +EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. + +8. U.S. GOVERNMENT END USERS. The Covered Software is a +commercial item, as that term is defined in 48 C.F.R. 2.101 +(Oct. 1995), consisting of commercial computer software (as that +term is defined at 48 C.F.R. 252.227-7014(a)(1)) and commercial +computer software documentation as such terms are used in 48 +C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and +48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all +U.S. Government End Users acquire Covered Software with only +those rights set forth herein. This U.S. Government Rights +clause is in lieu of, and supersedes, any other FAR, DFAR, or +other clause or provision that addresses Government rights in +computer software under this License. + +9. MISCELLANEOUS. This License represents the complete agreement +concerning subject matter hereof. If any provision of this +License is held to be unenforceable, such provision shall be +reformed only to the extent necessary to make it enforceable. +This License shall be governed by the law of the jurisdiction +specified in a notice contained within the Original Software +(except to the extent applicable law, if any, provides +otherwise), excluding such jurisdictions conflict-of-law +provisions. Any litigation relating to this License shall be +subject to the jurisdiction of the courts located in the +jurisdiction and venue specified in a notice contained within +the Original Software, with the losing party responsible for +costs, including, without limitation, court costs and reasonable +attorneys fees and expenses. The application of the United +Nations Convention on Contracts for the International Sale of +Goods is expressly excluded. Any law or regulation which +provides that the language of a contract shall be construed +against the drafter shall not apply to this License. You agree +that You alone are responsible for compliance with the United +States export administration regulations (and the export control +laws and regulation of any other countries) when You use, +distribute or otherwise make available any Covered Software. + +10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and +the Contributors, each party is responsible for claims and +damages arising, directly or indirectly, out of its utilization +of rights under this License and You agree to work with Initial +Developer and Contributors to distribute such responsibility on +an equitable basis. Nothing herein is intended or shall be +deemed to constitute any admission of liability. + +---------------------------------------------------------------- + +NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND +DISTRIBUTION LICENSE (CDDL): This code is released under the +CDDL and shall be governed by the laws of the State of +California (excluding conflict-of-law provisions). Any +litigation relating to this License shall be subject to the +jurisdiction of the Federal Courts of the Northern District of +California and the state courts of the State of California, with +venue lying in Santa Clara County, California. + +---------------------------------------------------------------- + diff --git a/libraw/LICENSE.LGPL b/libraw/LICENSE.LGPL new file mode 100644 index 00000000000..3b204400cf3 --- /dev/null +++ b/libraw/LICENSE.LGPL @@ -0,0 +1,458 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS diff --git a/libraw/README.md b/libraw/README.md new file mode 100644 index 00000000000..440c72d4c0c --- /dev/null +++ b/libraw/README.md @@ -0,0 +1,120 @@ +JavaCPP Presets for LibRaw +========================== + +[![Gitter](https://badges.gitter.im/bytedeco/javacpp.svg)](https://gitter.im/bytedeco/javacpp) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.bytedeco/libraw/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.bytedeco/libraw) [![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.bytedeco/libraw.svg)](http://bytedeco.org/builds/) +Build status for all platforms: [![libraw](https://github.com/bytedeco/javacpp-presets/workflows/libraw/badge.svg)](https://github.com/bytedeco/javacpp-presets/actions?query=workflow%3Alibraw) Commercial support: [![xscode](https://img.shields.io/badge/Available%20on-xs%3Acode-blue?style=?style=plastic&logo=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////////VXz1bAAAAAJ0Uk5T/wDltzBKAAAAlUlEQVR42uzXSwqAMAwE0Mn9L+3Ggtgkk35QwcnSJo9S+yGwM9DCooCbgn4YrJ4CIPUcQF7/XSBbx2TEz4sAZ2q1RAECBAiYBlCtvwN+KiYAlG7UDGj59MViT9hOwEqAhYCtAsUZvL6I6W8c2wcbd+LIWSCHSTeSAAECngN4xxIDSK9f4B9t377Wd7H5Nt7/Xz8eAgwAvesLRjYYPuUAAAAASUVORK5CYII=)](https://xscode.com/bytedeco/javacpp-presets) + + +Introduction +------------ +This directory contains the JavaCPP Presets module for: + + * LibRaw 0.20.2 https://www.libraw.org/ + +Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. + + +Documentation +------------- +Java API documentation is available here: + + * http://bytedeco.org/javacpp-presets/libraw/apidocs/ + + +Sample Usage +------------ +Here is an example of implementing `dcraw` functionality using LibRaw ported to Java from this C++ source file: + + * https://github.com/LibRaw/LibRaw/blob/master/samples/dcraw_emu.cpp + +We can use [Maven 3](http://maven.apache.org/) to download and install automatically all the class files as well as the native binaries. To run this sample code, after creating the `pom.xml` and `LibRawDemo.java` source files below, simply execute on the command line: +```bash + $ mvn compile exec:java" +``` + +### The `pom.xml` build file +```xml + + 4.0.0 + org.bytedeco.libraw + librawdemo + 1.5.9-SNAPSHOT + + LibRawDemo + + + + org.bytedeco + libraw-platform + 0.20.2-1.5.9-SNAPSHOT + + + + . + + +``` + +### The `LibRawDemo.java` source file +```java +import org.bytedeco.javacpp.BytePointer; +import org.bytedeco.libraw.LibRaw; +import org.bytedeco.libraw.libraw_output_params_t; + +import static org.bytedeco.libraw.global.LibRaw.*; + +public class LibRawDemo { + public static String libRawVersion() { + try (BytePointer version = LibRaw.version()) { + return version.getString(); + } + } + + public static void handleError(int err, String message) { + if (err != LibRaw_errors.LIBRAW_SUCCESS.value) { + final String msg; + try (BytePointer e = libraw_strerror(err)) { + msg = e.getString(); + } + System.err.println(message + " : " + msg); + System.exit(err); + } + } + + public static void main(String[] args) { + System.out.println(""); + System.out.println("LibRaw.version(): " + libRawVersion()); + + try (LibRaw rawProcessor = new LibRaw()) { + // Set processing parameters + libraw_output_params_t params = rawProcessor.imgdata().params(); + params.half_size(1); // Create half size image + params.output_tiff(1); // Save as TIFF + + String srcFile = "my_sample_image.dng"; + System.out.println("Reading: " + srcFile); + int ret = rawProcessor.open_file(srcFile); + handleError(ret, "Cannot open " + srcFile); + + System.out.println("Unpacking: " + srcFile); + ret = rawProcessor.unpack(); + handleError(ret, "Cannot unpack " + srcFile); + + System.out.println("Processing"); + ret = rawProcessor.dcraw_process(); + handleError(ret, "Cannot process" + srcFile); + + String dstFile = "my_sample_image.tif"; + System.out.println("Writing file: " + dstFile); + ret = rawProcessor.dcraw_ppm_tiff_writer(dstFile); + handleError(ret, "Cannot write " + dstFile); + + System.out.println("Cleaning up"); + rawProcessor.recycle(); + } + + System.out.println("Done"); + System.exit(LibRaw_errors.LIBRAW_SUCCESS.value); + } +} +``` diff --git a/libraw/cppbuild.sh b/libraw/cppbuild.sh new file mode 100755 index 00000000000..81a51fcd8ec --- /dev/null +++ b/libraw/cppbuild.sh @@ -0,0 +1,56 @@ +#!/bin/bash +# This file is meant to be included by the parent cppbuild.sh script +if [[ -z "$PLATFORM" ]]; then + pushd .. + bash cppbuild.sh "$@" libraw + popd + exit +fi + +# Compilation instructions at https://www.libraw.org/docs/Install-LibRaw.html + +LIBRAW_VERSION=0.20.2 +download https://github.com/LibRaw/LibRaw/archive/refs/tags/$LIBRAW_VERSION.zip LibRaw-$LIBRAW_VERSION.zip +unzip -o LibRaw-$LIBRAW_VERSION.zip + +mkdir -p $PLATFORM +cd $PLATFORM +INSTALL_PATH=`pwd` +mkdir -p include/libraw lib +unzip -o ../LibRaw-$LIBRAW_VERSION.zip +cd LibRaw-$LIBRAW_VERSION + +# TODO add: zlib, libjasper, libjpeg8 + +case $PLATFORM in + linux-x86_64) + autoreconf --install + ./configure --prefix=$INSTALL_PATH --disable-examples --disable-static --with-pic + make -j $MAKEJ + make install + ;; + macosx-arm64) + export CC="clang -arch arm64" + export CXX="clang++ -arch arm64" + autoreconf --install + ./configure --prefix=$INSTALL_PATH --disable-examples --enable-static --with-pic --host="aarch64-apple-darwin" + make -j $MAKEJ + make install + ;; + macosx-x86_64) + autoreconf --install + ./configure --prefix=$INSTALL_PATH --disable-examples --enable-static --with-pic + make -j $MAKEJ + make install + ;; + windows-x86_64) + nmake -f Makefile.msvc + cp libraw/*.h ../include/libraw + cp lib/*.lib ../lib + ;; + *) + echo "Error: Platform \"$PLATFORM\" is not supported" + ;; +esac + +cd ../.. diff --git a/libraw/platform/pom.xml b/libraw/platform/pom.xml new file mode 100644 index 00000000000..df0991f7f80 --- /dev/null +++ b/libraw/platform/pom.xml @@ -0,0 +1,129 @@ + + + 4.0.0 + + + org.bytedeco + javacpp-presets + 1.5.9-SNAPSHOT + ../../ + + + org.bytedeco + libraw-platform + 0.20.2-${project.parent.version} + JavaCPP Presets Platform for LibRaw + + + libraw + + + + + org.bytedeco + javacpp-platform + ${project.parent.version} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.linux-x86_64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.macosx-arm64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.macosx-x86_64} + + + ${project.groupId} + ${javacpp.moduleId} + ${project.version} + ${javacpp.platform.windows-x86_64} + + + + + + + maven-jar-plugin + + + default-jar + + + + ${javacpp.moduleId}.jar ${javacpp.moduleId}-linux-x86_64.jar ${javacpp.moduleId}-macosx-arm64.jar ${javacpp.moduleId}-macosx-x86_64.jar ${javacpp.moduleId}-windows-x86_64.jar + + + + + + empty-javadoc-jar + + jar + + + javadoc + + + + empty-sources-jar + + jar + + + sources + + + + + + org.moditect + moditect-maven-plugin + + + add-module-infos + none + + + add-platform-module-info + package + + add-module-info + + + + + ${project.build.directory}/${project.artifactId}.jar + + module org.bytedeco.${javacpp.moduleId}.platform { + requires static org.bytedeco.${javacpp.moduleId}.linux.x86_64; + requires static org.bytedeco.${javacpp.moduleId}.macosx.arm64; + requires static org.bytedeco.${javacpp.moduleId}.macosx.x86_64; + requires static org.bytedeco.${javacpp.moduleId}.windows.x86_64; + } + + + + + + + + + + + diff --git a/libraw/pom.xml b/libraw/pom.xml new file mode 100644 index 00000000000..76519c85480 --- /dev/null +++ b/libraw/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + + + org.bytedeco + javacpp-presets + 1.5.9-SNAPSHOT + + + org.bytedeco + libraw + 0.20.2-${project.parent.version} + JavaCPP Presets for LibRaw + + + + org.bytedeco + javacpp + + + + + + + maven-resources-plugin + + + maven-compiler-plugin + + + org.bytedeco + javacpp + + + maven-jar-plugin + + + org.moditect + moditect-maven-plugin + + + maven-dependency-plugin + + + maven-source-plugin + + + maven-javadoc-plugin + + + + + diff --git a/libraw/samples/LibRawDemo.java b/libraw/samples/LibRawDemo.java new file mode 100644 index 00000000000..f4422f379be --- /dev/null +++ b/libraw/samples/LibRawDemo.java @@ -0,0 +1,60 @@ +import org.bytedeco.javacpp.BytePointer; +import org.bytedeco.libraw.LibRaw; +import org.bytedeco.libraw.libraw_output_params_t; + +import static org.bytedeco.libraw.global.LibRaw.*; + +public class LibRawDemo { + public static String libRawVersion() { + try (BytePointer version = LibRaw.version()) { + return version.getString(); + } + } + + public static void handleError(int err, String message) { + if (err != LibRaw_errors.LIBRAW_SUCCESS.value) { + final String msg; + try (BytePointer e = libraw_strerror(err)) { + msg = e.getString(); + } + System.err.println(message + " : " + msg); + System.exit(err); + } + } + + public static void main(String[] args) { + System.out.println(""); + System.out.println("LibRaw.version(): " + libRawVersion()); + + try (LibRaw rawProcessor = new LibRaw()) { + // Set processing parameters + libraw_output_params_t params = rawProcessor.imgdata().params(); + params.half_size(1); // Create half size image + params.output_tiff(1); // Save as TIFF + + String srcFile = "my_sample_image.dng"; + System.out.println("Reading: " + srcFile); + int ret = rawProcessor.open_file(srcFile); + handleError(ret, "Cannot open " + srcFile); + + System.out.println("Unpacking: " + srcFile); + ret = rawProcessor.unpack(); + handleError(ret, "Cannot unpack " + srcFile); + + System.out.println("Processing"); + ret = rawProcessor.dcraw_process(); + handleError(ret, "Cannot process" + srcFile); + + String dstFile = "my_sample_image.tif"; + System.out.println("Writing file: " + dstFile); + ret = rawProcessor.dcraw_ppm_tiff_writer(dstFile); + handleError(ret, "Cannot write " + dstFile); + + System.out.println("Cleaning up"); + rawProcessor.recycle(); + } + + System.out.println("Done"); + System.exit(LibRaw_errors.LIBRAW_SUCCESS.value); + } +} diff --git a/libraw/samples/pom.xml b/libraw/samples/pom.xml new file mode 100644 index 00000000000..13d0b9caaa0 --- /dev/null +++ b/libraw/samples/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + org.bytedeco.libraw + librawdemo + 1.5.9-SNAPSHOT + + LibRawDemo + 1.7 + 1.7 + + + + org.bytedeco + libraw-platform + 0.20.2-1.5.9-SNAPSHOT + + + + . + + diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw.java new file mode 100644 index 00000000000..d486296d0c9 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw.java @@ -0,0 +1,168 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + +// #endif + +// #ifdef __cplusplus + +@NoOffset @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw(Pointer p) { super(p); } + + public native @ByRef libraw_data_t imgdata(); public native LibRaw imgdata(libraw_data_t setter); + + public LibRaw(@Cast("unsigned int") int flags/*=LIBRAW_OPTIONS_NONE*/) { super((Pointer)null); allocate(flags); } + private native void allocate(@Cast("unsigned int") int flags/*=LIBRAW_OPTIONS_NONE*/); + public LibRaw() { super((Pointer)null); allocate(); } + private native void allocate(); + public native libraw_output_params_t output_params_ptr(); + public native int open_file(@Cast("const char*") BytePointer fname, + @Cast("INT64") long max_buffered_sz/*=LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE*/); + public native int open_file(@Cast("const char*") BytePointer fname); + public native int open_file(String fname, + @Cast("INT64") long max_buffered_sz/*=LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE*/); + public native int open_file(String fname); +// #if defined(_WIN32) || defined(WIN32) +// #endif + public native int open_buffer(Pointer buffer, @Cast("size_t") long size); + public native int open_datastream(LibRaw_abstract_datastream arg0); + public native int open_bayer(@Cast("unsigned char*") BytePointer data, @Cast("unsigned") int datalen, + @Cast("ushort") short _raw_width, @Cast("ushort") short _raw_height, + @Cast("ushort") short _left_margin, @Cast("ushort") short _top_margin, + @Cast("ushort") short _right_margin, @Cast("ushort") short _bottom_margin, + @Cast("unsigned char") byte procflags, @Cast("unsigned char") byte bayer_pattern, + @Cast("unsigned") int unused_bits, @Cast("unsigned") int otherflags, + @Cast("unsigned") int black_level); + public native int open_bayer(@Cast("unsigned char*") ByteBuffer data, @Cast("unsigned") int datalen, + @Cast("ushort") short _raw_width, @Cast("ushort") short _raw_height, + @Cast("ushort") short _left_margin, @Cast("ushort") short _top_margin, + @Cast("ushort") short _right_margin, @Cast("ushort") short _bottom_margin, + @Cast("unsigned char") byte procflags, @Cast("unsigned char") byte bayer_pattern, + @Cast("unsigned") int unused_bits, @Cast("unsigned") int otherflags, + @Cast("unsigned") int black_level); + public native int open_bayer(@Cast("unsigned char*") byte[] data, @Cast("unsigned") int datalen, + @Cast("ushort") short _raw_width, @Cast("ushort") short _raw_height, + @Cast("ushort") short _left_margin, @Cast("ushort") short _top_margin, + @Cast("ushort") short _right_margin, @Cast("ushort") short _bottom_margin, + @Cast("unsigned char") byte procflags, @Cast("unsigned char") byte bayer_pattern, + @Cast("unsigned") int unused_bits, @Cast("unsigned") int otherflags, + @Cast("unsigned") int black_level); + public native int error_count(); + public native void recycle_datastream(); + public native int unpack(); + public native int unpack_thumb(); + public native int thumbOK(@Cast("INT64") long maxsz/*=-1*/); + public native int thumbOK(); + public native int adjust_sizes_info_only(); + public native int subtract_black(); + public native int subtract_black_internal(); + public native int raw2image(); + public native int raw2image_ex(int do_subtract_black); + public native void raw2image_start(); + public native void free_image(); + public native int adjust_maximum(); + public native void set_exifparser_handler(exif_parser_callback cb, Pointer data); + public native void set_memerror_handler(memory_callback cb, Pointer data); + public native void set_dataerror_handler(data_callback func, Pointer data); + public native void set_progress_handler(progress_callback pcb, Pointer data); + + public static native @Cast("const char*") BytePointer cameramakeridx2maker(@Cast("unsigned") int maker); + public native int setMakeFromIndex(@Cast("unsigned") int index); + + public native void convertFloatToInt(float dmin/*=4096.f*/, float dmax/*=32767.f*/, + float dtarget/*=16383.f*/); + public native void convertFloatToInt(); + /* helpers */ + public static native @Cast("unsigned") int capabilities(); + public static native @Cast("const char*") BytePointer version(); + public static native int versionNumber(); + public static native @Cast("const char**") PointerPointer cameraList(); + public static native int cameraCount(); + public static native @Cast("const char*") BytePointer strprogress(LibRaw_progress arg0); + public static native String strprogress(@Cast("LibRaw_progress") int arg0); + public static native @Cast("const char*") BytePointer strerror(int p); + /* dcraw emulation */ + public native int dcraw_ppm_tiff_writer(@Cast("const char*") BytePointer filename); + public native int dcraw_ppm_tiff_writer(String filename); + public native int dcraw_thumb_writer(@Cast("const char*") BytePointer fname); + public native int dcraw_thumb_writer(String fname); + public native int dcraw_process(); + /* information calls */ + public native int is_fuji_rotated(); + public native int is_sraw(); + public native int sraw_midpoint(); + public native int is_nikon_sraw(); + public native int is_coolscan_nef(); + public native int is_jpeg_thumb(); + public native int is_floating_point(); + public native int have_fpdata(); + /* memory writers */ + public native libraw_processed_image_t dcraw_make_mem_image(IntPointer errcode/*=NULL*/); + public native libraw_processed_image_t dcraw_make_mem_image(); + public native libraw_processed_image_t dcraw_make_mem_image(IntBuffer errcode/*=NULL*/); + public native libraw_processed_image_t dcraw_make_mem_image(int[] errcode/*=NULL*/); + public native libraw_processed_image_t dcraw_make_mem_thumb(IntPointer errcode/*=NULL*/); + public native libraw_processed_image_t dcraw_make_mem_thumb(); + public native libraw_processed_image_t dcraw_make_mem_thumb(IntBuffer errcode/*=NULL*/); + public native libraw_processed_image_t dcraw_make_mem_thumb(int[] errcode/*=NULL*/); + public static native void dcraw_clear_mem(libraw_processed_image_t arg0); + + /* Additional calls for make_mem_image */ + public native void get_mem_image_format(IntPointer width, IntPointer height, IntPointer colors, + IntPointer bps); + public native void get_mem_image_format(IntBuffer width, IntBuffer height, IntBuffer colors, + IntBuffer bps); + public native void get_mem_image_format(int[] width, int[] height, int[] colors, + int[] bps); + public native int copy_mem_image(Pointer scan0, int stride, int bgr); + + /* free all internal data structures */ + public native void recycle(); + + public native int COLOR(int row, int col); + + public native int FC(int row, int col); + public native int fcol(int row, int col); + + public native @Cast("const char*") BytePointer unpack_function_name(); + public native int get_decoder_info(libraw_decoder_info_t d_info); + + + public static native float powf_lim(float a, float b, float limup); + public static native float libraw_powf64l(float a, float b); + + public static native @Cast("unsigned") int sgetn(int n, @Cast("uchar*") BytePointer s); + public static native @Cast("unsigned") int sgetn(int n, @Cast("uchar*") ByteBuffer s); + public static native @Cast("unsigned") int sgetn(int n, @Cast("uchar*") byte[] s); + + /* Phase one correction/subtractBL calls */ + /* Returns libraw error code */ + + public native int phase_one_subtract_black(@Cast("ushort*") ShortPointer src, @Cast("ushort*") ShortPointer dest); + public native int phase_one_subtract_black(@Cast("ushort*") ShortBuffer src, @Cast("ushort*") ShortBuffer dest); + public native int phase_one_subtract_black(@Cast("ushort*") short[] src, @Cast("ushort*") short[] dest); + public native int phase_one_correct(); + + public native int set_rawspeed_camerafile(@Cast("char*") BytePointer filename); + public native int set_rawspeed_camerafile(@Cast("char*") ByteBuffer filename); + public native int set_rawspeed_camerafile(@Cast("char*") byte[] filename); + public native void setCancelFlag(); + public native void clearCancelFlag(); + public native int adobe_coeff(@Cast("unsigned") int arg0, @Cast("const char*") BytePointer arg1, int internal_only/*=0*/); + public native int adobe_coeff(@Cast("unsigned") int arg0, @Cast("const char*") BytePointer arg1); + public native int adobe_coeff(@Cast("unsigned") int arg0, String arg1, int internal_only/*=0*/); + public native int adobe_coeff(@Cast("unsigned") int arg0, String arg1); + + public native void set_dng_host(Pointer arg0); +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_abstract_datastream.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_abstract_datastream.java new file mode 100644 index 00000000000..873cf7c64d0 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_abstract_datastream.java @@ -0,0 +1,42 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + +@Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw_abstract_datastream extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw_abstract_datastream(Pointer p) { super(p); } + + public native int valid(); + public native int read(Pointer arg0, @Cast("size_t") long arg1, @Cast("size_t") long arg2); + public native int seek(@Cast("INT64") long arg0, int arg1); + public native @Cast("INT64") long tell(); + public native @Cast("INT64") long size(); + public native int get_char(); + public native @Cast("char*") BytePointer gets(@Cast("char*") BytePointer arg0, int arg1); + public native @Cast("char*") ByteBuffer gets(@Cast("char*") ByteBuffer arg0, int arg1); + public native @Cast("char*") byte[] gets(@Cast("char*") byte[] arg0, int arg1); + public native int scanf_one(@Cast("const char*") BytePointer arg0, Pointer arg1); + public native int scanf_one(String arg0, Pointer arg1); + public native int eof(); + public native Pointer make_jas_stream(); + public native int jpeg_src(Pointer arg0); + public native void buffering_off(); + /* reimplement in subclass to use parallel access in xtrans_load_raw() if + * OpenMP is not used */ + public native int lock(); /* success */ + public native void unlock(); + public native @Cast("const char*") BytePointer fname(); +// #ifdef LIBRAW_WIN32_UNICODEPATHS +// #endif +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bigfile_datastream.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bigfile_datastream.java new file mode 100644 index 00000000000..5c94fe477d4 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bigfile_datastream.java @@ -0,0 +1,43 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + +@NoOffset @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw_bigfile_datastream extends LibRaw_abstract_datastream { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw_bigfile_datastream(Pointer p) { super(p); } + + public LibRaw_bigfile_datastream(@Cast("const char*") BytePointer fname) { super((Pointer)null); allocate(fname); } + private native void allocate(@Cast("const char*") BytePointer fname); + public LibRaw_bigfile_datastream(String fname) { super((Pointer)null); allocate(fname); } + private native void allocate(String fname); +// #ifdef LIBRAW_WIN32_UNICODEPATHS +// #endif + public native int valid(); + public native Pointer make_jas_stream(); + + public native int read(Pointer ptr, @Cast("size_t") long size, @Cast("size_t") long nmemb); + public native int eof(); + public native int seek(@Cast("INT64") long o, int whence); + public native @Cast("INT64") long tell(); + public native @Cast("INT64") long size(); + public native @Cast("char*") BytePointer gets(@Cast("char*") BytePointer str, int sz); + public native @Cast("char*") ByteBuffer gets(@Cast("char*") ByteBuffer str, int sz); + public native @Cast("char*") byte[] gets(@Cast("char*") byte[] str, int sz); + public native int scanf_one(@Cast("const char*") BytePointer fmt, Pointer val); + public native int scanf_one(String fmt, Pointer val); + public native @Cast("const char*") BytePointer fname(); +// #ifdef LIBRAW_WIN32_UNICODEPATHS +// #endif + public native int get_char(); +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bit_buffer.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bit_buffer.java new file mode 100644 index 00000000000..6db0733808c --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_bit_buffer.java @@ -0,0 +1,19 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + +@Opaque @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw_bit_buffer extends Pointer { + /** Empty constructor. Calls {@code super((Pointer)null)}. */ + public LibRaw_bit_buffer() { super((Pointer)null); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw_bit_buffer(Pointer p) { super(p); } +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_buffer_datastream.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_buffer_datastream.java new file mode 100644 index 00000000000..a521829ba74 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_buffer_datastream.java @@ -0,0 +1,36 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + +@NoOffset @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw_buffer_datastream extends LibRaw_abstract_datastream { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw_buffer_datastream(Pointer p) { super(p); } + + public LibRaw_buffer_datastream(Pointer buffer, @Cast("size_t") long bsize) { super((Pointer)null); allocate(buffer, bsize); } + private native void allocate(Pointer buffer, @Cast("size_t") long bsize); + public native int valid(); + public native Pointer make_jas_stream(); + public native int jpeg_src(Pointer jpegdata); + public native int read(Pointer ptr, @Cast("size_t") long sz, @Cast("size_t") long nmemb); + public native int eof(); + public native int seek(@Cast("INT64") long o, int whence); + public native @Cast("INT64") long tell(); + public native @Cast("INT64") long size(); + public native @Cast("char*") BytePointer gets(@Cast("char*") BytePointer s, int sz); + public native @Cast("char*") ByteBuffer gets(@Cast("char*") ByteBuffer s, int sz); + public native @Cast("char*") byte[] gets(@Cast("char*") byte[] s, int sz); + public native int scanf_one(@Cast("const char*") BytePointer fmt, Pointer val); + public native int scanf_one(String fmt, Pointer val); + public native int get_char(); +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_file_datastream.java b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_file_datastream.java new file mode 100644 index 00000000000..2af45cebc04 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/LibRaw_file_datastream.java @@ -0,0 +1,45 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + +// #ifdef LIBRAW_WIN32_DLLDEFS +// #endif + +@NoOffset @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class LibRaw_file_datastream extends LibRaw_abstract_datastream { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public LibRaw_file_datastream(Pointer p) { super(p); } + + public LibRaw_file_datastream(@Cast("const char*") BytePointer fname) { super((Pointer)null); allocate(fname); } + private native void allocate(@Cast("const char*") BytePointer fname); + public LibRaw_file_datastream(String fname) { super((Pointer)null); allocate(fname); } + private native void allocate(String fname); +// #ifdef LIBRAW_WIN32_UNICODEPATHS +// #endif + public native Pointer make_jas_stream(); + public native int valid(); + public native int read(Pointer ptr, @Cast("size_t") long size, @Cast("size_t") long nmemb); + public native int eof(); + public native int seek(@Cast("INT64") long o, int whence); + public native @Cast("INT64") long tell(); + public native @Cast("INT64") long size(); + public native int get_char(); + public native @Cast("char*") BytePointer gets(@Cast("char*") BytePointer str, int sz); + public native @Cast("char*") ByteBuffer gets(@Cast("char*") ByteBuffer str, int sz); + public native @Cast("char*") byte[] gets(@Cast("char*") byte[] str, int sz); + public native int scanf_one(@Cast("const char*") BytePointer fmt, Pointer val); + public native int scanf_one(String fmt, Pointer val); + public native @Cast("const char*") BytePointer fname(); +// #ifdef LIBRAW_WIN32_UNICODEPATHS +// #endif +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/data_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/data_callback.java new file mode 100644 index 00000000000..8fac7daccd2 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/data_callback.java @@ -0,0 +1,22 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class data_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public data_callback(Pointer p) { super(p); } + protected data_callback() { allocate(); } + private native void allocate(); + public native void call(Pointer data, @Cast("const char*") BytePointer file, int offset); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/exif_parser_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/exif_parser_callback.java new file mode 100644 index 00000000000..12323ca9451 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/exif_parser_callback.java @@ -0,0 +1,23 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class exif_parser_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public exif_parser_callback(Pointer p) { super(p); } + protected exif_parser_callback() { allocate(); } + private native void allocate(); + public native void call(Pointer context, int tag, int type, + int len, @Cast("unsigned int") int ord, Pointer ifp, + @Cast("INT64") long base); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/fuji_compressed_params.java b/libraw/src/gen/java/org/bytedeco/libraw/fuji_compressed_params.java new file mode 100644 index 00000000000..dba47589fbc --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/fuji_compressed_params.java @@ -0,0 +1,41 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class fuji_compressed_params extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public fuji_compressed_params() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public fuji_compressed_params(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public fuji_compressed_params(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public fuji_compressed_params position(long position) { + return (fuji_compressed_params)super.position(position); + } + @Override public fuji_compressed_params getPointer(long i) { + return new fuji_compressed_params((Pointer)this).offsetAddress(i); + } + + /* quantization table */ + public native int q_point(int i); public native fuji_compressed_params q_point(int i, int setter); + @MemberGetter public native IntPointer q_point(); /* quantization points */ + public native int max_bits(); public native fuji_compressed_params max_bits(int setter); + public native int min_value(); public native fuji_compressed_params min_value(int setter); + public native int raw_bits(); public native fuji_compressed_params raw_bits(int setter); + public native int total_values(); public native fuji_compressed_params total_values(int setter); + public native int maxDiff(); public native fuji_compressed_params maxDiff(int setter); + public native @Cast("ushort") short line_width(); public native fuji_compressed_params line_width(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/global/LibRaw.java b/libraw/src/gen/java/org/bytedeco/libraw/global/LibRaw.java new file mode 100644 index 00000000000..ff7185b7426 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/global/LibRaw.java @@ -0,0 +1,1399 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw.global; + +import org.bytedeco.libraw.*; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +public class LibRaw extends org.bytedeco.libraw.presets.LibRaw { + static { Loader.load(); } + +// Parsed from libraw/libraw_const.h + +/* -*- C++ -*- + * File: libraw_const.h + * Copyright 2008-2020 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8 , 2008 + * LibRaw error codes +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +// #ifndef _LIBRAW_ERRORS_H +// #define _LIBRAW_ERRORS_H + +public static final double LIBRAW_DEFAULT_ADJUST_MAXIMUM_THRESHOLD = 0.75; +public static final double LIBRAW_DEFAULT_AUTO_BRIGHTNESS_THRESHOLD = 0.01; +/* limit allocation size, default is 2Gb */ +// #ifndef LIBRAW_MAX_ALLOC_MB_DEFAULT +public static final long LIBRAW_MAX_ALLOC_MB_DEFAULT = 2048L; +// #endif + +/* limit thumbnail size, default is 512Mb*/ +// #ifndef LIBRAW_MAX_THUMBNAIL_MB +public static final long LIBRAW_MAX_THUMBNAIL_MB = 512L; +// #endif + +/* Check if enough file space exists before tag read */ +// #ifndef LIBRAW_NO_IOSPACE_CHECK +// #define LIBRAW_IOSPACE_CHECK +// #endif +// #ifndef LIBRAW_NO_CR3_MEMPOOL +// #define LIBRAW_CR3_MEMPOOL +// #endif + + +/* LibRaw uses own memory pool management, with LIBRAW_MSIZE (512) +entries. It is enough for parsing/decoding non-damaged files, but +may overflow on specially crafted files (eg. with many string values +like XMP blocks. +LIBRAW_MEMPOOL_CHECK define will result in error on pool overflow */ +// #ifndef LIBRAW_NO_MEMPOOL_CHECK +// #define LIBRAW_MEMPOOL_CHECK +// #endif + +public static final int LIBRAW_MAX_METADATA_BLOCKS = 1024; +public static final int LIBRAW_CBLACK_SIZE = 4104; +public static final int LIBRAW_IFD_MAXCOUNT = 10; +public static final int LIBRAW_CRXTRACKS_MAXCOUNT = 16; + +public static final int LIBRAW_AHD_TILE = 512; + +public enum LibRaw_open_flags { + LIBRAW_OPEN_BIGFILE(1), + LIBRAW_OPEN_FILE(1<<1); + + public final int value; + private LibRaw_open_flags(int v) { this.value = v; } + private LibRaw_open_flags(LibRaw_open_flags e) { this.value = e.value; } + public LibRaw_open_flags intern() { for (LibRaw_open_flags e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_openbayer_patterns { + LIBRAW_OPENBAYER_RGGB(0x94), + LIBRAW_OPENBAYER_BGGR(0x16), + LIBRAW_OPENBAYER_GRBG(0x61), + LIBRAW_OPENBAYER_GBRG(0x49); + + public final int value; + private LibRaw_openbayer_patterns(int v) { this.value = v; } + private LibRaw_openbayer_patterns(LibRaw_openbayer_patterns e) { this.value = e.value; } + public LibRaw_openbayer_patterns intern() { for (LibRaw_openbayer_patterns e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_dngfields_marks { + LIBRAW_DNGFM_FORWARDMATRIX(1), + LIBRAW_DNGFM_ILLUMINANT(1 << 1), + LIBRAW_DNGFM_COLORMATRIX(1 << 2), + LIBRAW_DNGFM_CALIBRATION(1 << 3), + LIBRAW_DNGFM_ANALOGBALANCE(1 << 4), + LIBRAW_DNGFM_BLACK(1 << 5), + LIBRAW_DNGFM_WHITE(1 << 6), + LIBRAW_DNGFM_OPCODE2(1 << 7), + LIBRAW_DNGFM_LINTABLE(1 << 8), + LIBRAW_DNGFM_CROPORIGIN(1 << 9), + LIBRAW_DNGFM_CROPSIZE(1 << 10), + LIBRAW_DNGFM_PREVIEWCS(1 << 11), + LIBRAW_DNGFM_ASSHOTNEUTRAL(1 << 12), + LIBRAW_DNGFM_BASELINEEXPOSURE(1 << 13), + LIBRAW_DNGFM_LINEARRESPONSELIMIT(1 << 14); + + public final int value; + private LibRaw_dngfields_marks(int v) { this.value = v; } + private LibRaw_dngfields_marks(LibRaw_dngfields_marks e) { this.value = e.value; } + public LibRaw_dngfields_marks intern() { for (LibRaw_dngfields_marks e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_As_Shot_WB_Applied_codes { + LIBRAW_ASWB_APPLIED(1), + LIBRAW_ASWB_CANON(2), + LIBRAW_ASWB_NIKON(4), + LIBRAW_ASWB_NIKON_SRAW(8), + LIBRAW_ASWB_PENTAX(16); + + public final int value; + private LibRaw_As_Shot_WB_Applied_codes(int v) { this.value = v; } + private LibRaw_As_Shot_WB_Applied_codes(LibRaw_As_Shot_WB_Applied_codes e) { this.value = e.value; } + public LibRaw_As_Shot_WB_Applied_codes intern() { for (LibRaw_As_Shot_WB_Applied_codes e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +// #define tagtypeIs(typex) (type == typex) +public enum LibRaw_ExifTagTypes { + LIBRAW_EXIFTAG_TYPE_UNKNOWN (0), + LIBRAW_EXIFTAG_TYPE_BYTE (1), + LIBRAW_EXIFTAG_TYPE_ASCII (2), + LIBRAW_EXIFTAG_TYPE_SHORT (3), + LIBRAW_EXIFTAG_TYPE_LONG (4), + LIBRAW_EXIFTAG_TYPE_RATIONAL (5), + LIBRAW_EXIFTAG_TYPE_SBYTE (6), + LIBRAW_EXIFTAG_TYPE_UNDEFINED(7), + LIBRAW_EXIFTAG_TYPE_SSHORT (8), + LIBRAW_EXIFTAG_TYPE_SLONG (9), + LIBRAW_EXIFTAG_TYPE_SRATIONAL(10), + LIBRAW_EXIFTAG_TYPE_FLOAT (11), + LIBRAW_EXIFTAG_TYPE_DOUBLE (12), + LIBRAW_EXIFTAG_TYPE_IFD (13), + LIBRAW_EXIFTAG_TYPE_UNICODE (14), + LIBRAW_EXIFTAG_TYPE_COMPLEX (15), + LIBRAW_EXIFTAG_TYPE_LONG8 (16), + LIBRAW_EXIFTAG_TYPE_SLONG8 (17), + LIBRAW_EXIFTAG_TYPE_IFD8 (18); + + public final int value; + private LibRaw_ExifTagTypes(int v) { this.value = v; } + private LibRaw_ExifTagTypes(LibRaw_ExifTagTypes e) { this.value = e.value; } + public LibRaw_ExifTagTypes intern() { for (LibRaw_ExifTagTypes e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +// #define LIBRAW_EXIFTOOLTAGTYPE_int8u LIBRAW_EXIFTAG_TYPE_BYTE +// #define LIBRAW_EXIFTOOLTAGTYPE_string LIBRAW_EXIFTAG_TYPE_ASCII +// #define LIBRAW_EXIFTOOLTAGTYPE_int16u LIBRAW_EXIFTAG_TYPE_SHORT +// #define LIBRAW_EXIFTOOLTAGTYPE_int32u LIBRAW_EXIFTAG_TYPE_LONG +// #define LIBRAW_EXIFTOOLTAGTYPE_rational64u LIBRAW_EXIFTAG_TYPE_RATIONAL +// #define LIBRAW_EXIFTOOLTAGTYPE_int8s LIBRAW_EXIFTAG_TYPE_SBYTE +// #define LIBRAW_EXIFTOOLTAGTYPE_undef LIBRAW_EXIFTAG_TYPE_UNDEFINED +// #define LIBRAW_EXIFTOOLTAGTYPE_binary LIBRAW_EXIFTAG_TYPE_UNDEFINED +// #define LIBRAW_EXIFTOOLTAGTYPE_int16s LIBRAW_EXIFTAG_TYPE_SSHORT +// #define LIBRAW_EXIFTOOLTAGTYPE_int32s LIBRAW_EXIFTAG_TYPE_SLONG +// #define LIBRAW_EXIFTOOLTAGTYPE_rational64s LIBRAW_EXIFTAG_TYPE_SRATIONAL +// #define LIBRAW_EXIFTOOLTAGTYPE_float LIBRAW_EXIFTAG_TYPE_FLOAT +// #define LIBRAW_EXIFTOOLTAGTYPE_double LIBRAW_EXIFTAG_TYPE_DOUBLE +// #define LIBRAW_EXIFTOOLTAGTYPE_ifd LIBRAW_EXIFTAG_TYPE_IFD +// #define LIBRAW_EXIFTOOLTAGTYPE_unicode LIBRAW_EXIFTAG_TYPE_UNICODE +// #define LIBRAW_EXIFTOOLTAGTYPE_complex LIBRAW_EXIFTAG_TYPE_COMPLEX +// #define LIBRAW_EXIFTOOLTAGTYPE_int64u LIBRAW_EXIFTAG_TYPE_LONG8 +// #define LIBRAW_EXIFTOOLTAGTYPE_int64s LIBRAW_EXIFTAG_TYPE_SLONG8 +// #define LIBRAW_EXIFTOOLTAGTYPE_ifd64 LIBRAW_EXIFTAG_TYPE_IFD8 + +public static final long LIBRAW_LENS_NOT_SET = 0xffffffffffffffffL; + +public enum LibRaw_whitebalance_code { +// clang-format off + /* + EXIF light sources + 12 = FL-D; Daylight fluorescent (D 5700K – 7100K) (F1,F5) + 13 = FL-N; Day white fluorescent (N 4600K – 5400K) (F7,F8) + 14 = FL-W; Cool white fluorescent (W 3900K – 4500K) (F2,F6, office, store, warehouse) + 15 = FL-WW; White fluorescent (WW 3200K – 3700K) (F3, residential) + 16 = FL-L; Soft/Warm white fluorescent (L 2600K - 3250K) (F4, kitchen, bath) + */ +//clang-format on + LIBRAW_WBI_Unknown(0), + LIBRAW_WBI_Daylight(1), + LIBRAW_WBI_Fluorescent(2), + LIBRAW_WBI_Tungsten(3), + LIBRAW_WBI_Flash(4), + LIBRAW_WBI_FineWeather(9), + LIBRAW_WBI_Cloudy(10), + LIBRAW_WBI_Shade(11), + LIBRAW_WBI_FL_D(12), + LIBRAW_WBI_FL_N(13), + LIBRAW_WBI_FL_W(14), + LIBRAW_WBI_FL_WW(15), + LIBRAW_WBI_FL_L(16), + LIBRAW_WBI_Ill_A(17), + LIBRAW_WBI_Ill_B(18), + LIBRAW_WBI_Ill_C(19), + LIBRAW_WBI_D55(20), + LIBRAW_WBI_D65(21), + LIBRAW_WBI_D75(22), + LIBRAW_WBI_D50(23), + LIBRAW_WBI_StudioTungsten(24), + LIBRAW_WBI_Sunset(64), + LIBRAW_WBI_Underwater(65), + LIBRAW_WBI_FluorescentHigh(66), + LIBRAW_WBI_HT_Mercury(67), + LIBRAW_WBI_AsShot(81), + LIBRAW_WBI_Auto(82), + LIBRAW_WBI_Custom(83), + LIBRAW_WBI_Auto1(85), + LIBRAW_WBI_Auto2(86), + LIBRAW_WBI_Auto3(87), + LIBRAW_WBI_Auto4(88), + LIBRAW_WBI_Custom1(90), + LIBRAW_WBI_Custom2(91), + LIBRAW_WBI_Custom3(92), + LIBRAW_WBI_Custom4(93), + LIBRAW_WBI_Custom5(94), + LIBRAW_WBI_Custom6(95), + LIBRAW_WBI_PC_Set1(96), + LIBRAW_WBI_PC_Set2(97), + LIBRAW_WBI_PC_Set3(98), + LIBRAW_WBI_PC_Set4(99), + LIBRAW_WBI_PC_Set5(100), + LIBRAW_WBI_Measured(110), + LIBRAW_WBI_BW(120), + LIBRAW_WBI_Kelvin(254), + LIBRAW_WBI_Other(255), + LIBRAW_WBI_None(0xffff); + + public final int value; + private LibRaw_whitebalance_code(int v) { this.value = v; } + private LibRaw_whitebalance_code(LibRaw_whitebalance_code e) { this.value = e.value; } + public LibRaw_whitebalance_code intern() { for (LibRaw_whitebalance_code e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_MultiExposure_related { + LIBRAW_ME_NONE(0), + LIBRAW_ME_SIMPLE(1), + LIBRAW_ME_OVERLAY(2), + LIBRAW_ME_HDR(3); + + public final int value; + private LibRaw_MultiExposure_related(int v) { this.value = v; } + private LibRaw_MultiExposure_related(LibRaw_MultiExposure_related e) { this.value = e.value; } + public LibRaw_MultiExposure_related intern() { for (LibRaw_MultiExposure_related e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_dng_processing { + LIBRAW_DNG_NONE(0), + LIBRAW_DNG_FLOAT(1), + LIBRAW_DNG_LINEAR(2), + LIBRAW_DNG_DEFLATE(4), + LIBRAW_DNG_XTRANS(8), + LIBRAW_DNG_OTHER(16), + LIBRAW_DNG_8BIT(32); + + public final int value; + private LibRaw_dng_processing(int v) { this.value = v; } + private LibRaw_dng_processing(LibRaw_dng_processing e) { this.value = e.value; } + public LibRaw_dng_processing intern() { for (LibRaw_dng_processing e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_runtime_capabilities { + LIBRAW_CAPS_RAWSPEED(1), + LIBRAW_CAPS_DNGSDK(2), + LIBRAW_CAPS_GPRSDK(4), + LIBRAW_CAPS_UNICODEPATHS(8), + LIBRAW_CAPS_X3FTOOLS(16), + LIBRAW_CAPS_RPI6BY9(32); + + public final int value; + private LibRaw_runtime_capabilities(int v) { this.value = v; } + private LibRaw_runtime_capabilities(LibRaw_runtime_capabilities e) { this.value = e.value; } + public LibRaw_runtime_capabilities intern() { for (LibRaw_runtime_capabilities e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_colorspace { + LIBRAW_COLORSPACE_NotFound(0), + LIBRAW_COLORSPACE_sRGB(1), + LIBRAW_COLORSPACE_AdobeRGB(2), + LIBRAW_COLORSPACE_WideGamutRGB(3), + LIBRAW_COLORSPACE_ProPhotoRGB(4), + LIBRAW_COLORSPACE_ICC(5), + LIBRAW_COLORSPACE_Uncalibrated(6), // Tag 0x0001 InteropIndex containing "R03" + LIBRAW_COLORSPACE_Uncalibrated = Adobe RGB + LIBRAW_COLORSPACE_CameraLinearUniWB(7), + LIBRAW_COLORSPACE_CameraLinear(8), + LIBRAW_COLORSPACE_CameraGammaUniWB(9), + LIBRAW_COLORSPACE_CameraGamma(10), + LIBRAW_COLORSPACE_MonochromeLinear(11), + LIBRAW_COLORSPACE_MonochromeGamma(12), + LIBRAW_COLORSPACE_Unknown(255); + + public final int value; + private LibRaw_colorspace(int v) { this.value = v; } + private LibRaw_colorspace(LibRaw_colorspace e) { this.value = e.value; } + public LibRaw_colorspace intern() { for (LibRaw_colorspace e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_cameramaker_index { + LIBRAW_CAMERAMAKER_Unknown(0), + LIBRAW_CAMERAMAKER_Agfa(1), + LIBRAW_CAMERAMAKER_Alcatel(2), + LIBRAW_CAMERAMAKER_Apple(3), + LIBRAW_CAMERAMAKER_Aptina(4), + LIBRAW_CAMERAMAKER_AVT(5), + LIBRAW_CAMERAMAKER_Baumer(6), + LIBRAW_CAMERAMAKER_Broadcom(7), + LIBRAW_CAMERAMAKER_Canon(8), + LIBRAW_CAMERAMAKER_Casio(9), + LIBRAW_CAMERAMAKER_CINE(10), + LIBRAW_CAMERAMAKER_Clauss(11), + LIBRAW_CAMERAMAKER_Contax(12), + LIBRAW_CAMERAMAKER_Creative(13), + LIBRAW_CAMERAMAKER_DJI(14), + LIBRAW_CAMERAMAKER_DXO(15), + LIBRAW_CAMERAMAKER_Epson(16), + LIBRAW_CAMERAMAKER_Foculus(17), + LIBRAW_CAMERAMAKER_Fujifilm(18), + LIBRAW_CAMERAMAKER_Generic(19), + LIBRAW_CAMERAMAKER_Gione(20), + LIBRAW_CAMERAMAKER_GITUP(21), + LIBRAW_CAMERAMAKER_Google(22), + LIBRAW_CAMERAMAKER_GoPro(23), + LIBRAW_CAMERAMAKER_Hasselblad(24), + LIBRAW_CAMERAMAKER_HTC(25), + LIBRAW_CAMERAMAKER_I_Mobile(26), + LIBRAW_CAMERAMAKER_Imacon(27), + LIBRAW_CAMERAMAKER_JK_Imaging(28), + LIBRAW_CAMERAMAKER_Kodak(29), + LIBRAW_CAMERAMAKER_Konica(30), + LIBRAW_CAMERAMAKER_Leaf(31), + LIBRAW_CAMERAMAKER_Leica(32), + LIBRAW_CAMERAMAKER_Lenovo(33), + LIBRAW_CAMERAMAKER_LG(34), + LIBRAW_CAMERAMAKER_Logitech(35), + LIBRAW_CAMERAMAKER_Mamiya(36), + LIBRAW_CAMERAMAKER_Matrix(37), + LIBRAW_CAMERAMAKER_Meizu(38), + LIBRAW_CAMERAMAKER_Micron(39), + LIBRAW_CAMERAMAKER_Minolta(40), + LIBRAW_CAMERAMAKER_Motorola(41), + LIBRAW_CAMERAMAKER_NGM(42), + LIBRAW_CAMERAMAKER_Nikon(43), + LIBRAW_CAMERAMAKER_Nokia(44), + LIBRAW_CAMERAMAKER_Olympus(45), + LIBRAW_CAMERAMAKER_OmniVison(46), + LIBRAW_CAMERAMAKER_Panasonic(47), + LIBRAW_CAMERAMAKER_Parrot(48), + LIBRAW_CAMERAMAKER_Pentax(49), + LIBRAW_CAMERAMAKER_PhaseOne(50), + LIBRAW_CAMERAMAKER_PhotoControl(51), + LIBRAW_CAMERAMAKER_Photron(52), + LIBRAW_CAMERAMAKER_Pixelink(53), + LIBRAW_CAMERAMAKER_Polaroid(54), + LIBRAW_CAMERAMAKER_RED(55), + LIBRAW_CAMERAMAKER_Ricoh(56), + LIBRAW_CAMERAMAKER_Rollei(57), + LIBRAW_CAMERAMAKER_RoverShot(58), + LIBRAW_CAMERAMAKER_Samsung(59), + LIBRAW_CAMERAMAKER_Sigma(60), + LIBRAW_CAMERAMAKER_Sinar(61), + LIBRAW_CAMERAMAKER_SMaL(62), + LIBRAW_CAMERAMAKER_Sony(63), + LIBRAW_CAMERAMAKER_ST_Micro(64), + LIBRAW_CAMERAMAKER_THL(65), + LIBRAW_CAMERAMAKER_VLUU(66), + LIBRAW_CAMERAMAKER_Xiaomi(67), + LIBRAW_CAMERAMAKER_XIAOYI(68), + LIBRAW_CAMERAMAKER_YI(69), + LIBRAW_CAMERAMAKER_Yuneec(70), + LIBRAW_CAMERAMAKER_Zeiss(71), + // Insert additional indexes here + LIBRAW_CAMERAMAKER_TheLastOne(72); + + public final int value; + private LibRaw_cameramaker_index(int v) { this.value = v; } + private LibRaw_cameramaker_index(LibRaw_cameramaker_index e) { this.value = e.value; } + public LibRaw_cameramaker_index intern() { for (LibRaw_cameramaker_index e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_camera_mounts { + LIBRAW_MOUNT_Unknown(0), + LIBRAW_MOUNT_Alpa(1), + LIBRAW_MOUNT_C(2), /* C-mount */ + LIBRAW_MOUNT_Canon_EF_M(3), + LIBRAW_MOUNT_Canon_EF_S(4), + LIBRAW_MOUNT_Canon_EF(5), + LIBRAW_MOUNT_Canon_RF(6), + LIBRAW_MOUNT_Contax_N(7), + LIBRAW_MOUNT_Contax645(8), + LIBRAW_MOUNT_FT(9), /* original 4/3 */ + LIBRAW_MOUNT_mFT(10), /* micro 4/3 */ + LIBRAW_MOUNT_Fuji_GF(11), /* Fujifilm GFX cameras, G mount */ + LIBRAW_MOUNT_Fuji_GX(12), /* Fujifilm GX680 */ + LIBRAW_MOUNT_Fuji_X(13), + LIBRAW_MOUNT_Hasselblad_H(14), /* Hasselblad Hn cameras, HC & HCD lenses */ + LIBRAW_MOUNT_Hasselblad_V(15), + LIBRAW_MOUNT_Hasselblad_XCD(16), /* Hasselblad Xn cameras, XCD lenses */ + LIBRAW_MOUNT_Leica_M(17), /* Leica rangefinder bayonet */ + LIBRAW_MOUNT_Leica_R(18), /* Leica SLRs, 'R' for reflex */ + LIBRAW_MOUNT_Leica_S(19), /* LIBRAW_FORMAT_LeicaS 'MF' */ + LIBRAW_MOUNT_Leica_SL(20), /* lens, mounts on 'L' throat, FF */ + LIBRAW_MOUNT_Leica_TL(21), /* lens, mounts on 'L' throat, APS-C */ + LIBRAW_MOUNT_LPS_L(22), /* Leica/Panasonic/Sigma camera mount, takes L, SL and TL lenses */ + LIBRAW_MOUNT_Mamiya67(23), /* Mamiya RB67, RZ67 */ + LIBRAW_MOUNT_Mamiya645(24), + LIBRAW_MOUNT_Minolta_A(25), + LIBRAW_MOUNT_Nikon_CX(26), /* used in 'Nikon 1' series */ + LIBRAW_MOUNT_Nikon_F(27), + LIBRAW_MOUNT_Nikon_Z(28), + LIBRAW_MOUNT_Pentax_645(29), + LIBRAW_MOUNT_Pentax_K(30), + LIBRAW_MOUNT_Pentax_Q(31), + LIBRAW_MOUNT_RicohModule(32), + LIBRAW_MOUNT_Rollei_bayonet(33), /* Rollei Hy-6: Leaf AFi, Sinar Hy6- models */ + LIBRAW_MOUNT_Samsung_NX_M(34), + LIBRAW_MOUNT_Samsung_NX(35), + LIBRAW_MOUNT_Sigma_X3F(36), + LIBRAW_MOUNT_Sony_E(37), + LIBRAW_MOUNT_LF(38), + LIBRAW_MOUNT_DigitalBack(39), + LIBRAW_MOUNT_FixedLens(40), + LIBRAW_MOUNT_IL_UM(41), /* Interchangeable lens, mount unknown */ + LIBRAW_MOUNT_TheLastOne(42); + + public final int value; + private LibRaw_camera_mounts(int v) { this.value = v; } + private LibRaw_camera_mounts(LibRaw_camera_mounts e) { this.value = e.value; } + public LibRaw_camera_mounts intern() { for (LibRaw_camera_mounts e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_camera_formats { + LIBRAW_FORMAT_Unknown(0), + LIBRAW_FORMAT_APSC(1), + LIBRAW_FORMAT_FF(2), + LIBRAW_FORMAT_MF(3), + LIBRAW_FORMAT_APSH(4), + LIBRAW_FORMAT_1INCH(5), + LIBRAW_FORMAT_1div2p3INCH(6), /* 1/2.3" */ + LIBRAW_FORMAT_1div1p7INCH(7), /* 1/1.7" */ + LIBRAW_FORMAT_FT(8), /* sensor size in FT & mFT cameras */ + LIBRAW_FORMAT_CROP645(9), /* 44x33mm */ + LIBRAW_FORMAT_LeicaS(10), /* 'MF' Leicas */ + LIBRAW_FORMAT_645(11), + LIBRAW_FORMAT_66(12), + LIBRAW_FORMAT_69(13), + LIBRAW_FORMAT_LF(14), + LIBRAW_FORMAT_Leica_DMR(15), + LIBRAW_FORMAT_67(16), + LIBRAW_FORMAT_SigmaAPSC(17), /* DP1, DP2, SD15, SD14, SD10, SD9 */ + LIBRAW_FORMAT_SigmaMerrill(18), /* SD1, 'SD1 Merrill', 'DP1 Merrill', 'DP2 Merrill' */ + LIBRAW_FORMAT_SigmaAPSH(19), /* 'sd Quattro H' */ + LIBRAW_FORMAT_3648(20), /* DALSA FTF4052C (Mamiya ZD) */ + LIBRAW_FORMAT_68(21), /* Fujifilm GX680 */ + LIBRAW_FORMAT_TheLastOne(22); + + public final int value; + private LibRaw_camera_formats(int v) { this.value = v; } + private LibRaw_camera_formats(LibRaw_camera_formats e) { this.value = e.value; } + public LibRaw_camera_formats intern() { for (LibRaw_camera_formats e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRawImageAspects { + LIBRAW_IMAGE_ASPECT_UNKNOWN(0), + LIBRAW_IMAGE_ASPECT_3to2(1), + LIBRAW_IMAGE_ASPECT_1to1(2), + LIBRAW_IMAGE_ASPECT_4to3(3), + LIBRAW_IMAGE_ASPECT_16to9(4), + LIBRAW_IMAGE_ASPECT_5to4(5), + LIBRAW_IMAGE_ASPECT_OTHER(6); + + public final int value; + private LibRawImageAspects(int v) { this.value = v; } + private LibRawImageAspects(LibRawImageAspects e) { this.value = e.value; } + public LibRawImageAspects intern() { for (LibRawImageAspects e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_lens_focal_types { + LIBRAW_FT_UNDEFINED(0), + LIBRAW_FT_PRIME_LENS(1), + LIBRAW_FT_ZOOM_LENS(2), + LIBRAW_FT_ZOOM_LENS_CONSTANT_APERTURE(3), + LIBRAW_FT_ZOOM_LENS_VARIABLE_APERTURE(4); + + public final int value; + private LibRaw_lens_focal_types(int v) { this.value = v; } + private LibRaw_lens_focal_types(LibRaw_lens_focal_types e) { this.value = e.value; } + public LibRaw_lens_focal_types intern() { for (LibRaw_lens_focal_types e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_Canon_RecordModes { + LIBRAW_Canon_RecordMode_UNDEFINED(0), + LIBRAW_Canon_RecordMode_JPEG(1), + LIBRAW_Canon_RecordMode_CRW_THM(2), + LIBRAW_Canon_RecordMode_AVI_THM(3), + LIBRAW_Canon_RecordMode_TIF(4), + LIBRAW_Canon_RecordMode_TIF_JPEG(5), + LIBRAW_Canon_RecordMode_CR2(6), + LIBRAW_Canon_RecordMode_CR2_JPEG(7), + LIBRAW_Canon_RecordMode_UNKNOWN(8), + LIBRAW_Canon_RecordMode_MOV(9), + LIBRAW_Canon_RecordMode_MP4(10), + LIBRAW_Canon_RecordMode_CRM(11), + LIBRAW_Canon_RecordMode_CR3(12), + LIBRAW_Canon_RecordMode_CR3_JPEG(13), + LIBRAW_Canon_RecordMode_HEIF(14), + LIBRAW_Canon_RecordMode_CR3_HEIF(15), + LIBRAW_Canon_RecordMode_TheLastOne(16); + + public final int value; + private LibRaw_Canon_RecordModes(int v) { this.value = v; } + private LibRaw_Canon_RecordModes(LibRaw_Canon_RecordModes e) { this.value = e.value; } + public LibRaw_Canon_RecordModes intern() { for (LibRaw_Canon_RecordModes e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_sony_cameratypes { + LIBRAW_SONY_DSC(1), + LIBRAW_SONY_DSLR(2), + LIBRAW_SONY_NEX(3), + LIBRAW_SONY_SLT(4), + LIBRAW_SONY_ILCE(5), + LIBRAW_SONY_ILCA(6); + + public final int value; + private LibRaw_sony_cameratypes(int v) { this.value = v; } + private LibRaw_sony_cameratypes(LibRaw_sony_cameratypes e) { this.value = e.value; } + public LibRaw_sony_cameratypes intern() { for (LibRaw_sony_cameratypes e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_KodakSensors { + LIBRAW_Kodak_UnknownSensor(0), + LIBRAW_Kodak_M1(1), + LIBRAW_Kodak_M15(2), + LIBRAW_Kodak_M16(3), + LIBRAW_Kodak_M17(4), + LIBRAW_Kodak_M2(5), + LIBRAW_Kodak_M23(6), + LIBRAW_Kodak_M24(7), + LIBRAW_Kodak_M3(8), + LIBRAW_Kodak_M5(9), + LIBRAW_Kodak_M6(10), + LIBRAW_Kodak_C14(11), + LIBRAW_Kodak_X14(12), + LIBRAW_Kodak_M11(13); + + public final int value; + private LibRaw_KodakSensors(int v) { this.value = v; } + private LibRaw_KodakSensors(LibRaw_KodakSensors e) { this.value = e.value; } + public LibRaw_KodakSensors intern() { for (LibRaw_KodakSensors e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_HasselbladFormatCodes { + LIBRAW_HF_Unknown(0), + LIBRAW_HF_3FR(1), + LIBRAW_HF_FFF(2), + LIBRAW_HF_Imacon(3), + LIBRAW_HF_HasselbladDNG(4), + LIBRAW_HF_AdobeDNG(5), + LIBRAW_HF_AdobeDNG_fromPhocusDNG(6); + + public final int value; + private LibRaw_HasselbladFormatCodes(int v) { this.value = v; } + private LibRaw_HasselbladFormatCodes(LibRaw_HasselbladFormatCodes e) { this.value = e.value; } + public LibRaw_HasselbladFormatCodes intern() { for (LibRaw_HasselbladFormatCodes e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + + + +public enum LibRaw_decoder_flags { + LIBRAW_DECODER_HASCURVE(1 << 4), + LIBRAW_DECODER_SONYARW2(1 << 5), + LIBRAW_DECODER_TRYRAWSPEED(1 << 6), + LIBRAW_DECODER_OWNALLOC(1 << 7), + LIBRAW_DECODER_FIXEDMAXC(1 << 8), + LIBRAW_DECODER_ADOBECOPYPIXEL(1 << 9), + LIBRAW_DECODER_LEGACY_WITH_MARGINS(1 << 10), + LIBRAW_DECODER_3CHANNEL(1 << 11), + LIBRAW_DECODER_SINAR4SHOT(1 << 11), + LIBRAW_DECODER_FLATDATA(1 << 12), + LIBRAW_DECODER_FLAT_BG2_SWAPPED(1<<13), + LIBRAW_DECODER_NOTSET(1 << 15); + + public final int value; + private LibRaw_decoder_flags(int v) { this.value = v; } + private LibRaw_decoder_flags(LibRaw_decoder_flags e) { this.value = e.value; } + public LibRaw_decoder_flags intern() { for (LibRaw_decoder_flags e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public static final int LIBRAW_XTRANS = 9; + +public enum LibRaw_constructor_flags { + LIBRAW_OPTIONS_NONE(0), + LIBRAW_OPIONS_NO_MEMERR_CALLBACK(1), + LIBRAW_OPIONS_NO_DATAERR_CALLBACK(1 << 1); + + public final int value; + private LibRaw_constructor_flags(int v) { this.value = v; } + private LibRaw_constructor_flags(LibRaw_constructor_flags e) { this.value = e.value; } + public LibRaw_constructor_flags intern() { for (LibRaw_constructor_flags e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_warnings { + LIBRAW_WARN_NONE(0), + LIBRAW_WARN_BAD_CAMERA_WB(1 << 2), + LIBRAW_WARN_NO_METADATA(1 << 3), + LIBRAW_WARN_NO_JPEGLIB(1 << 4), + LIBRAW_WARN_NO_EMBEDDED_PROFILE(1 << 5), + LIBRAW_WARN_NO_INPUT_PROFILE(1 << 6), + LIBRAW_WARN_BAD_OUTPUT_PROFILE(1 << 7), + LIBRAW_WARN_NO_BADPIXELMAP(1 << 8), + LIBRAW_WARN_BAD_DARKFRAME_FILE(1 << 9), + LIBRAW_WARN_BAD_DARKFRAME_DIM(1 << 10), + LIBRAW_WARN_NO_JASPER(1 << 11), + LIBRAW_WARN_RAWSPEED_PROBLEM(1 << 12), + LIBRAW_WARN_RAWSPEED_UNSUPPORTED(1 << 13), + LIBRAW_WARN_RAWSPEED_PROCESSED(1 << 14), + LIBRAW_WARN_FALLBACK_TO_AHD(1 << 15), + LIBRAW_WARN_PARSEFUJI_PROCESSED(1 << 16), + LIBRAW_WARN_DNGSDK_PROCESSED(1 << 17), + LIBRAW_WARN_DNG_IMAGES_REORDERED(1 << 18), + LIBRAW_WARN_DNG_STAGE2_APPLIED(1 << 19), + LIBRAW_WARN_DNG_STAGE3_APPLIED(1 << 20); + + public final int value; + private LibRaw_warnings(int v) { this.value = v; } + private LibRaw_warnings(LibRaw_warnings e) { this.value = e.value; } + public LibRaw_warnings intern() { for (LibRaw_warnings e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_exceptions { + LIBRAW_EXCEPTION_NONE(0), + LIBRAW_EXCEPTION_ALLOC(1), + LIBRAW_EXCEPTION_DECODE_RAW(2), + LIBRAW_EXCEPTION_DECODE_JPEG(3), + LIBRAW_EXCEPTION_IO_EOF(4), + LIBRAW_EXCEPTION_IO_CORRUPT(5), + LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK(6), + LIBRAW_EXCEPTION_BAD_CROP(7), + LIBRAW_EXCEPTION_IO_BADFILE(8), + LIBRAW_EXCEPTION_DECODE_JPEG2000(9), + LIBRAW_EXCEPTION_TOOBIG(10), + LIBRAW_EXCEPTION_MEMPOOL(11); + + public final int value; + private LibRaw_exceptions(int v) { this.value = v; } + private LibRaw_exceptions(LibRaw_exceptions e) { this.value = e.value; } + public LibRaw_exceptions intern() { for (LibRaw_exceptions e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_progress { + LIBRAW_PROGRESS_START(0), + LIBRAW_PROGRESS_OPEN(1), + LIBRAW_PROGRESS_IDENTIFY(1 << 1), + LIBRAW_PROGRESS_SIZE_ADJUST(1 << 2), + LIBRAW_PROGRESS_LOAD_RAW(1 << 3), + LIBRAW_PROGRESS_RAW2_IMAGE(1 << 4), + LIBRAW_PROGRESS_REMOVE_ZEROES(1 << 5), + LIBRAW_PROGRESS_BAD_PIXELS(1 << 6), + LIBRAW_PROGRESS_DARK_FRAME(1 << 7), + LIBRAW_PROGRESS_FOVEON_INTERPOLATE(1 << 8), + LIBRAW_PROGRESS_SCALE_COLORS(1 << 9), + LIBRAW_PROGRESS_PRE_INTERPOLATE(1 << 10), + LIBRAW_PROGRESS_INTERPOLATE(1 << 11), + LIBRAW_PROGRESS_MIX_GREEN(1 << 12), + LIBRAW_PROGRESS_MEDIAN_FILTER(1 << 13), + LIBRAW_PROGRESS_HIGHLIGHTS(1 << 14), + LIBRAW_PROGRESS_FUJI_ROTATE(1 << 15), + LIBRAW_PROGRESS_FLIP(1 << 16), + LIBRAW_PROGRESS_APPLY_PROFILE(1 << 17), + LIBRAW_PROGRESS_CONVERT_RGB(1 << 18), + LIBRAW_PROGRESS_STRETCH(1 << 19), + /* reserved */ + LIBRAW_PROGRESS_STAGE20(1 << 20), + LIBRAW_PROGRESS_STAGE21(1 << 21), + LIBRAW_PROGRESS_STAGE22(1 << 22), + LIBRAW_PROGRESS_STAGE23(1 << 23), + LIBRAW_PROGRESS_STAGE24(1 << 24), + LIBRAW_PROGRESS_STAGE25(1 << 25), + LIBRAW_PROGRESS_STAGE26(1 << 26), + LIBRAW_PROGRESS_STAGE27(1 << 27), + + LIBRAW_PROGRESS_THUMB_LOAD(1 << 28), + LIBRAW_PROGRESS_TRESERVED1(1 << 29), + LIBRAW_PROGRESS_TRESERVED2(1 << 30); + + public final int value; + private LibRaw_progress(int v) { this.value = v; } + private LibRaw_progress(LibRaw_progress e) { this.value = e.value; } + public LibRaw_progress intern() { for (LibRaw_progress e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} +public static final int LIBRAW_PROGRESS_THUMB_MASK = 0x0fffffff; + +public enum LibRaw_errors { + LIBRAW_SUCCESS(0), + LIBRAW_UNSPECIFIED_ERROR(-1), + LIBRAW_FILE_UNSUPPORTED(-2), + LIBRAW_REQUEST_FOR_NONEXISTENT_IMAGE(-3), + LIBRAW_OUT_OF_ORDER_CALL(-4), + LIBRAW_NO_THUMBNAIL(-5), + LIBRAW_UNSUPPORTED_THUMBNAIL(-6), + LIBRAW_INPUT_CLOSED(-7), + LIBRAW_NOT_IMPLEMENTED(-8), + LIBRAW_UNSUFFICIENT_MEMORY(-100007), + LIBRAW_DATA_ERROR(-100008), + LIBRAW_IO_ERROR(-100009), + LIBRAW_CANCELLED_BY_CALLBACK(-100010), + LIBRAW_BAD_CROP(-100011), + LIBRAW_TOO_BIG(-100012), + LIBRAW_MEMPOOL_OVERFLOW(-100013); + + public final int value; + private LibRaw_errors(int v) { this.value = v; } + private LibRaw_errors(LibRaw_errors e) { this.value = e.value; } + public LibRaw_errors intern() { for (LibRaw_errors e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +// #define LIBRAW_FATAL_ERROR(ec) ((ec) < -100000) + +public enum LibRaw_thumbnail_formats { + LIBRAW_THUMBNAIL_UNKNOWN(0), + LIBRAW_THUMBNAIL_JPEG(1), + LIBRAW_THUMBNAIL_BITMAP(2), + LIBRAW_THUMBNAIL_BITMAP16(3), + LIBRAW_THUMBNAIL_LAYER(4), + LIBRAW_THUMBNAIL_ROLLEI(5); + + public final int value; + private LibRaw_thumbnail_formats(int v) { this.value = v; } + private LibRaw_thumbnail_formats(LibRaw_thumbnail_formats e) { this.value = e.value; } + public LibRaw_thumbnail_formats intern() { for (LibRaw_thumbnail_formats e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +public enum LibRaw_image_formats { + LIBRAW_IMAGE_JPEG(1), + LIBRAW_IMAGE_BITMAP(2); + + public final int value; + private LibRaw_image_formats(int v) { this.value = v; } + private LibRaw_image_formats(LibRaw_image_formats e) { this.value = e.value; } + public LibRaw_image_formats intern() { for (LibRaw_image_formats e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + +// #endif + + +// Parsed from libraw/libraw_version.h + +/* -*- C++ -*- + * File: libraw_version.h + * Copyright 2008-2020 LibRaw LLC (info@libraw.org) + * Created: Mon Sept 8, 2008 + * + * LibRaw C++ interface + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 +(See the file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 +(See the file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +// #ifndef __VERSION_H +// #define __VERSION_H + +public static final int LIBRAW_MAJOR_VERSION = 0; +public static final int LIBRAW_MINOR_VERSION = 20; +public static final int LIBRAW_PATCH_VERSION = 2; +// #define LIBRAW_VERSION_TAIL Release + +public static final int LIBRAW_SHLIB_CURRENT = 20; +public static final int LIBRAW_SHLIB_REVISION = 0; +public static final int LIBRAW_SHLIB_AGE = 0; + +// #define _LIBRAW_VERSION_MAKE(a, b, c, d) #a "." #b "." #c "-" #d +// #define LIBRAW_VERSION_MAKE(a, b, c, d) _LIBRAW_VERSION_MAKE(a, b, c, d) + +// #define LIBRAW_VERSION_STR +// LIBRAW_VERSION_MAKE(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, +// LIBRAW_PATCH_VERSION, LIBRAW_VERSION_TAIL) + +// #define LIBRAW_MAKE_VERSION(major, minor, patch) +// (((major) << 16) | ((minor) << 8) | (patch)) + +// #define LIBRAW_VERSION +// LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, +// LIBRAW_PATCH_VERSION) + +// #define LIBRAW_CHECK_VERSION(major, minor, patch) +// (LibRaw::versionNumber() >= LIBRAW_MAKE_VERSION(major, minor, patch)) + +// #define LIBRAW_RUNTIME_CHECK_VERSION_EXACT() +// ((LibRaw::versionNumber() & 0xffff00) == +// LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, 0)) + +// #define LIBRAW_RUNTIME_CHECK_VERSION_NOTLESS() +// ((LibRaw::versionNumber() & 0xffff00) >= +// LIBRAW_MAKE_VERSION(LIBRAW_MAJOR_VERSION, LIBRAW_MINOR_VERSION, 0)) + +// #define LIBRAW_COMPILE_CHECK_VERSION(major, minor) +// (LIBRAW_MAKE_VERSION(major, minor, 0) == (LIBRAW_VERSION & 0xffff00)) + +// #define LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(major, minor) +// (LIBRAW_MAKE_VERSION(major, minor, 0) <= (LIBRAW_VERSION & 0xffff00)) + +// #endif + + +// Parsed from libraw/libraw_types.h + +/* -*- C++ -*- + * File: libraw_types.h + * Copyright 2008-2020 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8 , 2008 + * + * LibRaw C data structures + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +// #ifndef _LIBRAW_TYPES_H +// #define _LIBRAW_TYPES_H + +// #include +// #ifndef _WIN32 +// #include +// #endif + +// #include + +// #if defined(_WIN32) +// #if defined(_MSC_VER) && (_MSC_VER <= 1500) +// #else /* WIN32, but not old MSVC */ +// #include +// #endif /* _WIN32 */ +// #include +// #else +// #include +// #endif + +// #if defined(_OPENMP) + +// #if defined(_WIN32) +// #if defined(_MSC_VER) && +// (_MSC_VER >= 1600 || (_MSC_VER == 1500 && _MSC_FULL_VER >= 150030729)) +/* VS2010+ : OpenMP works OK, VS2008: have tested by cgilles */ +// #define LIBRAW_USE_OPENMP +// #elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 910) +/* Have not tested on 9.x and 10.x, but Intel documentation claims OpenMP 2.5 + * support in 9.1 */ +// #define LIBRAW_USE_OPENMP +// #else +// #undef LIBRAW_USE_OPENMP +// #endif +/* Not Win32 */ +// #elif (defined(__APPLE__) || defined(__MACOSX__)) && defined(_REENTRANT) +/* Latest XCode works with OpenMP, need to recheck here */ +// #undef LIBRAW_USE_OPENMP +// #else +// #define LIBRAW_USE_OPENMP +// #endif +// #endif + +// #ifdef LIBRAW_USE_OPENMP +// #endif + +// #ifdef __cplusplus +// #endif + +// #if defined(USE_LCMS) +// #include +// #elif defined(USE_LCMS2) +// #include +// #else +// #define NO_LCMS +// #endif + +// #include "libraw_const.h" +// #include "libraw_version.h" + +// #ifdef _WIN32 +// #else +// #endif + +// #ifdef LIBRAW_WIN32_DLLDEFS +// #else +// #define DllDef +// Targeting ../libraw_decoder_info_t.java + + +// Targeting ../libraw_internal_output_params_t.java + + +// Targeting ../memory_callback.java + + +// Targeting ../exif_parser_callback.java + + + + public static native void default_memory_callback(Pointer data, @Cast("const char*") BytePointer file, + @Cast("const char*") BytePointer where); + public static native void default_memory_callback(Pointer data, String file, + String where); +// Targeting ../data_callback.java + + + + public static native void default_data_callback(Pointer data, @Cast("const char*") BytePointer file, + int offset); + public static native void default_data_callback(Pointer data, String file, + int offset); +// Targeting ../progress_callback.java + + +// Targeting ../pre_identify_callback.java + + +// Targeting ../post_identify_callback.java + + +// Targeting ../process_step_callback.java + + +// Targeting ../libraw_callbacks_t.java + + +// Targeting ../libraw_processed_image_t.java + + +// Targeting ../libraw_iparams_t.java + + +// Targeting ../libraw_raw_inset_crop_t.java + + +// Targeting ../libraw_image_sizes_t.java + + +// Targeting ../ph1_t.java + + +// Targeting ../libraw_dng_color_t.java + + +// Targeting ../libraw_dng_levels_t.java + + +// Targeting ../libraw_P1_color_t.java + + +// Targeting ../libraw_canon_makernotes_t.java + + +// Targeting ../libraw_hasselblad_makernotes_t.java + + +// Targeting ../libraw_fuji_info_t.java + + +// Targeting ../libraw_sensor_highspeed_crop_t.java + + +// Targeting ../libraw_nikon_makernotes_t.java + + +// Targeting ../libraw_olympus_makernotes_t.java + + +// Targeting ../libraw_panasonic_makernotes_t.java + + +// Targeting ../libraw_pentax_makernotes_t.java + + +// Targeting ../libraw_samsung_makernotes_t.java + + +// Targeting ../libraw_kodak_makernotes_t.java + + +// Targeting ../libraw_p1_makernotes_t.java + + +// Targeting ../libraw_sony_info_t.java + + +// Targeting ../libraw_colordata_t.java + + +// Targeting ../libraw_thumbnail_t.java + + +// Targeting ../libraw_gps_info_t.java + + +// Targeting ../libraw_imgother_t.java + + +// Targeting ../libraw_metadata_common_t.java + + +// Targeting ../libraw_output_params_t.java + + +// Targeting ../libraw_rawdata_t.java + + +// Targeting ../libraw_makernotes_lens_t.java + + +// Targeting ../libraw_nikonlens_t.java + + +// Targeting ../libraw_dnglens_t.java + + +// Targeting ../libraw_lensinfo_t.java + + +// Targeting ../libraw_makernotes_t.java + + +// Targeting ../libraw_shootinginfo_t.java + + +// Targeting ../libraw_custom_camera_t.java + + +// Targeting ../libraw_data_t.java + + +// Targeting ../fuji_compressed_params.java + + + +// #ifdef __cplusplus +// #endif + +// #if defined (LIBRAW_LIBRARY_BUILD) && defined(__cplusplus) + +// #endif + + +/* Byte order */ +// #if defined(__POWERPC__) +public static final int LibRawBigEndian = 1; + +// #elif defined(__INTEL__) + +// #elif defined(_M_IX86) || defined(__i386__) + +// #elif defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) + +// #elif defined(__LITTLE_ENDIAN__) + +// #elif defined(__BIG_ENDIAN__) +// #elif defined(_ARM_) + +// #elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + +// #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +// #else +// #ifndef qXCodeRez +// #error Unable to figure out byte order. +// #endif +// #endif + +// #endif + + +// Parsed from libraw/libraw_datastream.h + +/* -*- C -*- + * File: libraw_datastream.h + * Copyright 2008-2020 LibRaw LLC (info@libraw.org) + * Created: Sun Jan 18 13:07:35 2009 + * + * LibRaw Data stream interface + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + + */ + +// #ifndef __LIBRAW_DATASTREAM_H +// #define __LIBRAW_DATASTREAM_H + +// #include +// #include +// #include +// #include + +// #ifndef __cplusplus + +// #else /* __cplusplus */ +// #if defined _WIN32 +// #ifndef LIBRAW_NO_WINSOCK2 +// #include +// #endif +// #endif +/* No unique_ptr on Apple ?? */ +// #if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520) || +// (defined(_MSC_VER) && _MSVC_LANG >= 201103L) +/* OK - use unique_ptr unless LIBRAW_USE_AUTOPTR defined externally*/ +// #else +/* Force to use auto_ptr */ +// #ifndef LIBRAW_USE_AUTOPTR +// #define LIBRAW_USE_AUTOPTR +// #endif +// #endif + +// #include "libraw_const.h" +// #include "libraw_types.h" +// #include +// #include +// #include + +// #if defined(_WIN32) && (_MSC_VER) >= 1500 +// #define WIN32SECURECALLS +// #endif + +// #ifdef USE_DNGSDK +// #endif /* DNGSDK */ + +// #define IOERROR() +// do +// { +// throw LIBRAW_EXCEPTION_IO_EOF; +// } while (0) +// Targeting ../LibRaw_bit_buffer.java + + +// Targeting ../LibRaw_abstract_datastream.java + + +// Targeting ../LibRaw_file_datastream.java + + +// Targeting ../LibRaw_buffer_datastream.java + + +// Targeting ../LibRaw_bigfile_datastream.java + + + +// #ifdef LIBRAW_WIN32_CALLS + +// #endif + +// #ifdef USE_DNGSDK + +// #endif + +// #endif /* cplusplus */ + +// #endif + + +// Parsed from libraw/libraw.h + +/* -*- C++ -*- + * File: libraw.h + * Copyright 2008-2020 LibRaw LLC (info@libraw.org) + * Created: Sat Mar 8, 2008 + * + * LibRaw C++ interface + * + +LibRaw is free software; you can redistribute it and/or modify +it under the terms of the one of two licenses as you choose: + +1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1 + (See file LICENSE.LGPL provided in LibRaw distribution archive for details). + +2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 + (See file LICENSE.CDDL provided in LibRaw distribution archive for details). + +*/ + +// #ifndef _LIBRAW_CLASS_H +// #define _LIBRAW_CLASS_H + +// #ifdef __linux__ +public static final int _FILE_OFFSET_BITS = 64; +// #endif + +/* maximum file size to use LibRaw_file_datastream (fully buffered) I/O */ +public static final long LIBRAW_USE_STREAMS_DATASTREAM_MAXSIZE = (250 * 1024L * 1024L); + +// #include +// #include +// #include +// #include +// #include + +/* better WIN32 defines */ + +/* better WIN32 defines */ + +// #if defined(WIN32) || defined(_WIN32) + +/* Win32 API */ +// # ifndef LIBRAW_WIN32_CALLS +// # define LIBRAW_WIN32_CALLS +// # endif + +/* DLLs: Microsoft or Intel compiler */ +// # if defined(_MSC_VER) || defined(__INTEL_COMPILER) +// # ifndef LIBRAW_WIN32_DLLDEFS +// # define LIBRAW_WIN32_DLLDEFS +// # endif +// #endif + +/* wchar_t* API for std::filebuf */ +// # if (defined(_MSC_VER) && (_MSC_VER > 1310)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 910)) +// # ifndef LIBRAW_WIN32_UNICODEPATHS +// # define LIBRAW_WIN32_UNICODEPATHS +// # endif +// # elif _GLIBCXX_HAVE__WFOPEN && _GLIBCXX_USE_WCHAR_T +// # ifndef LIBRAW_WIN32_UNICODEPATHS +// # define LIBRAW_WIN32_UNICODEPATHS +// # endif +// # endif + +// #endif + +// #include "libraw_datastream.h" +// #include "libraw_types.h" +// #include "libraw_const.h" +// #include "libraw_internal.h" +// #include "libraw_alloc.h" + +// #ifdef __cplusplus +// #endif + public static native @Cast("const char*") BytePointer libraw_strerror(int errorcode); + public static native @Cast("const char*") BytePointer libraw_strprogress(LibRaw_progress arg0); + public static native String libraw_strprogress(@Cast("LibRaw_progress") int arg0); + /* LibRaw C API */ + public static native libraw_data_t libraw_init(@Cast("unsigned int") int flags); + public static native int libraw_open_file(libraw_data_t arg0, @Cast("const char*") BytePointer arg1); + public static native int libraw_open_file(libraw_data_t arg0, String arg1); + public static native int libraw_open_file_ex(libraw_data_t arg0, @Cast("const char*") BytePointer arg1, + @Cast("INT64") long max_buff_sz); + public static native int libraw_open_file_ex(libraw_data_t arg0, String arg1, + @Cast("INT64") long max_buff_sz); +// #if defined(_WIN32) || defined(WIN32) +// #endif + public static native int libraw_open_buffer(libraw_data_t arg0, Pointer buffer, @Cast("size_t") long size); + public static native int libraw_unpack(libraw_data_t arg0); + public static native int libraw_unpack_thumb(libraw_data_t arg0); + public static native void libraw_recycle_datastream(libraw_data_t arg0); + public static native void libraw_recycle(libraw_data_t arg0); + public static native void libraw_close(libraw_data_t arg0); + public static native void libraw_subtract_black(libraw_data_t arg0); + public static native int libraw_raw2image(libraw_data_t arg0); + public static native void libraw_free_image(libraw_data_t arg0); + /* version helpers */ + public static native @Cast("const char*") BytePointer libraw_version(); + public static native int libraw_versionNumber(); + /* Camera list */ + public static native @Cast("const char**") PointerPointer libraw_cameraList(); + public static native int libraw_cameraCount(); + + /* helpers */ + public static native void libraw_set_memerror_handler(libraw_data_t arg0, memory_callback cb, + Pointer datap); + public static native void libraw_set_exifparser_handler(libraw_data_t arg0, + exif_parser_callback cb, + Pointer datap); + public static native void libraw_set_dataerror_handler(libraw_data_t arg0, data_callback func, + Pointer datap); + public static native void libraw_set_progress_handler(libraw_data_t arg0, progress_callback cb, + Pointer datap); + public static native @Cast("const char*") BytePointer libraw_unpack_function_name(libraw_data_t lr); + public static native int libraw_get_decoder_info(libraw_data_t lr, + libraw_decoder_info_t d); + public static native int libraw_COLOR(libraw_data_t arg0, int row, int col); + public static native @Cast("unsigned") int libraw_capabilities(); + + /* DCRAW compatibility */ + public static native int libraw_adjust_sizes_info_only(libraw_data_t arg0); + public static native int libraw_dcraw_ppm_tiff_writer(libraw_data_t lr, + @Cast("const char*") BytePointer filename); + public static native int libraw_dcraw_ppm_tiff_writer(libraw_data_t lr, + String filename); + public static native int libraw_dcraw_thumb_writer(libraw_data_t lr, @Cast("const char*") BytePointer fname); + public static native int libraw_dcraw_thumb_writer(libraw_data_t lr, String fname); + public static native int libraw_dcraw_process(libraw_data_t lr); + public static native libraw_processed_image_t libraw_dcraw_make_mem_image(libraw_data_t lr, IntPointer errc); + public static native libraw_processed_image_t libraw_dcraw_make_mem_image(libraw_data_t lr, IntBuffer errc); + public static native libraw_processed_image_t libraw_dcraw_make_mem_image(libraw_data_t lr, int[] errc); + public static native libraw_processed_image_t libraw_dcraw_make_mem_thumb(libraw_data_t lr, IntPointer errc); + public static native libraw_processed_image_t libraw_dcraw_make_mem_thumb(libraw_data_t lr, IntBuffer errc); + public static native libraw_processed_image_t libraw_dcraw_make_mem_thumb(libraw_data_t lr, int[] errc); + public static native void libraw_dcraw_clear_mem(libraw_processed_image_t arg0); + /* getters/setters used by 3DLut Creator */ + public static native void libraw_set_demosaic(libraw_data_t lr, int value); + public static native void libraw_set_output_color(libraw_data_t lr, int value); + public static native void libraw_set_user_mul(libraw_data_t lr, int index, float val); + public static native void libraw_set_output_bps(libraw_data_t lr, int value); + public static native void libraw_set_gamma(libraw_data_t lr, int index, float value); + public static native void libraw_set_no_auto_bright(libraw_data_t lr, int value); + public static native void libraw_set_bright(libraw_data_t lr, float value); + public static native void libraw_set_highlight(libraw_data_t lr, int value); + public static native void libraw_set_fbdd_noiserd(libraw_data_t lr, int value); + public static native int libraw_get_raw_height(libraw_data_t lr); + public static native int libraw_get_raw_width(libraw_data_t lr); + public static native int libraw_get_iheight(libraw_data_t lr); + public static native int libraw_get_iwidth(libraw_data_t lr); + public static native float libraw_get_cam_mul(libraw_data_t lr, int index); + public static native float libraw_get_pre_mul(libraw_data_t lr, int index); + public static native float libraw_get_rgb_cam(libraw_data_t lr, int index1, int index2); + public static native int libraw_get_color_maximum(libraw_data_t lr); + public static native void libraw_set_output_tif(libraw_data_t lr, int value); + public static native libraw_iparams_t libraw_get_iparams(libraw_data_t lr); + public static native libraw_lensinfo_t libraw_get_lensinfo(libraw_data_t lr); + public static native libraw_imgother_t libraw_get_imgother(libraw_data_t lr); + +// #ifdef __cplusplus +// Targeting ../LibRaw.java + + + +// #ifdef LIBRAW_LIBRARY_BUILD +// #define RUN_CALLBACK(stage, iter, expect) +// if (callbacks.progress_cb) +// { +// int rr = (*callbacks.progress_cb)(callbacks.progresscb_data, stage, iter, +// expect); +// if (rr != 0) +// throw LIBRAW_EXCEPTION_CANCELLED_BY_CALLBACK; +// } +// #endif + +// #endif /* __cplusplus */ + +// #endif /* _LIBRAW_CLASS_H */ + + +} diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_P1_color_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_P1_color_t.java new file mode 100644 index 00000000000..2cc2f0022ef --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_P1_color_t.java @@ -0,0 +1,34 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_P1_color_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_P1_color_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_P1_color_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_P1_color_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_P1_color_t position(long position) { + return (libraw_P1_color_t)super.position(position); + } + @Override public libraw_P1_color_t getPointer(long i) { + return new libraw_P1_color_t((Pointer)this).offsetAddress(i); + } + + public native float romm_cam(int i); public native libraw_P1_color_t romm_cam(int i, float setter); + @MemberGetter public native FloatPointer romm_cam(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_callbacks_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_callbacks_t.java new file mode 100644 index 00000000000..715449b710a --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_callbacks_t.java @@ -0,0 +1,54 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_callbacks_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_callbacks_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_callbacks_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_callbacks_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_callbacks_t position(long position) { + return (libraw_callbacks_t)super.position(position); + } + @Override public libraw_callbacks_t getPointer(long i) { + return new libraw_callbacks_t((Pointer)this).offsetAddress(i); + } + + public native memory_callback mem_cb(); public native libraw_callbacks_t mem_cb(memory_callback setter); + public native Pointer memcb_data(); public native libraw_callbacks_t memcb_data(Pointer setter); + + public native data_callback data_cb(); public native libraw_callbacks_t data_cb(data_callback setter); + public native Pointer datacb_data(); public native libraw_callbacks_t datacb_data(Pointer setter); + + public native progress_callback progress_cb(); public native libraw_callbacks_t progress_cb(progress_callback setter); + public native Pointer progresscb_data(); public native libraw_callbacks_t progresscb_data(Pointer setter); + + public native exif_parser_callback exif_cb(); public native libraw_callbacks_t exif_cb(exif_parser_callback setter); + public native Pointer exifparser_data(); public native libraw_callbacks_t exifparser_data(Pointer setter); + public native pre_identify_callback pre_identify_cb(); public native libraw_callbacks_t pre_identify_cb(pre_identify_callback setter); + public native post_identify_callback post_identify_cb(); public native libraw_callbacks_t post_identify_cb(post_identify_callback setter); + public native process_step_callback pre_subtractblack_cb(); public native libraw_callbacks_t pre_subtractblack_cb(process_step_callback setter); + public native process_step_callback pre_scalecolors_cb(); public native libraw_callbacks_t pre_scalecolors_cb(process_step_callback setter); + public native process_step_callback pre_preinterpolate_cb(); public native libraw_callbacks_t pre_preinterpolate_cb(process_step_callback setter); + public native process_step_callback pre_interpolate_cb(); public native libraw_callbacks_t pre_interpolate_cb(process_step_callback setter); + public native process_step_callback interpolate_bayer_cb(); public native libraw_callbacks_t interpolate_bayer_cb(process_step_callback setter); + public native process_step_callback interpolate_xtrans_cb(); public native libraw_callbacks_t interpolate_xtrans_cb(process_step_callback setter); + public native process_step_callback post_interpolate_cb(); public native libraw_callbacks_t post_interpolate_cb(process_step_callback setter); + public native process_step_callback pre_converttorgb_cb(); public native libraw_callbacks_t pre_converttorgb_cb(process_step_callback setter); + public native process_step_callback post_converttorgb_cb(); public native libraw_callbacks_t post_converttorgb_cb(process_step_callback setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_canon_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_canon_makernotes_t.java new file mode 100644 index 00000000000..dadbef597cf --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_canon_makernotes_t.java @@ -0,0 +1,107 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_canon_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_canon_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_canon_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_canon_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_canon_makernotes_t position(long position) { + return (libraw_canon_makernotes_t)super.position(position); + } + @Override public libraw_canon_makernotes_t getPointer(long i) { + return new libraw_canon_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native int ColorDataVer(); public native libraw_canon_makernotes_t ColorDataVer(int setter); + public native int ColorDataSubVer(); public native libraw_canon_makernotes_t ColorDataSubVer(int setter); + public native int SpecularWhiteLevel(); public native libraw_canon_makernotes_t SpecularWhiteLevel(int setter); + public native int NormalWhiteLevel(); public native libraw_canon_makernotes_t NormalWhiteLevel(int setter); + public native int ChannelBlackLevel(int i); public native libraw_canon_makernotes_t ChannelBlackLevel(int i, int setter); + @MemberGetter public native IntPointer ChannelBlackLevel(); + public native int AverageBlackLevel(); public native libraw_canon_makernotes_t AverageBlackLevel(int setter); + /* multishot */ + public native @Cast("unsigned int") int multishot(int i); public native libraw_canon_makernotes_t multishot(int i, int setter); + @MemberGetter public native @Cast("unsigned int*") IntPointer multishot(); + /* metering */ + public native short MeteringMode(); public native libraw_canon_makernotes_t MeteringMode(short setter); + public native short SpotMeteringMode(); public native libraw_canon_makernotes_t SpotMeteringMode(short setter); + public native @Cast("uchar") byte FlashMeteringMode(); public native libraw_canon_makernotes_t FlashMeteringMode(byte setter); + public native short FlashExposureLock(); public native libraw_canon_makernotes_t FlashExposureLock(short setter); + public native short ExposureMode(); public native libraw_canon_makernotes_t ExposureMode(short setter); + public native short AESetting(); public native libraw_canon_makernotes_t AESetting(short setter); + public native @Cast("uchar") byte HighlightTonePriority(); public native libraw_canon_makernotes_t HighlightTonePriority(byte setter); + /* stabilization */ + public native short ImageStabilization(); public native libraw_canon_makernotes_t ImageStabilization(short setter); + /* focus */ + public native short FocusMode(); public native libraw_canon_makernotes_t FocusMode(short setter); + public native short AFPoint(); public native libraw_canon_makernotes_t AFPoint(short setter); + public native short FocusContinuous(); public native libraw_canon_makernotes_t FocusContinuous(short setter); + public native short AFPointsInFocus30D(); public native libraw_canon_makernotes_t AFPointsInFocus30D(short setter); + public native @Cast("uchar") byte AFPointsInFocus1D(int i); public native libraw_canon_makernotes_t AFPointsInFocus1D(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer AFPointsInFocus1D(); + public native @Cast("ushort") short AFPointsInFocus5D(); public native libraw_canon_makernotes_t AFPointsInFocus5D(short setter); /* bytes in reverse*/ + /* AFInfo */ + public native @Cast("ushort") short AFAreaMode(); public native libraw_canon_makernotes_t AFAreaMode(short setter); + public native @Cast("ushort") short NumAFPoints(); public native libraw_canon_makernotes_t NumAFPoints(short setter); + public native @Cast("ushort") short ValidAFPoints(); public native libraw_canon_makernotes_t ValidAFPoints(short setter); + public native @Cast("ushort") short AFImageWidth(); public native libraw_canon_makernotes_t AFImageWidth(short setter); + public native @Cast("ushort") short AFImageHeight(); public native libraw_canon_makernotes_t AFImageHeight(short setter); + public native short AFAreaWidths(int i); public native libraw_canon_makernotes_t AFAreaWidths(int i, short setter); + @MemberGetter public native ShortPointer AFAreaWidths(); /* cycle to NumAFPoints */ + public native short AFAreaHeights(int i); public native libraw_canon_makernotes_t AFAreaHeights(int i, short setter); + @MemberGetter public native ShortPointer AFAreaHeights(); /* --''-- */ + public native short AFAreaXPositions(int i); public native libraw_canon_makernotes_t AFAreaXPositions(int i, short setter); + @MemberGetter public native ShortPointer AFAreaXPositions(); /* --''-- */ + public native short AFAreaYPositions(int i); public native libraw_canon_makernotes_t AFAreaYPositions(int i, short setter); + @MemberGetter public native ShortPointer AFAreaYPositions(); /* --''-- */ + public native short AFPointsInFocus(int i); public native libraw_canon_makernotes_t AFPointsInFocus(int i, short setter); + @MemberGetter public native ShortPointer AFPointsInFocus(); /* cycle to floor((NumAFPoints+15)/16) */ + public native short AFPointsSelected(int i); public native libraw_canon_makernotes_t AFPointsSelected(int i, short setter); + @MemberGetter public native ShortPointer AFPointsSelected(); /* --''-- */ + public native @Cast("ushort") short PrimaryAFPoint(); public native libraw_canon_makernotes_t PrimaryAFPoint(short setter); + /* flash */ + public native short FlashMode(); public native libraw_canon_makernotes_t FlashMode(short setter); + public native short FlashActivity(); public native libraw_canon_makernotes_t FlashActivity(short setter); + public native short FlashBits(); public native libraw_canon_makernotes_t FlashBits(short setter); + public native short ManualFlashOutput(); public native libraw_canon_makernotes_t ManualFlashOutput(short setter); + public native short FlashOutput(); public native libraw_canon_makernotes_t FlashOutput(short setter); + public native short FlashGuideNumber(); public native libraw_canon_makernotes_t FlashGuideNumber(short setter); + /* drive */ + public native short ContinuousDrive(); public native libraw_canon_makernotes_t ContinuousDrive(short setter); + /* sensor */ + public native short SensorWidth(); public native libraw_canon_makernotes_t SensorWidth(short setter); + public native short SensorHeight(); public native libraw_canon_makernotes_t SensorHeight(short setter); + public native short SensorLeftBorder(); public native libraw_canon_makernotes_t SensorLeftBorder(short setter); + public native short SensorTopBorder(); public native libraw_canon_makernotes_t SensorTopBorder(short setter); + public native short SensorRightBorder(); public native libraw_canon_makernotes_t SensorRightBorder(short setter); + public native short SensorBottomBorder(); public native libraw_canon_makernotes_t SensorBottomBorder(short setter); + public native short BlackMaskLeftBorder(); public native libraw_canon_makernotes_t BlackMaskLeftBorder(short setter); + public native short BlackMaskTopBorder(); public native libraw_canon_makernotes_t BlackMaskTopBorder(short setter); + public native short BlackMaskRightBorder(); public native libraw_canon_makernotes_t BlackMaskRightBorder(short setter); + public native short BlackMaskBottomBorder(); public native libraw_canon_makernotes_t BlackMaskBottomBorder(short setter); + public native int AFMicroAdjMode(); public native libraw_canon_makernotes_t AFMicroAdjMode(int setter); + public native float AFMicroAdjValue(); public native libraw_canon_makernotes_t AFMicroAdjValue(float setter); + public native short MakernotesFlip(); public native libraw_canon_makernotes_t MakernotesFlip(short setter); + public native short RecordMode(); public native libraw_canon_makernotes_t RecordMode(short setter); + public native short SRAWQuality(); public native libraw_canon_makernotes_t SRAWQuality(short setter); + public native @Cast("unsigned") int wbi(); public native libraw_canon_makernotes_t wbi(int setter); + public native float firmware(); public native libraw_canon_makernotes_t firmware(float setter); + public native short RF_lensID(); public native libraw_canon_makernotes_t RF_lensID(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_colordata_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_colordata_t.java new file mode 100644 index 00000000000..ea5aec77442 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_colordata_t.java @@ -0,0 +1,99 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_colordata_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_colordata_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_colordata_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_colordata_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_colordata_t position(long position) { + return (libraw_colordata_t)super.position(position); + } + @Override public libraw_colordata_t getPointer(long i) { + return new libraw_colordata_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short curve(int i); public native libraw_colordata_t curve(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer curve(); + public native @Cast("unsigned") int cblack(int i); public native libraw_colordata_t cblack(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer cblack(); + public native @Cast("unsigned") int black(); public native libraw_colordata_t black(int setter); + public native @Cast("unsigned") int data_maximum(); public native libraw_colordata_t data_maximum(int setter); + public native @Cast("unsigned") int maximum(); public native libraw_colordata_t maximum(int setter); + public native long linear_max(int i); public native libraw_colordata_t linear_max(int i, long setter); + @MemberGetter public native CLongPointer linear_max(); + public native float fmaximum(); public native libraw_colordata_t fmaximum(float setter); + public native float fnorm(); public native libraw_colordata_t fnorm(float setter); + public native @Cast("ushort") short white(int i, int j); public native libraw_colordata_t white(int i, int j, short setter); + @MemberGetter public native @Cast("ushort(* /*[8]*/ )[8]") ShortPointer white(); + public native float cam_mul(int i); public native libraw_colordata_t cam_mul(int i, float setter); + @MemberGetter public native FloatPointer cam_mul(); + public native float pre_mul(int i); public native libraw_colordata_t pre_mul(int i, float setter); + @MemberGetter public native FloatPointer pre_mul(); + public native float cmatrix(int i, int j); public native libraw_colordata_t cmatrix(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[4]") FloatPointer cmatrix(); + public native float ccm(int i, int j); public native libraw_colordata_t ccm(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[4]") FloatPointer ccm(); + public native float rgb_cam(int i, int j); public native libraw_colordata_t rgb_cam(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[4]") FloatPointer rgb_cam(); + public native float cam_xyz(int i, int j); public native libraw_colordata_t cam_xyz(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[4]*/ )[3]") FloatPointer cam_xyz(); + public native @ByRef ph1_t phase_one_data(); public native libraw_colordata_t phase_one_data(ph1_t setter); + public native float flash_used(); public native libraw_colordata_t flash_used(float setter); + public native float canon_ev(); public native libraw_colordata_t canon_ev(float setter); + public native @Cast("char") byte model2(int i); public native libraw_colordata_t model2(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer model2(); + public native @Cast("char") byte UniqueCameraModel(int i); public native libraw_colordata_t UniqueCameraModel(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer UniqueCameraModel(); + public native @Cast("char") byte LocalizedCameraModel(int i); public native libraw_colordata_t LocalizedCameraModel(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LocalizedCameraModel(); + public native @Cast("char") byte ImageUniqueID(int i); public native libraw_colordata_t ImageUniqueID(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer ImageUniqueID(); + public native @Cast("char") byte RawDataUniqueID(int i); public native libraw_colordata_t RawDataUniqueID(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer RawDataUniqueID(); + public native @Cast("char") byte OriginalRawFileName(int i); public native libraw_colordata_t OriginalRawFileName(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer OriginalRawFileName(); + public native Pointer profile(); public native libraw_colordata_t profile(Pointer setter); + public native @Cast("unsigned") int profile_length(); public native libraw_colordata_t profile_length(int setter); + public native @Cast("unsigned") int black_stat(int i); public native libraw_colordata_t black_stat(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer black_stat(); + public native @ByRef libraw_dng_color_t dng_color(int i); public native libraw_colordata_t dng_color(int i, libraw_dng_color_t setter); + @MemberGetter public native libraw_dng_color_t dng_color(); + public native @ByRef libraw_dng_levels_t dng_levels(); public native libraw_colordata_t dng_levels(libraw_dng_levels_t setter); + public native int WB_Coeffs(int i, int j); public native libraw_colordata_t WB_Coeffs(int i, int j, int setter); + @MemberGetter public native @Cast("int(* /*[256]*/ )[4]") IntPointer WB_Coeffs(); /* R, G1, B, G2 coeffs */ + public native float WBCT_Coeffs(int i, int j); public native libraw_colordata_t WBCT_Coeffs(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[64]*/ )[5]") FloatPointer WBCT_Coeffs(); /* CCT, than R, G1, B, G2 coeffs */ + public native int as_shot_wb_applied(); public native libraw_colordata_t as_shot_wb_applied(int setter); + public native @ByRef libraw_P1_color_t P1_color(int i); public native libraw_colordata_t P1_color(int i, libraw_P1_color_t setter); + @MemberGetter public native libraw_P1_color_t P1_color(); + public native @Cast("unsigned") int raw_bps(); public native libraw_colordata_t raw_bps(int setter); /* for Phase One, raw format */ + /* Phase One raw format values, makernotes tag 0x010e: + 0 Name unknown + 1 "RAW 1" + 2 "RAW 2" + 3 "IIQ L" + 4 Never seen + 5 "IIQ S" + 6 "IIQ S v.2" + 7 Never seen + 8 Name unknown + */ + public native int ExifColorSpace(); public native libraw_colordata_t ExifColorSpace(int setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_custom_camera_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_custom_camera_t.java new file mode 100644 index 00000000000..9d1411a3e6f --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_custom_camera_t.java @@ -0,0 +1,48 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_custom_camera_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_custom_camera_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_custom_camera_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_custom_camera_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_custom_camera_t position(long position) { + return (libraw_custom_camera_t)super.position(position); + } + @Override public libraw_custom_camera_t getPointer(long i) { + return new libraw_custom_camera_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int fsize(); public native libraw_custom_camera_t fsize(int setter); + public native @Cast("ushort") short rw(); public native libraw_custom_camera_t rw(short setter); + public native @Cast("ushort") short rh(); public native libraw_custom_camera_t rh(short setter); + public native @Cast("uchar") byte lm(); public native libraw_custom_camera_t lm(byte setter); + public native @Cast("uchar") byte tm(); public native libraw_custom_camera_t tm(byte setter); + public native @Cast("uchar") byte rm(); public native libraw_custom_camera_t rm(byte setter); + public native @Cast("uchar") byte bm(); public native libraw_custom_camera_t bm(byte setter); + public native @Cast("ushort") short lf(); public native libraw_custom_camera_t lf(short setter); + public native @Cast("uchar") byte cf(); public native libraw_custom_camera_t cf(byte setter); + public native @Cast("uchar") byte max(); public native libraw_custom_camera_t max(byte setter); + public native @Cast("uchar") byte flags(); public native libraw_custom_camera_t flags(byte setter); + public native @Cast("char") byte t_make(int i); public native libraw_custom_camera_t t_make(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer t_make(); + public native @Cast("char") byte t_model(int i); public native libraw_custom_camera_t t_model(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer t_model(); + public native @Cast("ushort") short offset(); public native libraw_custom_camera_t offset(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_data_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_data_t.java new file mode 100644 index 00000000000..e83443fd1d5 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_data_t.java @@ -0,0 +1,47 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_data_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_data_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_data_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_data_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_data_t position(long position) { + return (libraw_data_t)super.position(position); + } + @Override public libraw_data_t getPointer(long i) { + return new libraw_data_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short image(int i, int j); public native libraw_data_t image(int i, int j, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer image(); + public native @ByRef libraw_image_sizes_t sizes(); public native libraw_data_t sizes(libraw_image_sizes_t setter); + public native @ByRef libraw_iparams_t idata(); public native libraw_data_t idata(libraw_iparams_t setter); + public native @ByRef libraw_lensinfo_t lens(); public native libraw_data_t lens(libraw_lensinfo_t setter); + public native @ByRef libraw_makernotes_t makernotes(); public native libraw_data_t makernotes(libraw_makernotes_t setter); + public native @ByRef libraw_shootinginfo_t shootinginfo(); public native libraw_data_t shootinginfo(libraw_shootinginfo_t setter); + public native @ByRef libraw_output_params_t params(); public native libraw_data_t params(libraw_output_params_t setter); + public native @Cast("unsigned int") int progress_flags(); public native libraw_data_t progress_flags(int setter); + public native @Cast("unsigned int") int process_warnings(); public native libraw_data_t process_warnings(int setter); + public native @ByRef libraw_colordata_t color(); public native libraw_data_t color(libraw_colordata_t setter); + public native @ByRef libraw_imgother_t other(); public native libraw_data_t other(libraw_imgother_t setter); + public native @ByRef libraw_thumbnail_t thumbnail(); public native libraw_data_t thumbnail(libraw_thumbnail_t setter); + public native @ByRef libraw_rawdata_t rawdata(); public native libraw_data_t rawdata(libraw_rawdata_t setter); + public native Pointer parent_class(); public native libraw_data_t parent_class(Pointer setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_decoder_info_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_decoder_info_t.java new file mode 100644 index 00000000000..d94769edc66 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_decoder_info_t.java @@ -0,0 +1,35 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + +// #endif + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_decoder_info_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_decoder_info_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_decoder_info_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_decoder_info_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_decoder_info_t position(long position) { + return (libraw_decoder_info_t)super.position(position); + } + @Override public libraw_decoder_info_t getPointer(long i) { + return new libraw_decoder_info_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("const char*") BytePointer decoder_name(); public native libraw_decoder_info_t decoder_name(BytePointer setter); + public native @Cast("unsigned") int decoder_flags(); public native libraw_decoder_info_t decoder_flags(int setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_color_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_color_t.java new file mode 100644 index 00000000000..579ed6d0fd6 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_color_t.java @@ -0,0 +1,40 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_dng_color_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_dng_color_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_dng_color_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_dng_color_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_dng_color_t position(long position) { + return (libraw_dng_color_t)super.position(position); + } + @Override public libraw_dng_color_t getPointer(long i) { + return new libraw_dng_color_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int parsedfields(); public native libraw_dng_color_t parsedfields(int setter); + public native @Cast("ushort") short illuminant(); public native libraw_dng_color_t illuminant(short setter); + public native float calibration(int i, int j); public native libraw_dng_color_t calibration(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[4]*/ )[4]") FloatPointer calibration(); + public native float colormatrix(int i, int j); public native libraw_dng_color_t colormatrix(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[4]*/ )[3]") FloatPointer colormatrix(); + public native float forwardmatrix(int i, int j); public native libraw_dng_color_t forwardmatrix(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[4]") FloatPointer forwardmatrix(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_levels_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_levels_t.java new file mode 100644 index 00000000000..80c2acec00d --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dng_levels_t.java @@ -0,0 +1,50 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_dng_levels_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_dng_levels_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_dng_levels_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_dng_levels_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_dng_levels_t position(long position) { + return (libraw_dng_levels_t)super.position(position); + } + @Override public libraw_dng_levels_t getPointer(long i) { + return new libraw_dng_levels_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int parsedfields(); public native libraw_dng_levels_t parsedfields(int setter); + public native @Cast("unsigned") int dng_cblack(int i); public native libraw_dng_levels_t dng_cblack(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer dng_cblack(); + public native @Cast("unsigned") int dng_black(); public native libraw_dng_levels_t dng_black(int setter); + public native float dng_fcblack(int i); public native libraw_dng_levels_t dng_fcblack(int i, float setter); + @MemberGetter public native FloatPointer dng_fcblack(); + public native float dng_fblack(); public native libraw_dng_levels_t dng_fblack(float setter); + public native @Cast("unsigned") int dng_whitelevel(int i); public native libraw_dng_levels_t dng_whitelevel(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer dng_whitelevel(); + public native @Cast("unsigned") int default_crop(int i); public native libraw_dng_levels_t default_crop(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer default_crop(); /* Origin and size */ + public native @Cast("unsigned") int preview_colorspace(); public native libraw_dng_levels_t preview_colorspace(int setter); + public native float analogbalance(int i); public native libraw_dng_levels_t analogbalance(int i, float setter); + @MemberGetter public native FloatPointer analogbalance(); + public native float asshotneutral(int i); public native libraw_dng_levels_t asshotneutral(int i, float setter); + @MemberGetter public native FloatPointer asshotneutral(); + public native float baseline_exposure(); public native libraw_dng_levels_t baseline_exposure(float setter); + public native float LinearResponseLimit(); public native libraw_dng_levels_t LinearResponseLimit(float setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_dnglens_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dnglens_t.java new file mode 100644 index 00000000000..aabe3fe6483 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_dnglens_t.java @@ -0,0 +1,36 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_dnglens_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_dnglens_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_dnglens_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_dnglens_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_dnglens_t position(long position) { + return (libraw_dnglens_t)super.position(position); + } + @Override public libraw_dnglens_t getPointer(long i) { + return new libraw_dnglens_t((Pointer)this).offsetAddress(i); + } + + public native float MinFocal(); public native libraw_dnglens_t MinFocal(float setter); + public native float MaxFocal(); public native libraw_dnglens_t MaxFocal(float setter); + public native float MaxAp4MinFocal(); public native libraw_dnglens_t MaxAp4MinFocal(float setter); + public native float MaxAp4MaxFocal(); public native libraw_dnglens_t MaxAp4MaxFocal(float setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_fuji_info_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_fuji_info_t.java new file mode 100644 index 00000000000..2e21d56e0f6 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_fuji_info_t.java @@ -0,0 +1,91 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_fuji_info_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_fuji_info_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_fuji_info_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_fuji_info_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_fuji_info_t position(long position) { + return (libraw_fuji_info_t)super.position(position); + } + @Override public libraw_fuji_info_t getPointer(long i) { + return new libraw_fuji_info_t((Pointer)this).offsetAddress(i); + } + + public native float ExpoMidPointShift(); public native libraw_fuji_info_t ExpoMidPointShift(float setter); + public native @Cast("ushort") short DynamicRange(); public native libraw_fuji_info_t DynamicRange(short setter); + public native @Cast("ushort") short FilmMode(); public native libraw_fuji_info_t FilmMode(short setter); + public native @Cast("ushort") short DynamicRangeSetting(); public native libraw_fuji_info_t DynamicRangeSetting(short setter); + public native @Cast("ushort") short DevelopmentDynamicRange(); public native libraw_fuji_info_t DevelopmentDynamicRange(short setter); + public native @Cast("ushort") short AutoDynamicRange(); public native libraw_fuji_info_t AutoDynamicRange(short setter); + public native @Cast("ushort") short DRangePriority(); public native libraw_fuji_info_t DRangePriority(short setter); + public native @Cast("ushort") short DRangePriorityAuto(); public native libraw_fuji_info_t DRangePriorityAuto(short setter); + public native @Cast("ushort") short DRangePriorityFixed(); public native libraw_fuji_info_t DRangePriorityFixed(short setter); + + /* + tag 0x9200, converted to BrightnessCompensation + F700, S3Pro, S5Pro, S20Pro, S200EXR + E550, E900, F810, S5600, S6500fd, S9000, S9500, S100FS + */ + public native float BrightnessCompensation(); public native libraw_fuji_info_t BrightnessCompensation(float setter); /* in EV, if =4, raw data * 2^4 */ + + public native @Cast("ushort") short FocusMode(); public native libraw_fuji_info_t FocusMode(short setter); + public native @Cast("ushort") short AFMode(); public native libraw_fuji_info_t AFMode(short setter); + public native @Cast("ushort") short FocusPixel(int i); public native libraw_fuji_info_t FocusPixel(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer FocusPixel(); + public native @Cast("ushort") short ImageStabilization(int i); public native libraw_fuji_info_t ImageStabilization(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer ImageStabilization(); + public native @Cast("ushort") short FlashMode(); public native libraw_fuji_info_t FlashMode(short setter); + public native @Cast("ushort") short WB_Preset(); public native libraw_fuji_info_t WB_Preset(short setter); + + /* ShutterType: + 0 - mechanical + 1 = electronic + 2 = electronic, long shutter speed + 3 = electronic, front curtain + */ + public native @Cast("ushort") short ShutterType(); public native libraw_fuji_info_t ShutterType(short setter); + public native @Cast("ushort") short ExrMode(); public native libraw_fuji_info_t ExrMode(short setter); + public native @Cast("ushort") short Macro(); public native libraw_fuji_info_t Macro(short setter); + public native @Cast("unsigned") int Rating(); public native libraw_fuji_info_t Rating(int setter); + + /* CropMode: + 1 - FF on GFX, + 2 - sports finder (mechanical shutter), + 4 - 1.25x crop (electronic shutter, continuous high) + */ + public native @Cast("ushort") short CropMode(); public native libraw_fuji_info_t CropMode(short setter); + public native @Cast("ushort") short FrameRate(); public native libraw_fuji_info_t FrameRate(short setter); + public native @Cast("ushort") short FrameWidth(); public native libraw_fuji_info_t FrameWidth(short setter); + public native @Cast("ushort") short FrameHeight(); public native libraw_fuji_info_t FrameHeight(short setter); + public native @Cast("char") byte SerialSignature(int i); public native libraw_fuji_info_t SerialSignature(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SerialSignature(); + public native @Cast("char") byte RAFVersion(int i); public native libraw_fuji_info_t RAFVersion(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer RAFVersion(); + public native @Cast("ushort") short RAFDataVersion(); public native libraw_fuji_info_t RAFDataVersion(short setter); + public native int isTSNERDTS(); public native libraw_fuji_info_t isTSNERDTS(int setter); + + /* DriveMode: + 0 - single frame + 1 - continuous low + 2 - continuous high + */ + public native short DriveMode(); public native libraw_fuji_info_t DriveMode(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_gps_info_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_gps_info_t.java new file mode 100644 index 00000000000..df04353c374 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_gps_info_t.java @@ -0,0 +1,44 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_gps_info_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_gps_info_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_gps_info_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_gps_info_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_gps_info_t position(long position) { + return (libraw_gps_info_t)super.position(position); + } + @Override public libraw_gps_info_t getPointer(long i) { + return new libraw_gps_info_t((Pointer)this).offsetAddress(i); + } + + public native float latitude(int i); public native libraw_gps_info_t latitude(int i, float setter); + @MemberGetter public native FloatPointer latitude(); /* Deg,min,sec */ + public native float longitude(int i); public native libraw_gps_info_t longitude(int i, float setter); + @MemberGetter public native FloatPointer longitude(); /* Deg,min,sec */ + public native float gpstimestamp(int i); public native libraw_gps_info_t gpstimestamp(int i, float setter); + @MemberGetter public native FloatPointer gpstimestamp(); /* Deg,min,sec */ + public native float altitude(); public native libraw_gps_info_t altitude(float setter); + public native @Cast("char") byte altref(); public native libraw_gps_info_t altref(byte setter); + public native @Cast("char") byte latref(); public native libraw_gps_info_t latref(byte setter); + public native @Cast("char") byte longref(); public native libraw_gps_info_t longref(byte setter); + public native @Cast("char") byte gpsstatus(); public native libraw_gps_info_t gpsstatus(byte setter); + public native @Cast("char") byte gpsparsed(); public native libraw_gps_info_t gpsparsed(byte setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_hasselblad_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_hasselblad_makernotes_t.java new file mode 100644 index 00000000000..cded1818a52 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_hasselblad_makernotes_t.java @@ -0,0 +1,77 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_hasselblad_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_hasselblad_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_hasselblad_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_hasselblad_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_hasselblad_makernotes_t position(long position) { + return (libraw_hasselblad_makernotes_t)super.position(position); + } + @Override public libraw_hasselblad_makernotes_t getPointer(long i) { + return new libraw_hasselblad_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native int BaseISO(); public native libraw_hasselblad_makernotes_t BaseISO(int setter); + public native double Gain(); public native libraw_hasselblad_makernotes_t Gain(double setter); + public native @Cast("char") byte Sensor(int i); public native libraw_hasselblad_makernotes_t Sensor(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Sensor(); + public native @Cast("char") byte SensorUnit(int i); public native libraw_hasselblad_makernotes_t SensorUnit(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SensorUnit(); // SU + public native @Cast("char") byte HostBody(int i); public native libraw_hasselblad_makernotes_t HostBody(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer HostBody(); // HB + public native int SensorCode(); public native libraw_hasselblad_makernotes_t SensorCode(int setter); + public native int SensorSubCode(); public native libraw_hasselblad_makernotes_t SensorSubCode(int setter); + public native int CoatingCode(); public native libraw_hasselblad_makernotes_t CoatingCode(int setter); + public native int uncropped(); public native libraw_hasselblad_makernotes_t uncropped(int setter); + +/* CaptureSequenceInitiator is based on the content of the 'model' tag + - values like 'Pinhole', 'Flash Sync', '500 Mech.' etc in .3FR 'model' tag + come from MAIN MENU > SETTINGS > Camera; + - otherwise 'model' contains: + 1. if CF/CFV/CFH, SU enclosure, can be with SU type if '-' is present + 2. else if '-' is present, HB + SU type; + 3. HB; +*/ + public native @Cast("char") byte CaptureSequenceInitiator(int i); public native libraw_hasselblad_makernotes_t CaptureSequenceInitiator(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer CaptureSequenceInitiator(); + +/* SensorUnitConnector, makernotes 0x0015 tag: + - in .3FR - SU side + - in .FFF - HB side +*/ + public native @Cast("char") byte SensorUnitConnector(int i); public native libraw_hasselblad_makernotes_t SensorUnitConnector(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SensorUnitConnector(); + + public native int format(); public native libraw_hasselblad_makernotes_t format(int setter); // 3FR, FFF, Imacon (H3D-39 and maybe others), Hasselblad/Phocus DNG, Adobe DNG + public native int nIFD_CM(int i); public native libraw_hasselblad_makernotes_t nIFD_CM(int i, int setter); + @MemberGetter public native IntPointer nIFD_CM(); // number of IFD containing CM + public native int RecommendedCrop(int i); public native libraw_hasselblad_makernotes_t RecommendedCrop(int i, int setter); + @MemberGetter public native IntPointer RecommendedCrop(); + +/* mnColorMatrix is in makernotes tag 0x002a; + not present in .3FR files and Imacon/H3D-39 .FFF files; + when present in .FFF and Phocus .DNG files, it is a copy of CM1 from .3FR; + available samples contain all '1's in the first 3 elements +*/ + public native double mnColorMatrix(int i, int j); public native libraw_hasselblad_makernotes_t mnColorMatrix(int i, int j, double setter); + @MemberGetter public native @Cast("double(* /*[4]*/ )[3]") DoublePointer mnColorMatrix(); + + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_image_sizes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_image_sizes_t.java new file mode 100644 index 00000000000..45cb4389834 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_image_sizes_t.java @@ -0,0 +1,46 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_image_sizes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_image_sizes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_image_sizes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_image_sizes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_image_sizes_t position(long position) { + return (libraw_image_sizes_t)super.position(position); + } + @Override public libraw_image_sizes_t getPointer(long i) { + return new libraw_image_sizes_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short raw_height(); public native libraw_image_sizes_t raw_height(short setter); + public native @Cast("ushort") short raw_width(); public native libraw_image_sizes_t raw_width(short setter); + public native @Cast("ushort") short height(); public native libraw_image_sizes_t height(short setter); + public native @Cast("ushort") short width(); public native libraw_image_sizes_t width(short setter); + public native @Cast("ushort") short top_margin(); public native libraw_image_sizes_t top_margin(short setter); + public native @Cast("ushort") short left_margin(); public native libraw_image_sizes_t left_margin(short setter); + public native @Cast("ushort") short iheight(); public native libraw_image_sizes_t iheight(short setter); + public native @Cast("ushort") short iwidth(); public native libraw_image_sizes_t iwidth(short setter); + public native @Cast("unsigned") int raw_pitch(); public native libraw_image_sizes_t raw_pitch(int setter); + public native double pixel_aspect(); public native libraw_image_sizes_t pixel_aspect(double setter); + public native int flip(); public native libraw_image_sizes_t flip(int setter); + public native int mask(int i, int j); public native libraw_image_sizes_t mask(int i, int j, int setter); + @MemberGetter public native @Cast("int(* /*[8]*/ )[4]") IntPointer mask(); + public native @ByRef libraw_raw_inset_crop_t raw_inset_crop(); public native libraw_image_sizes_t raw_inset_crop(libraw_raw_inset_crop_t setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_imgother_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_imgother_t.java new file mode 100644 index 00000000000..123741c223f --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_imgother_t.java @@ -0,0 +1,47 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_imgother_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_imgother_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_imgother_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_imgother_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_imgother_t position(long position) { + return (libraw_imgother_t)super.position(position); + } + @Override public libraw_imgother_t getPointer(long i) { + return new libraw_imgother_t((Pointer)this).offsetAddress(i); + } + + public native float iso_speed(); public native libraw_imgother_t iso_speed(float setter); + public native float shutter(); public native libraw_imgother_t shutter(float setter); + public native float aperture(); public native libraw_imgother_t aperture(float setter); + public native float focal_len(); public native libraw_imgother_t focal_len(float setter); + public native @ByRef @Cast("time_t*") Pointer timestamp(); public native libraw_imgother_t timestamp(Pointer setter); + public native @Cast("unsigned") int shot_order(); public native libraw_imgother_t shot_order(int setter); + public native @Cast("unsigned") int gpsdata(int i); public native libraw_imgother_t gpsdata(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer gpsdata(); + public native @ByRef libraw_gps_info_t parsed_gps(); public native libraw_imgother_t parsed_gps(libraw_gps_info_t setter); + public native @Cast("char") byte desc(int i); public native libraw_imgother_t desc(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer desc(); + public native @Cast("char") byte artist(int i); public native libraw_imgother_t artist(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer artist(); + public native float analogbalance(int i); public native libraw_imgother_t analogbalance(int i, float setter); + @MemberGetter public native FloatPointer analogbalance(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_internal_output_params_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_internal_output_params_t.java new file mode 100644 index 00000000000..f218d374243 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_internal_output_params_t.java @@ -0,0 +1,37 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_internal_output_params_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_internal_output_params_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_internal_output_params_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_internal_output_params_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_internal_output_params_t position(long position) { + return (libraw_internal_output_params_t)super.position(position); + } + @Override public libraw_internal_output_params_t getPointer(long i) { + return new libraw_internal_output_params_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int mix_green(); public native libraw_internal_output_params_t mix_green(int setter); + public native @Cast("unsigned") int raw_color(); public native libraw_internal_output_params_t raw_color(int setter); + public native @Cast("unsigned") int zero_is_bad(); public native libraw_internal_output_params_t zero_is_bad(int setter); + public native @Cast("ushort") short shrink(); public native libraw_internal_output_params_t shrink(short setter); + public native @Cast("ushort") short fuji_width(); public native libraw_internal_output_params_t fuji_width(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_iparams_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_iparams_t.java new file mode 100644 index 00000000000..061e24f3ad5 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_iparams_t.java @@ -0,0 +1,59 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_iparams_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_iparams_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_iparams_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_iparams_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_iparams_t position(long position) { + return (libraw_iparams_t)super.position(position); + } + @Override public libraw_iparams_t getPointer(long i) { + return new libraw_iparams_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("char") byte guard(int i); public native libraw_iparams_t guard(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer guard(); + public native @Cast("char") byte make(int i); public native libraw_iparams_t make(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer make(); + public native @Cast("char") byte model(int i); public native libraw_iparams_t model(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer model(); + public native @Cast("char") byte software(int i); public native libraw_iparams_t software(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer software(); + public native @Cast("char") byte normalized_make(int i); public native libraw_iparams_t normalized_make(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer normalized_make(); + public native @Cast("char") byte normalized_model(int i); public native libraw_iparams_t normalized_model(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer normalized_model(); + public native @Cast("unsigned") int maker_index(); public native libraw_iparams_t maker_index(int setter); + public native @Cast("unsigned") int raw_count(); public native libraw_iparams_t raw_count(int setter); + public native @Cast("unsigned") int dng_version(); public native libraw_iparams_t dng_version(int setter); + public native @Cast("unsigned") int is_foveon(); public native libraw_iparams_t is_foveon(int setter); + public native int colors(); public native libraw_iparams_t colors(int setter); + public native @Cast("unsigned") int filters(); public native libraw_iparams_t filters(int setter); + public native @Cast("char") byte xtrans(int i, int j); public native libraw_iparams_t xtrans(int i, int j, byte setter); + @MemberGetter public native @Cast("char(* /*[6]*/ )[6]") BytePointer xtrans(); + public native @Cast("char") byte xtrans_abs(int i, int j); public native libraw_iparams_t xtrans_abs(int i, int j, byte setter); + @MemberGetter public native @Cast("char(* /*[6]*/ )[6]") BytePointer xtrans_abs(); + public native @Cast("char") byte cdesc(int i); public native libraw_iparams_t cdesc(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer cdesc(); + public native @Cast("unsigned") int xmplen(); public native libraw_iparams_t xmplen(int setter); + public native @Cast("char*") BytePointer xmpdata(); public native libraw_iparams_t xmpdata(BytePointer setter); + + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_kodak_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_kodak_makernotes_t.java new file mode 100644 index 00000000000..70a3220cb3c --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_kodak_makernotes_t.java @@ -0,0 +1,56 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_kodak_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_kodak_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_kodak_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_kodak_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_kodak_makernotes_t position(long position) { + return (libraw_kodak_makernotes_t)super.position(position); + } + @Override public libraw_kodak_makernotes_t getPointer(long i) { + return new libraw_kodak_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short BlackLevelTop(); public native libraw_kodak_makernotes_t BlackLevelTop(short setter); + public native @Cast("ushort") short BlackLevelBottom(); public native libraw_kodak_makernotes_t BlackLevelBottom(short setter); + public native short offset_left(); public native libraw_kodak_makernotes_t offset_left(short setter); + public native short offset_top(); public native libraw_kodak_makernotes_t offset_top(short setter); /* KDC files, negative values or zeros */ + public native @Cast("ushort") short clipBlack(); public native libraw_kodak_makernotes_t clipBlack(short setter); + public native @Cast("ushort") short clipWhite(); public native libraw_kodak_makernotes_t clipWhite(short setter); /* valid for P712, P850, P880 */ + public native float romm_camDaylight(int i, int j); public native libraw_kodak_makernotes_t romm_camDaylight(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camDaylight(); + public native float romm_camTungsten(int i, int j); public native libraw_kodak_makernotes_t romm_camTungsten(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camTungsten(); + public native float romm_camFluorescent(int i, int j); public native libraw_kodak_makernotes_t romm_camFluorescent(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camFluorescent(); + public native float romm_camFlash(int i, int j); public native libraw_kodak_makernotes_t romm_camFlash(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camFlash(); + public native float romm_camCustom(int i, int j); public native libraw_kodak_makernotes_t romm_camCustom(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camCustom(); + public native float romm_camAuto(int i, int j); public native libraw_kodak_makernotes_t romm_camAuto(int i, int j, float setter); + @MemberGetter public native @Cast("float(* /*[3]*/ )[3]") FloatPointer romm_camAuto(); + public native @Cast("ushort") short val018percent(); public native libraw_kodak_makernotes_t val018percent(short setter); + public native @Cast("ushort") short val100percent(); public native libraw_kodak_makernotes_t val100percent(short setter); + public native @Cast("ushort") short val170percent(); public native libraw_kodak_makernotes_t val170percent(short setter); + public native short MakerNoteKodak8a(); public native libraw_kodak_makernotes_t MakerNoteKodak8a(short setter); + public native float ISOCalibrationGain(); public native libraw_kodak_makernotes_t ISOCalibrationGain(float setter); + public native float AnalogISO(); public native libraw_kodak_makernotes_t AnalogISO(float setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_lensinfo_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_lensinfo_t.java new file mode 100644 index 00000000000..9072110d7cd --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_lensinfo_t.java @@ -0,0 +1,49 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_lensinfo_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_lensinfo_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_lensinfo_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_lensinfo_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_lensinfo_t position(long position) { + return (libraw_lensinfo_t)super.position(position); + } + @Override public libraw_lensinfo_t getPointer(long i) { + return new libraw_lensinfo_t((Pointer)this).offsetAddress(i); + } + + public native float MinFocal(); public native libraw_lensinfo_t MinFocal(float setter); + public native float MaxFocal(); public native libraw_lensinfo_t MaxFocal(float setter); + public native float MaxAp4MinFocal(); public native libraw_lensinfo_t MaxAp4MinFocal(float setter); + public native float MaxAp4MaxFocal(); public native libraw_lensinfo_t MaxAp4MaxFocal(float setter); + public native float EXIF_MaxAp(); public native libraw_lensinfo_t EXIF_MaxAp(float setter); + public native @Cast("char") byte LensMake(int i); public native libraw_lensinfo_t LensMake(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LensMake(); + public native @Cast("char") byte Lens(int i); public native libraw_lensinfo_t Lens(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Lens(); + public native @Cast("char") byte LensSerial(int i); public native libraw_lensinfo_t LensSerial(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LensSerial(); + public native @Cast("char") byte InternalLensSerial(int i); public native libraw_lensinfo_t InternalLensSerial(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer InternalLensSerial(); + public native @Cast("ushort") short FocalLengthIn35mmFormat(); public native libraw_lensinfo_t FocalLengthIn35mmFormat(short setter); + public native @ByRef libraw_nikonlens_t nikon(); public native libraw_lensinfo_t nikon(libraw_nikonlens_t setter); + public native @ByRef libraw_dnglens_t dng(); public native libraw_lensinfo_t dng(libraw_dnglens_t setter); + public native @ByRef libraw_makernotes_lens_t makernotes(); public native libraw_lensinfo_t makernotes(libraw_makernotes_lens_t setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_lens_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_lens_t.java new file mode 100644 index 00000000000..77adfc022b5 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_lens_t.java @@ -0,0 +1,73 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_makernotes_lens_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_makernotes_lens_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_makernotes_lens_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_makernotes_lens_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_makernotes_lens_t position(long position) { + return (libraw_makernotes_lens_t)super.position(position); + } + @Override public libraw_makernotes_lens_t getPointer(long i) { + return new libraw_makernotes_lens_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned long long") long LensID(); public native libraw_makernotes_lens_t LensID(long setter); + public native @Cast("char") byte Lens(int i); public native libraw_makernotes_lens_t Lens(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Lens(); + public native @Cast("ushort") short LensFormat(); public native libraw_makernotes_lens_t LensFormat(short setter); /* to characterize the image circle the lens covers */ + public native @Cast("ushort") short LensMount(); public native libraw_makernotes_lens_t LensMount(short setter); /* 'male', lens itself */ + public native @Cast("unsigned long long") long CamID(); public native libraw_makernotes_lens_t CamID(long setter); + public native @Cast("ushort") short CameraFormat(); public native libraw_makernotes_lens_t CameraFormat(short setter); /* some of the sensor formats */ + public native @Cast("ushort") short CameraMount(); public native libraw_makernotes_lens_t CameraMount(short setter); /* 'female', body throat */ + public native @Cast("char") byte body(int i); public native libraw_makernotes_lens_t body(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer body(); + public native short FocalType(); public native libraw_makernotes_lens_t FocalType(short setter); /* -1/0 is unknown; 1 is fixed focal; 2 is zoom */ + public native @Cast("char") byte LensFeatures_pre(int i); public native libraw_makernotes_lens_t LensFeatures_pre(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LensFeatures_pre(); + public native @Cast("char") byte LensFeatures_suf(int i); public native libraw_makernotes_lens_t LensFeatures_suf(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LensFeatures_suf(); + public native float MinFocal(); public native libraw_makernotes_lens_t MinFocal(float setter); + public native float MaxFocal(); public native libraw_makernotes_lens_t MaxFocal(float setter); + public native float MaxAp4MinFocal(); public native libraw_makernotes_lens_t MaxAp4MinFocal(float setter); + public native float MaxAp4MaxFocal(); public native libraw_makernotes_lens_t MaxAp4MaxFocal(float setter); + public native float MinAp4MinFocal(); public native libraw_makernotes_lens_t MinAp4MinFocal(float setter); + public native float MinAp4MaxFocal(); public native libraw_makernotes_lens_t MinAp4MaxFocal(float setter); + public native float MaxAp(); public native libraw_makernotes_lens_t MaxAp(float setter); + public native float MinAp(); public native libraw_makernotes_lens_t MinAp(float setter); + public native float CurFocal(); public native libraw_makernotes_lens_t CurFocal(float setter); + public native float CurAp(); public native libraw_makernotes_lens_t CurAp(float setter); + public native float MaxAp4CurFocal(); public native libraw_makernotes_lens_t MaxAp4CurFocal(float setter); + public native float MinAp4CurFocal(); public native libraw_makernotes_lens_t MinAp4CurFocal(float setter); + public native float MinFocusDistance(); public native libraw_makernotes_lens_t MinFocusDistance(float setter); + public native float FocusRangeIndex(); public native libraw_makernotes_lens_t FocusRangeIndex(float setter); + public native float LensFStops(); public native libraw_makernotes_lens_t LensFStops(float setter); + public native @Cast("unsigned long long") long TeleconverterID(); public native libraw_makernotes_lens_t TeleconverterID(long setter); + public native @Cast("char") byte Teleconverter(int i); public native libraw_makernotes_lens_t Teleconverter(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Teleconverter(); + public native @Cast("unsigned long long") long AdapterID(); public native libraw_makernotes_lens_t AdapterID(long setter); + public native @Cast("char") byte Adapter(int i); public native libraw_makernotes_lens_t Adapter(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Adapter(); + public native @Cast("unsigned long long") long AttachmentID(); public native libraw_makernotes_lens_t AttachmentID(long setter); + public native @Cast("char") byte Attachment(int i); public native libraw_makernotes_lens_t Attachment(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Attachment(); + public native @Cast("ushort") short FocalUnits(); public native libraw_makernotes_lens_t FocalUnits(short setter); + public native float FocalLengthIn35mmFormat(); public native libraw_makernotes_lens_t FocalLengthIn35mmFormat(float setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_t.java new file mode 100644 index 00000000000..b02e61a4056 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_makernotes_t.java @@ -0,0 +1,44 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_makernotes_t position(long position) { + return (libraw_makernotes_t)super.position(position); + } + @Override public libraw_makernotes_t getPointer(long i) { + return new libraw_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native @ByRef libraw_canon_makernotes_t canon(); public native libraw_makernotes_t canon(libraw_canon_makernotes_t setter); + public native @ByRef libraw_nikon_makernotes_t nikon(); public native libraw_makernotes_t nikon(libraw_nikon_makernotes_t setter); + public native @ByRef libraw_hasselblad_makernotes_t hasselblad(); public native libraw_makernotes_t hasselblad(libraw_hasselblad_makernotes_t setter); + public native @ByRef libraw_fuji_info_t fuji(); public native libraw_makernotes_t fuji(libraw_fuji_info_t setter); + public native @ByRef libraw_olympus_makernotes_t olympus(); public native libraw_makernotes_t olympus(libraw_olympus_makernotes_t setter); + public native @ByRef libraw_sony_info_t sony(); public native libraw_makernotes_t sony(libraw_sony_info_t setter); + public native @ByRef libraw_kodak_makernotes_t kodak(); public native libraw_makernotes_t kodak(libraw_kodak_makernotes_t setter); + public native @ByRef libraw_panasonic_makernotes_t panasonic(); public native libraw_makernotes_t panasonic(libraw_panasonic_makernotes_t setter); + public native @ByRef libraw_pentax_makernotes_t pentax(); public native libraw_makernotes_t pentax(libraw_pentax_makernotes_t setter); + public native @ByRef libraw_p1_makernotes_t phaseone(); public native libraw_makernotes_t phaseone(libraw_p1_makernotes_t setter); + public native @ByRef libraw_samsung_makernotes_t samsung(); public native libraw_makernotes_t samsung(libraw_samsung_makernotes_t setter); + public native @ByRef libraw_metadata_common_t common(); public native libraw_makernotes_t common(libraw_metadata_common_t setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_metadata_common_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_metadata_common_t.java new file mode 100644 index 00000000000..017db36116d --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_metadata_common_t.java @@ -0,0 +1,51 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_metadata_common_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_metadata_common_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_metadata_common_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_metadata_common_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_metadata_common_t position(long position) { + return (libraw_metadata_common_t)super.position(position); + } + @Override public libraw_metadata_common_t getPointer(long i) { + return new libraw_metadata_common_t((Pointer)this).offsetAddress(i); + } + + public native float FlashEC(); public native libraw_metadata_common_t FlashEC(float setter); + public native float FlashGN(); public native libraw_metadata_common_t FlashGN(float setter); + public native float CameraTemperature(); public native libraw_metadata_common_t CameraTemperature(float setter); + public native float SensorTemperature(); public native libraw_metadata_common_t SensorTemperature(float setter); + public native float SensorTemperature2(); public native libraw_metadata_common_t SensorTemperature2(float setter); + public native float LensTemperature(); public native libraw_metadata_common_t LensTemperature(float setter); + public native float AmbientTemperature(); public native libraw_metadata_common_t AmbientTemperature(float setter); + public native float BatteryTemperature(); public native libraw_metadata_common_t BatteryTemperature(float setter); + public native float exifAmbientTemperature(); public native libraw_metadata_common_t exifAmbientTemperature(float setter); + public native float exifHumidity(); public native libraw_metadata_common_t exifHumidity(float setter); + public native float exifPressure(); public native libraw_metadata_common_t exifPressure(float setter); + public native float exifWaterDepth(); public native libraw_metadata_common_t exifWaterDepth(float setter); + public native float exifAcceleration(); public native libraw_metadata_common_t exifAcceleration(float setter); + public native float exifCameraElevationAngle(); public native libraw_metadata_common_t exifCameraElevationAngle(float setter); + public native float real_ISO(); public native libraw_metadata_common_t real_ISO(float setter); + public native float exifExposureIndex(); public native libraw_metadata_common_t exifExposureIndex(float setter); + public native @Cast("ushort") short ColorSpace(); public native libraw_metadata_common_t ColorSpace(short setter); + public native @Cast("char") byte firmware(int i); public native libraw_metadata_common_t firmware(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer firmware(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikon_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikon_makernotes_t.java new file mode 100644 index 00000000000..30820f1c733 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikon_makernotes_t.java @@ -0,0 +1,108 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_nikon_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_nikon_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_nikon_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_nikon_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_nikon_makernotes_t position(long position) { + return (libraw_nikon_makernotes_t)super.position(position); + } + @Override public libraw_nikon_makernotes_t getPointer(long i) { + return new libraw_nikon_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native double ExposureBracketValue(); public native libraw_nikon_makernotes_t ExposureBracketValue(double setter); + public native @Cast("ushort") short ActiveDLighting(); public native libraw_nikon_makernotes_t ActiveDLighting(short setter); + public native @Cast("ushort") short ShootingMode(); public native libraw_nikon_makernotes_t ShootingMode(short setter); + /* stabilization */ + public native @Cast("uchar") byte ImageStabilization(int i); public native libraw_nikon_makernotes_t ImageStabilization(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer ImageStabilization(); + public native @Cast("uchar") byte VibrationReduction(); public native libraw_nikon_makernotes_t VibrationReduction(byte setter); + public native @Cast("uchar") byte VRMode(); public native libraw_nikon_makernotes_t VRMode(byte setter); + /* focus */ + public native @Cast("char") byte FocusMode(int i); public native libraw_nikon_makernotes_t FocusMode(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer FocusMode(); + public native @Cast("uchar") byte AFPoint(); public native libraw_nikon_makernotes_t AFPoint(byte setter); + public native @Cast("ushort") short AFPointsInFocus(); public native libraw_nikon_makernotes_t AFPointsInFocus(short setter); + public native @Cast("uchar") byte ContrastDetectAF(); public native libraw_nikon_makernotes_t ContrastDetectAF(byte setter); + public native @Cast("uchar") byte AFAreaMode(); public native libraw_nikon_makernotes_t AFAreaMode(byte setter); + public native @Cast("uchar") byte PhaseDetectAF(); public native libraw_nikon_makernotes_t PhaseDetectAF(byte setter); + public native @Cast("uchar") byte PrimaryAFPoint(); public native libraw_nikon_makernotes_t PrimaryAFPoint(byte setter); + public native @Cast("uchar") byte AFPointsUsed(int i); public native libraw_nikon_makernotes_t AFPointsUsed(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer AFPointsUsed(); + public native @Cast("ushort") short AFImageWidth(); public native libraw_nikon_makernotes_t AFImageWidth(short setter); + public native @Cast("ushort") short AFImageHeight(); public native libraw_nikon_makernotes_t AFImageHeight(short setter); + public native @Cast("ushort") short AFAreaXPposition(); public native libraw_nikon_makernotes_t AFAreaXPposition(short setter); + public native @Cast("ushort") short AFAreaYPosition(); public native libraw_nikon_makernotes_t AFAreaYPosition(short setter); + public native @Cast("ushort") short AFAreaWidth(); public native libraw_nikon_makernotes_t AFAreaWidth(short setter); + public native @Cast("ushort") short AFAreaHeight(); public native libraw_nikon_makernotes_t AFAreaHeight(short setter); + public native @Cast("uchar") byte ContrastDetectAFInFocus(); public native libraw_nikon_makernotes_t ContrastDetectAFInFocus(byte setter); + /* flash */ + public native @Cast("char") byte FlashSetting(int i); public native libraw_nikon_makernotes_t FlashSetting(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer FlashSetting(); + public native @Cast("char") byte FlashType(int i); public native libraw_nikon_makernotes_t FlashType(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer FlashType(); + public native @Cast("uchar") byte FlashExposureCompensation(int i); public native libraw_nikon_makernotes_t FlashExposureCompensation(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer FlashExposureCompensation(); + public native @Cast("uchar") byte ExternalFlashExposureComp(int i); public native libraw_nikon_makernotes_t ExternalFlashExposureComp(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer ExternalFlashExposureComp(); + public native @Cast("uchar") byte FlashExposureBracketValue(int i); public native libraw_nikon_makernotes_t FlashExposureBracketValue(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer FlashExposureBracketValue(); + public native @Cast("uchar") byte FlashMode(); public native libraw_nikon_makernotes_t FlashMode(byte setter); + public native byte FlashExposureCompensation2(); public native libraw_nikon_makernotes_t FlashExposureCompensation2(byte setter); + public native byte FlashExposureCompensation3(); public native libraw_nikon_makernotes_t FlashExposureCompensation3(byte setter); + public native byte FlashExposureCompensation4(); public native libraw_nikon_makernotes_t FlashExposureCompensation4(byte setter); + public native @Cast("uchar") byte FlashSource(); public native libraw_nikon_makernotes_t FlashSource(byte setter); + public native @Cast("uchar") byte FlashFirmware(int i); public native libraw_nikon_makernotes_t FlashFirmware(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer FlashFirmware(); + public native @Cast("uchar") byte ExternalFlashFlags(); public native libraw_nikon_makernotes_t ExternalFlashFlags(byte setter); + public native @Cast("uchar") byte FlashControlCommanderMode(); public native libraw_nikon_makernotes_t FlashControlCommanderMode(byte setter); + public native @Cast("uchar") byte FlashOutputAndCompensation(); public native libraw_nikon_makernotes_t FlashOutputAndCompensation(byte setter); + public native @Cast("uchar") byte FlashFocalLength(); public native libraw_nikon_makernotes_t FlashFocalLength(byte setter); + public native @Cast("uchar") byte FlashGNDistance(); public native libraw_nikon_makernotes_t FlashGNDistance(byte setter); + public native @Cast("uchar") byte FlashGroupControlMode(int i); public native libraw_nikon_makernotes_t FlashGroupControlMode(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer FlashGroupControlMode(); + public native @Cast("uchar") byte FlashGroupOutputAndCompensation(int i); public native libraw_nikon_makernotes_t FlashGroupOutputAndCompensation(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer FlashGroupOutputAndCompensation(); + public native @Cast("uchar") byte FlashColorFilter(); public native libraw_nikon_makernotes_t FlashColorFilter(byte setter); + public native @Cast("ushort") short NEFCompression(); public native libraw_nikon_makernotes_t NEFCompression(short setter); + public native int ExposureMode(); public native libraw_nikon_makernotes_t ExposureMode(int setter); + public native int ExposureProgram(); public native libraw_nikon_makernotes_t ExposureProgram(int setter); + public native int nMEshots(); public native libraw_nikon_makernotes_t nMEshots(int setter); + public native int MEgainOn(); public native libraw_nikon_makernotes_t MEgainOn(int setter); + public native double ME_WB(int i); public native libraw_nikon_makernotes_t ME_WB(int i, double setter); + @MemberGetter public native DoublePointer ME_WB(); + public native @Cast("uchar") byte AFFineTune(); public native libraw_nikon_makernotes_t AFFineTune(byte setter); + public native @Cast("uchar") byte AFFineTuneIndex(); public native libraw_nikon_makernotes_t AFFineTuneIndex(byte setter); + + public native @Cast("unsigned") int LensDataVersion(); public native libraw_nikon_makernotes_t LensDataVersion(int setter); + public native @Cast("unsigned") int FlashInfoVersion(); public native libraw_nikon_makernotes_t FlashInfoVersion(int setter); + public native @Cast("unsigned") int ColorBalanceVersion(); public native libraw_nikon_makernotes_t ColorBalanceVersion(int setter); + public native @Cast("uchar") byte key(); public native libraw_nikon_makernotes_t key(byte setter); + public native @Cast("ushort") short NEFBitDepth(int i); public native libraw_nikon_makernotes_t NEFBitDepth(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer NEFBitDepth(); + public native @Cast("ushort") short HighSpeedCropFormat(); public native libraw_nikon_makernotes_t HighSpeedCropFormat(short setter); /* 1 -> 1.3x; 2 -> DX; 3 -> 5:4; 4 -> 3:2; 6 -> + 16:9; 11 -> FX uncropped; 12 -> DX uncropped; + 17 -> 1:1 */ + public native @ByRef libraw_sensor_highspeed_crop_t SensorHighSpeedCrop(); public native libraw_nikon_makernotes_t SensorHighSpeedCrop(libraw_sensor_highspeed_crop_t setter); + public native @Cast("ushort") short SensorWidth(); public native libraw_nikon_makernotes_t SensorWidth(short setter); + public native @Cast("ushort") short SensorHeight(); public native libraw_nikon_makernotes_t SensorHeight(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikonlens_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikonlens_t.java new file mode 100644 index 00000000000..076f9782d32 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_nikonlens_t.java @@ -0,0 +1,37 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_nikonlens_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_nikonlens_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_nikonlens_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_nikonlens_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_nikonlens_t position(long position) { + return (libraw_nikonlens_t)super.position(position); + } + @Override public libraw_nikonlens_t getPointer(long i) { + return new libraw_nikonlens_t((Pointer)this).offsetAddress(i); + } + + public native float EffectiveMaxAp(); public native libraw_nikonlens_t EffectiveMaxAp(float setter); + public native @Cast("uchar") byte LensIDNumber(); public native libraw_nikonlens_t LensIDNumber(byte setter); + public native @Cast("uchar") byte LensFStops(); public native libraw_nikonlens_t LensFStops(byte setter); + public native @Cast("uchar") byte MCUVersion(); public native libraw_nikonlens_t MCUVersion(byte setter); + public native @Cast("uchar") byte LensType(); public native libraw_nikonlens_t LensType(byte setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_olympus_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_olympus_makernotes_t.java new file mode 100644 index 00000000000..8cd211e1146 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_olympus_makernotes_t.java @@ -0,0 +1,51 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_olympus_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_olympus_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_olympus_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_olympus_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_olympus_makernotes_t position(long position) { + return (libraw_olympus_makernotes_t)super.position(position); + } + @Override public libraw_olympus_makernotes_t getPointer(long i) { + return new libraw_olympus_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native int SensorCalibration(int i); public native libraw_olympus_makernotes_t SensorCalibration(int i, int setter); + @MemberGetter public native IntPointer SensorCalibration(); + public native @Cast("ushort") short FocusMode(int i); public native libraw_olympus_makernotes_t FocusMode(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer FocusMode(); + public native @Cast("ushort") short AutoFocus(); public native libraw_olympus_makernotes_t AutoFocus(short setter); + public native @Cast("ushort") short AFPoint(); public native libraw_olympus_makernotes_t AFPoint(short setter); + public native @Cast("unsigned") int AFAreas(int i); public native libraw_olympus_makernotes_t AFAreas(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer AFAreas(); + public native double AFPointSelected(int i); public native libraw_olympus_makernotes_t AFPointSelected(int i, double setter); + @MemberGetter public native DoublePointer AFPointSelected(); + public native @Cast("ushort") short AFResult(); public native libraw_olympus_makernotes_t AFResult(short setter); + public native @Cast("ushort") short DriveMode(int i); public native libraw_olympus_makernotes_t DriveMode(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer DriveMode(); + public native @Cast("ushort") short ColorSpace(); public native libraw_olympus_makernotes_t ColorSpace(short setter); + public native @Cast("uchar") byte AFFineTune(); public native libraw_olympus_makernotes_t AFFineTune(byte setter); + public native short AFFineTuneAdj(int i); public native libraw_olympus_makernotes_t AFFineTuneAdj(int i, short setter); + @MemberGetter public native ShortPointer AFFineTuneAdj(); + public native @Cast("char") byte CameraType2(int i); public native libraw_olympus_makernotes_t CameraType2(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer CameraType2(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_output_params_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_output_params_t.java new file mode 100644 index 00000000000..ecd92a85376 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_output_params_t.java @@ -0,0 +1,98 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_output_params_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_output_params_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_output_params_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_output_params_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_output_params_t position(long position) { + return (libraw_output_params_t)super.position(position); + } + @Override public libraw_output_params_t getPointer(long i) { + return new libraw_output_params_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int greybox(int i); public native libraw_output_params_t greybox(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer greybox(); /* -A x1 y1 x2 y2 */ + public native @Cast("unsigned") int cropbox(int i); public native libraw_output_params_t cropbox(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer cropbox(); /* -B x1 y1 x2 y2 */ + public native double aber(int i); public native libraw_output_params_t aber(int i, double setter); + @MemberGetter public native DoublePointer aber(); /* -C */ + public native double gamm(int i); public native libraw_output_params_t gamm(int i, double setter); + @MemberGetter public native DoublePointer gamm(); /* -g */ + public native float user_mul(int i); public native libraw_output_params_t user_mul(int i, float setter); + @MemberGetter public native FloatPointer user_mul(); /* -r mul0 mul1 mul2 mul3 */ + public native @Cast("unsigned") int shot_select(); public native libraw_output_params_t shot_select(int setter); /* -s */ + public native float bright(); public native libraw_output_params_t bright(float setter); /* -b */ + public native float threshold(); public native libraw_output_params_t threshold(float setter); /* -n */ + public native int half_size(); public native libraw_output_params_t half_size(int setter); /* -h */ + public native int four_color_rgb(); public native libraw_output_params_t four_color_rgb(int setter); /* -f */ + public native int highlight(); public native libraw_output_params_t highlight(int setter); /* -H */ + public native int use_auto_wb(); public native libraw_output_params_t use_auto_wb(int setter); /* -a */ + public native int use_camera_wb(); public native libraw_output_params_t use_camera_wb(int setter); /* -w */ + public native int use_camera_matrix(); public native libraw_output_params_t use_camera_matrix(int setter); /* +M/-M */ + public native int output_color(); public native libraw_output_params_t output_color(int setter); /* -o */ + public native @Cast("char*") BytePointer output_profile(); public native libraw_output_params_t output_profile(BytePointer setter); /* -o */ + public native @Cast("char*") BytePointer camera_profile(); public native libraw_output_params_t camera_profile(BytePointer setter); /* -p */ + public native @Cast("char*") BytePointer bad_pixels(); public native libraw_output_params_t bad_pixels(BytePointer setter); /* -P */ + public native @Cast("char*") BytePointer dark_frame(); public native libraw_output_params_t dark_frame(BytePointer setter); /* -K */ + public native int output_bps(); public native libraw_output_params_t output_bps(int setter); /* -4 */ + public native int output_tiff(); public native libraw_output_params_t output_tiff(int setter); /* -T */ + public native int user_flip(); public native libraw_output_params_t user_flip(int setter); /* -t */ + public native int user_qual(); public native libraw_output_params_t user_qual(int setter); /* -q */ + public native int user_black(); public native libraw_output_params_t user_black(int setter); /* -k */ + public native int user_cblack(int i); public native libraw_output_params_t user_cblack(int i, int setter); + @MemberGetter public native IntPointer user_cblack(); + public native int user_sat(); public native libraw_output_params_t user_sat(int setter); /* -S */ + public native int med_passes(); public native libraw_output_params_t med_passes(int setter); /* -m */ + public native float auto_bright_thr(); public native libraw_output_params_t auto_bright_thr(float setter); + public native float adjust_maximum_thr(); public native libraw_output_params_t adjust_maximum_thr(float setter); + public native int no_auto_bright(); public native libraw_output_params_t no_auto_bright(int setter); /* -W */ + public native int use_fuji_rotate(); public native libraw_output_params_t use_fuji_rotate(int setter); /* -j */ + public native int green_matching(); public native libraw_output_params_t green_matching(int setter); + /* DCB parameters */ + public native int dcb_iterations(); public native libraw_output_params_t dcb_iterations(int setter); + public native int dcb_enhance_fl(); public native libraw_output_params_t dcb_enhance_fl(int setter); + public native int fbdd_noiserd(); public native libraw_output_params_t fbdd_noiserd(int setter); + public native int exp_correc(); public native libraw_output_params_t exp_correc(int setter); + public native float exp_shift(); public native libraw_output_params_t exp_shift(float setter); + public native float exp_preser(); public native libraw_output_params_t exp_preser(float setter); + /* Raw speed */ + public native int use_rawspeed(); public native libraw_output_params_t use_rawspeed(int setter); + /* DNG SDK */ + public native int use_dngsdk(); public native libraw_output_params_t use_dngsdk(int setter); + /* Disable Auto-scale */ + public native int no_auto_scale(); public native libraw_output_params_t no_auto_scale(int setter); + /* Disable intepolation */ + public native int no_interpolation(); public native libraw_output_params_t no_interpolation(int setter); + /* int x3f_flags; */ + /* Sony ARW2 digging mode */ + /* int sony_arw2_options; */ + public native @Cast("unsigned") int raw_processing_options(); public native libraw_output_params_t raw_processing_options(int setter); + public native @Cast("unsigned") int max_raw_memory_mb(); public native libraw_output_params_t max_raw_memory_mb(int setter); + public native int sony_arw2_posterization_thr(); public native libraw_output_params_t sony_arw2_posterization_thr(int setter); + /* Nikon Coolscan */ + public native float coolscan_nef_gamma(); public native libraw_output_params_t coolscan_nef_gamma(float setter); + public native @Cast("char") byte p4shot_order(int i); public native libraw_output_params_t p4shot_order(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer p4shot_order(); + /* Custom camera list */ + public native @Cast("char*") BytePointer custom_camera_strings(int i); public native libraw_output_params_t custom_camera_strings(int i, BytePointer setter); + public native @Cast("char**") PointerPointer custom_camera_strings(); public native libraw_output_params_t custom_camera_strings(PointerPointer setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_p1_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_p1_makernotes_t.java new file mode 100644 index 00000000000..7de57c7ecc2 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_p1_makernotes_t.java @@ -0,0 +1,40 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_p1_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_p1_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_p1_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_p1_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_p1_makernotes_t position(long position) { + return (libraw_p1_makernotes_t)super.position(position); + } + @Override public libraw_p1_makernotes_t getPointer(long i) { + return new libraw_p1_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("char") byte Software(int i); public native libraw_p1_makernotes_t Software(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer Software(); // tag 0x0203 + public native @Cast("char") byte SystemType(int i); public native libraw_p1_makernotes_t SystemType(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SystemType(); // tag 0x0204 + public native @Cast("char") byte FirmwareString(int i); public native libraw_p1_makernotes_t FirmwareString(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer FirmwareString(); // tag 0x0301 + public native @Cast("char") byte SystemModel(int i); public native libraw_p1_makernotes_t SystemModel(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SystemModel(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_panasonic_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_panasonic_makernotes_t.java new file mode 100644 index 00000000000..fc56d76a546 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_panasonic_makernotes_t.java @@ -0,0 +1,47 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_panasonic_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_panasonic_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_panasonic_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_panasonic_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_panasonic_makernotes_t position(long position) { + return (libraw_panasonic_makernotes_t)super.position(position); + } + @Override public libraw_panasonic_makernotes_t getPointer(long i) { + return new libraw_panasonic_makernotes_t((Pointer)this).offsetAddress(i); + } + + /* Compression: + 34826 (Panasonic RAW 2): LEICA DIGILUX 2; + 34828 (Panasonic RAW 3): LEICA D-LUX 3; LEICA V-LUX 1; Panasonic DMC-LX1; + Panasonic DMC-LX2; Panasonic DMC-FZ30; Panasonic DMC-FZ50; 34830 (not in + exiftool): LEICA DIGILUX 3; Panasonic DMC-L1; 34316 (Panasonic RAW 1): + others (LEICA, Panasonic, YUNEEC); + */ + public native @Cast("ushort") short Compression(); public native libraw_panasonic_makernotes_t Compression(short setter); + public native @Cast("ushort") short BlackLevelDim(); public native libraw_panasonic_makernotes_t BlackLevelDim(short setter); + public native float BlackLevel(int i); public native libraw_panasonic_makernotes_t BlackLevel(int i, float setter); + @MemberGetter public native FloatPointer BlackLevel(); + public native @Cast("unsigned") int Multishot(); public native libraw_panasonic_makernotes_t Multishot(int setter); /* 0 is Off, 65536 is Pixel Shift */ + public native float gamma(); public native libraw_panasonic_makernotes_t gamma(float setter); + public native int HighISOMultiplier(int i); public native libraw_panasonic_makernotes_t HighISOMultiplier(int i, int setter); + @MemberGetter public native IntPointer HighISOMultiplier(); /* 0->R, 1->G, 2->B */ + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_pentax_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_pentax_makernotes_t.java new file mode 100644 index 00000000000..7d5c99d40de --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_pentax_makernotes_t.java @@ -0,0 +1,45 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_pentax_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_pentax_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_pentax_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_pentax_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_pentax_makernotes_t position(long position) { + return (libraw_pentax_makernotes_t)super.position(position); + } + @Override public libraw_pentax_makernotes_t getPointer(long i) { + return new libraw_pentax_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short FocusMode(); public native libraw_pentax_makernotes_t FocusMode(short setter); + public native @Cast("ushort") short AFPointSelected(); public native libraw_pentax_makernotes_t AFPointSelected(short setter); + public native @Cast("unsigned") int AFPointsInFocus(); public native libraw_pentax_makernotes_t AFPointsInFocus(int setter); + public native @Cast("ushort") short FocusPosition(); public native libraw_pentax_makernotes_t FocusPosition(short setter); + public native @Cast("uchar") byte DriveMode(int i); public native libraw_pentax_makernotes_t DriveMode(int i, byte setter); + @MemberGetter public native @Cast("uchar*") BytePointer DriveMode(); + public native short AFAdjustment(); public native libraw_pentax_makernotes_t AFAdjustment(short setter); + public native @Cast("uchar") byte MultiExposure(); public native libraw_pentax_makernotes_t MultiExposure(byte setter); /* last bit is not "1" if ME is not used */ + public native @Cast("ushort") short Quality(); public native libraw_pentax_makernotes_t Quality(short setter); /* 4 is raw, 7 is raw w/ pixel shift, 8 is raw w/ dynamic + pixel shift */ + /* uchar AFPointMode; */ + /* uchar SRResult; */ + /* uchar ShakeReduction; */ + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_processed_image_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_processed_image_t.java new file mode 100644 index 00000000000..62b9b8a1d0c --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_processed_image_t.java @@ -0,0 +1,40 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_processed_image_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_processed_image_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_processed_image_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_processed_image_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_processed_image_t position(long position) { + return (libraw_processed_image_t)super.position(position); + } + @Override public libraw_processed_image_t getPointer(long i) { + return new libraw_processed_image_t((Pointer)this).offsetAddress(i); + } + + public native LibRaw_image_formats type(); public native libraw_processed_image_t type(LibRaw_image_formats setter); + public native @Cast("ushort") short height(); public native libraw_processed_image_t height(short setter); + public native @Cast("ushort") short width(); public native libraw_processed_image_t width(short setter); + public native @Cast("ushort") short colors(); public native libraw_processed_image_t colors(short setter); + public native @Cast("ushort") short bits(); public native libraw_processed_image_t bits(short setter); + public native @Cast("unsigned int") int data_size(); public native libraw_processed_image_t data_size(int setter); + public native @Cast("unsigned char") byte data(int i); public native libraw_processed_image_t data(int i, byte setter); + @MemberGetter public native @Cast("unsigned char*") BytePointer data(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_raw_inset_crop_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_raw_inset_crop_t.java new file mode 100644 index 00000000000..b9e92797da8 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_raw_inset_crop_t.java @@ -0,0 +1,37 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_raw_inset_crop_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_raw_inset_crop_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_raw_inset_crop_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_raw_inset_crop_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_raw_inset_crop_t position(long position) { + return (libraw_raw_inset_crop_t)super.position(position); + } + @Override public libraw_raw_inset_crop_t getPointer(long i) { + return new libraw_raw_inset_crop_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short cleft(); public native libraw_raw_inset_crop_t cleft(short setter); + public native @Cast("ushort") short ctop(); public native libraw_raw_inset_crop_t ctop(short setter); + public native @Cast("ushort") short cwidth(); public native libraw_raw_inset_crop_t cwidth(short setter); + public native @Cast("ushort") short cheight(); public native libraw_raw_inset_crop_t cheight(short setter); + public native @Cast("ushort") short aspect(); public native libraw_raw_inset_crop_t aspect(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_rawdata_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_rawdata_t.java new file mode 100644 index 00000000000..0a8defbaf0c --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_rawdata_t.java @@ -0,0 +1,61 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_rawdata_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_rawdata_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_rawdata_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_rawdata_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_rawdata_t position(long position) { + return (libraw_rawdata_t)super.position(position); + } + @Override public libraw_rawdata_t getPointer(long i) { + return new libraw_rawdata_t((Pointer)this).offsetAddress(i); + } + + /* really allocated bitmap */ + public native Pointer raw_alloc(); public native libraw_rawdata_t raw_alloc(Pointer setter); + /* alias to single_channel variant */ + public native @Cast("ushort*") ShortPointer raw_image(); public native libraw_rawdata_t raw_image(ShortPointer setter); + /* alias to 4-channel variant */ + public native @Cast("ushort") short color4_image(int i, int j); public native libraw_rawdata_t color4_image(int i, int j, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer color4_image(); + /* alias to 3-color variand decoded by RawSpeed */ + public native @Cast("ushort") short color3_image(int i, int j); public native libraw_rawdata_t color3_image(int i, int j, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer color3_image(); + /* float bayer */ + public native FloatPointer float_image(); public native libraw_rawdata_t float_image(FloatPointer setter); + /* float 3-component */ + public native float float3_image(int i, int j); public native libraw_rawdata_t float3_image(int i, int j, float setter); + @MemberGetter public native @Cast("float*") FloatPointer float3_image(); + /* float 4-component */ + public native float float4_image(int i, int j); public native libraw_rawdata_t float4_image(int i, int j, float setter); + @MemberGetter public native @Cast("float*") FloatPointer float4_image(); + + /* Phase One black level data; */ + public native short ph1_cblack(int i, int j); public native libraw_rawdata_t ph1_cblack(int i, int j, short setter); + @MemberGetter public native @Cast("short*") ShortPointer ph1_cblack(); + public native short ph1_rblack(int i, int j); public native libraw_rawdata_t ph1_rblack(int i, int j, short setter); + @MemberGetter public native @Cast("short*") ShortPointer ph1_rblack(); + /* save color and sizes here, too.... */ + public native @ByRef libraw_iparams_t iparams(); public native libraw_rawdata_t iparams(libraw_iparams_t setter); + public native @ByRef libraw_image_sizes_t sizes(); public native libraw_rawdata_t sizes(libraw_image_sizes_t setter); + public native @ByRef libraw_internal_output_params_t ioparams(); public native libraw_rawdata_t ioparams(libraw_internal_output_params_t setter); + public native @ByRef libraw_colordata_t color(); public native libraw_rawdata_t color(libraw_colordata_t setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_samsung_makernotes_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_samsung_makernotes_t.java new file mode 100644 index 00000000000..0f1c0ab0935 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_samsung_makernotes_t.java @@ -0,0 +1,44 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_samsung_makernotes_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_samsung_makernotes_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_samsung_makernotes_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_samsung_makernotes_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_samsung_makernotes_t position(long position) { + return (libraw_samsung_makernotes_t)super.position(position); + } + @Override public libraw_samsung_makernotes_t getPointer(long i) { + return new libraw_samsung_makernotes_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("unsigned") int ImageSizeFull(int i); public native libraw_samsung_makernotes_t ImageSizeFull(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer ImageSizeFull(); + public native @Cast("unsigned") int ImageSizeCrop(int i); public native libraw_samsung_makernotes_t ImageSizeCrop(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer ImageSizeCrop(); + public native int ColorSpace(int i); public native libraw_samsung_makernotes_t ColorSpace(int i, int setter); + @MemberGetter public native IntPointer ColorSpace(); + public native @Cast("unsigned") int key(int i); public native libraw_samsung_makernotes_t key(int i, int setter); + @MemberGetter public native @Cast("unsigned*") IntPointer key(); + public native double DigitalGain(); public native libraw_samsung_makernotes_t DigitalGain(double setter); /* PostAEGain, digital stretch */ + public native int DeviceType(); public native libraw_samsung_makernotes_t DeviceType(int setter); + public native @Cast("char") byte LensFirmware(int i); public native libraw_samsung_makernotes_t LensFirmware(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer LensFirmware(); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_sensor_highspeed_crop_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_sensor_highspeed_crop_t.java new file mode 100644 index 00000000000..ec3bf92009c --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_sensor_highspeed_crop_t.java @@ -0,0 +1,36 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_sensor_highspeed_crop_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_sensor_highspeed_crop_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_sensor_highspeed_crop_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_sensor_highspeed_crop_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_sensor_highspeed_crop_t position(long position) { + return (libraw_sensor_highspeed_crop_t)super.position(position); + } + @Override public libraw_sensor_highspeed_crop_t getPointer(long i) { + return new libraw_sensor_highspeed_crop_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short cleft(); public native libraw_sensor_highspeed_crop_t cleft(short setter); + public native @Cast("ushort") short ctop(); public native libraw_sensor_highspeed_crop_t ctop(short setter); + public native @Cast("ushort") short cwidth(); public native libraw_sensor_highspeed_crop_t cwidth(short setter); + public native @Cast("ushort") short cheight(); public native libraw_sensor_highspeed_crop_t cheight(short setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_shootinginfo_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_shootinginfo_t.java new file mode 100644 index 00000000000..d9e8b48c68b --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_shootinginfo_t.java @@ -0,0 +1,44 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_shootinginfo_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_shootinginfo_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_shootinginfo_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_shootinginfo_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_shootinginfo_t position(long position) { + return (libraw_shootinginfo_t)super.position(position); + } + @Override public libraw_shootinginfo_t getPointer(long i) { + return new libraw_shootinginfo_t((Pointer)this).offsetAddress(i); + } + + public native short DriveMode(); public native libraw_shootinginfo_t DriveMode(short setter); + public native short FocusMode(); public native libraw_shootinginfo_t FocusMode(short setter); + public native short MeteringMode(); public native libraw_shootinginfo_t MeteringMode(short setter); + public native short AFPoint(); public native libraw_shootinginfo_t AFPoint(short setter); + public native short ExposureMode(); public native libraw_shootinginfo_t ExposureMode(short setter); + public native short ExposureProgram(); public native libraw_shootinginfo_t ExposureProgram(short setter); + public native short ImageStabilization(); public native libraw_shootinginfo_t ImageStabilization(short setter); + public native @Cast("char") byte BodySerial(int i); public native libraw_shootinginfo_t BodySerial(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer BodySerial(); + public native @Cast("char") byte InternalBodySerial(int i); public native libraw_shootinginfo_t InternalBodySerial(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer InternalBodySerial(); /* this may be PCB or sensor serial, depends on + make/model */ + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_sony_info_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_sony_info_t.java new file mode 100644 index 00000000000..43e547789b0 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_sony_info_t.java @@ -0,0 +1,104 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_sony_info_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_sony_info_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_sony_info_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_sony_info_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_sony_info_t position(long position) { + return (libraw_sony_info_t)super.position(position); + } + @Override public libraw_sony_info_t getPointer(long i) { + return new libraw_sony_info_t((Pointer)this).offsetAddress(i); + } + + public native @Cast("ushort") short CameraType(); public native libraw_sony_info_t CameraType(short setter); + public native @Cast("uchar") byte Sony0x9400_version(); public native libraw_sony_info_t Sony0x9400_version(byte setter); /* 0 if not found/deciphered, 0xa, 0xb, 0xc + following exiftool convention */ + public native @Cast("uchar") byte Sony0x9400_ReleaseMode2(); public native libraw_sony_info_t Sony0x9400_ReleaseMode2(byte setter); + public native @Cast("unsigned") int Sony0x9400_SequenceImageNumber(); public native libraw_sony_info_t Sony0x9400_SequenceImageNumber(int setter); + public native @Cast("uchar") byte Sony0x9400_SequenceLength1(); public native libraw_sony_info_t Sony0x9400_SequenceLength1(byte setter); + public native @Cast("unsigned") int Sony0x9400_SequenceFileNumber(); public native libraw_sony_info_t Sony0x9400_SequenceFileNumber(int setter); + public native @Cast("uchar") byte Sony0x9400_SequenceLength2(); public native libraw_sony_info_t Sony0x9400_SequenceLength2(byte setter); + public native @Cast("uint8_t") byte AFAreaModeSetting(); public native libraw_sony_info_t AFAreaModeSetting(byte setter); + public native @Cast("ushort") short FlexibleSpotPosition(int i); public native libraw_sony_info_t FlexibleSpotPosition(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer FlexibleSpotPosition(); + public native @Cast("uint8_t") byte AFPointSelected(); public native libraw_sony_info_t AFPointSelected(byte setter); + public native @Cast("uint8_t") byte AFPointsUsed(int i); public native libraw_sony_info_t AFPointsUsed(int i, byte setter); + @MemberGetter public native @Cast("uint8_t*") BytePointer AFPointsUsed(); + public native @Cast("uint8_t") byte AFTracking(); public native libraw_sony_info_t AFTracking(byte setter); + public native @Cast("uint8_t") byte AFType(); public native libraw_sony_info_t AFType(byte setter); + public native @Cast("ushort") short FocusLocation(int i); public native libraw_sony_info_t FocusLocation(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer FocusLocation(); + + + public native @Cast("uchar") byte AFMicroAdjRegisteredLenses(); public native libraw_sony_info_t AFMicroAdjRegisteredLenses(byte setter); + public native @Cast("ushort") short VariableLowPassFilter(); public native libraw_sony_info_t VariableLowPassFilter(short setter); + public native @Cast("unsigned") int LongExposureNoiseReduction(); public native libraw_sony_info_t LongExposureNoiseReduction(int setter); + public native @Cast("ushort") short HighISONoiseReduction(); public native libraw_sony_info_t HighISONoiseReduction(short setter); + public native @Cast("ushort") short HDR(int i); public native libraw_sony_info_t HDR(int i, short setter); + @MemberGetter public native @Cast("ushort*") ShortPointer HDR(); + public native @Cast("ushort") short group2010(); public native libraw_sony_info_t group2010(short setter); + public native @Cast("ushort") short real_iso_offset(); public native libraw_sony_info_t real_iso_offset(short setter); + public native @Cast("ushort") short MeteringMode_offset(); public native libraw_sony_info_t MeteringMode_offset(short setter); + public native @Cast("ushort") short ExposureProgram_offset(); public native libraw_sony_info_t ExposureProgram_offset(short setter); + public native @Cast("ushort") short ReleaseMode2_offset(); public native libraw_sony_info_t ReleaseMode2_offset(short setter); + public native @Cast("unsigned") int MinoltaCamID(); public native libraw_sony_info_t MinoltaCamID(int setter); + public native float firmware(); public native libraw_sony_info_t firmware(float setter); + public native @Cast("ushort") short ImageCount3_offset(); public native libraw_sony_info_t ImageCount3_offset(short setter); + public native @Cast("unsigned") int ImageCount3(); public native libraw_sony_info_t ImageCount3(int setter); + public native @Cast("unsigned") int ElectronicFrontCurtainShutter(); public native libraw_sony_info_t ElectronicFrontCurtainShutter(int setter); + public native @Cast("ushort") short MeteringMode2(); public native libraw_sony_info_t MeteringMode2(short setter); + public native @Cast("char") byte SonyDateTime(int i); public native libraw_sony_info_t SonyDateTime(int i, byte setter); + @MemberGetter public native @Cast("char*") BytePointer SonyDateTime(); + public native @Cast("unsigned") int ShotNumberSincePowerUp(); public native libraw_sony_info_t ShotNumberSincePowerUp(int setter); + public native @Cast("ushort") short PixelShiftGroupPrefix(); public native libraw_sony_info_t PixelShiftGroupPrefix(short setter); + public native @Cast("unsigned") int PixelShiftGroupID(); public native libraw_sony_info_t PixelShiftGroupID(int setter); + public native @Cast("char") byte nShotsInPixelShiftGroup(); public native libraw_sony_info_t nShotsInPixelShiftGroup(byte setter); + public native @Cast("char") byte numInPixelShiftGroup(); public native libraw_sony_info_t numInPixelShiftGroup(byte setter); /* '0' if ARQ, first shot in the group has '1' + here */ + public native @Cast("ushort") short prd_ImageHeight(); public native libraw_sony_info_t prd_ImageHeight(short setter); + public native @Cast("ushort") short prd_ImageWidth(); public native libraw_sony_info_t prd_ImageWidth(short setter); + public native @Cast("ushort") short prd_RawBitDepth(); public native libraw_sony_info_t prd_RawBitDepth(short setter); + public native @Cast("ushort") short prd_StorageMethod(); public native libraw_sony_info_t prd_StorageMethod(short setter); /* 82 -> Padded; 89 -> Linear */ + public native @Cast("ushort") short prd_BayerPattern(); public native libraw_sony_info_t prd_BayerPattern(short setter); /* 0 -> not valid; 1 -> RGGB; 4 -> GBRG */ + + public native @Cast("ushort") short SonyRawFileType(); public native libraw_sony_info_t SonyRawFileType(short setter); /* takes precedence over RAWFileType and Quality: + 0 for uncompressed 14-bit raw + 1 for uncompressed 12-bit raw + 2 for compressed raw + 3 for lossless compressed raw + */ + public native @Cast("ushort") short RAWFileType(); public native libraw_sony_info_t RAWFileType(short setter); /* takes precedence over Quality + 0 for compressed raw, 1 for uncompressed; + */ + public native @Cast("unsigned") int Quality(); public native libraw_sony_info_t Quality(int setter); /* 0 or 6 for raw, 7 or 8 for compressed raw */ + public native @Cast("ushort") short FileFormat(); public native libraw_sony_info_t FileFormat(short setter); /* 1000 SR2 + 2000 ARW 1.0 + 3000 ARW 2.0 + 3100 ARW 2.1 + 3200 ARW 2.2 + 3300 ARW 2.3 + 3310 ARW 2.3.1 + 3320 ARW 2.3.2 + 3330 ARW 2.3.3 + 3350 ARW 2.3.5 + */ + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/libraw_thumbnail_t.java b/libraw/src/gen/java/org/bytedeco/libraw/libraw_thumbnail_t.java new file mode 100644 index 00000000000..b1b89662424 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/libraw_thumbnail_t.java @@ -0,0 +1,38 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class libraw_thumbnail_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public libraw_thumbnail_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public libraw_thumbnail_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public libraw_thumbnail_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public libraw_thumbnail_t position(long position) { + return (libraw_thumbnail_t)super.position(position); + } + @Override public libraw_thumbnail_t getPointer(long i) { + return new libraw_thumbnail_t((Pointer)this).offsetAddress(i); + } + + public native LibRaw_thumbnail_formats tformat(); public native libraw_thumbnail_t tformat(LibRaw_thumbnail_formats setter); + public native @Cast("ushort") short twidth(); public native libraw_thumbnail_t twidth(short setter); + public native @Cast("ushort") short theight(); public native libraw_thumbnail_t theight(short setter); + public native @Cast("unsigned") int tlength(); public native libraw_thumbnail_t tlength(int setter); + public native int tcolors(); public native libraw_thumbnail_t tcolors(int setter); + public native @Cast("char*") BytePointer thumb(); public native libraw_thumbnail_t thumb(BytePointer setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/memory_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/memory_callback.java new file mode 100644 index 00000000000..fc77d0ebaee --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/memory_callback.java @@ -0,0 +1,23 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class memory_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public memory_callback(Pointer p) { super(p); } + protected memory_callback() { allocate(); } + private native void allocate(); + public native void call(Pointer data, @Cast("const char*") BytePointer file, + @Cast("const char*") BytePointer where); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/ph1_t.java b/libraw/src/gen/java/org/bytedeco/libraw/ph1_t.java new file mode 100644 index 00000000000..ab939d4a7e9 --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/ph1_t.java @@ -0,0 +1,41 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class ph1_t extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public ph1_t() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public ph1_t(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ph1_t(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public ph1_t position(long position) { + return (ph1_t)super.position(position); + } + @Override public ph1_t getPointer(long i) { + return new ph1_t((Pointer)this).offsetAddress(i); + } + + public native int format(); public native ph1_t format(int setter); + public native int key_off(); public native ph1_t key_off(int setter); + public native int tag_21a(); public native ph1_t tag_21a(int setter); + public native int t_black(); public native ph1_t t_black(int setter); + public native int split_col(); public native ph1_t split_col(int setter); + public native int black_col(); public native ph1_t black_col(int setter); + public native int split_row(); public native ph1_t split_row(int setter); + public native int black_row(); public native ph1_t black_row(int setter); + public native float tag_210(); public native ph1_t tag_210(float setter); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/post_identify_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/post_identify_callback.java new file mode 100644 index 00000000000..32608e74fbc --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/post_identify_callback.java @@ -0,0 +1,21 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class post_identify_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public post_identify_callback(Pointer p) { super(p); } + protected post_identify_callback() { allocate(); } + private native void allocate(); + public native void call(Pointer ctx); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/pre_identify_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/pre_identify_callback.java new file mode 100644 index 00000000000..020484223ea --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/pre_identify_callback.java @@ -0,0 +1,21 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class pre_identify_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public pre_identify_callback(Pointer p) { super(p); } + protected pre_identify_callback() { allocate(); } + private native void allocate(); + public native int call(Pointer ctx); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/process_step_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/process_step_callback.java new file mode 100644 index 00000000000..91887602abe --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/process_step_callback.java @@ -0,0 +1,21 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class process_step_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public process_step_callback(Pointer p) { super(p); } + protected process_step_callback() { allocate(); } + private native void allocate(); + public native void call(Pointer ctx); + } diff --git a/libraw/src/gen/java/org/bytedeco/libraw/progress_callback.java b/libraw/src/gen/java/org/bytedeco/libraw/progress_callback.java new file mode 100644 index 00000000000..485bb1e781e --- /dev/null +++ b/libraw/src/gen/java/org/bytedeco/libraw/progress_callback.java @@ -0,0 +1,23 @@ +// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.libraw; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; + +import static org.bytedeco.libraw.global.LibRaw.*; + + + @Properties(inherit = org.bytedeco.libraw.presets.LibRaw.class) +public class progress_callback extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public progress_callback(Pointer p) { super(p); } + protected progress_callback() { allocate(); } + private native void allocate(); + public native int call(Pointer data, LibRaw_progress stage, + int iteration, int expected); + } diff --git a/libraw/src/main/java/org/bytedeco/libraw/presets/LibRaw.java b/libraw/src/main/java/org/bytedeco/libraw/presets/LibRaw.java new file mode 100644 index 00000000000..eede5fa110a --- /dev/null +++ b/libraw/src/main/java/org/bytedeco/libraw/presets/LibRaw.java @@ -0,0 +1,147 @@ +/* + * Copyright (C) 2022 Jarek Sacha, Samuel Audet + * + * Licensed either under the Apache License, Version 2.0, or (at your option) + * under the terms of the GNU General Public License as published by + * the Free Software Foundation (subject to the "Classpath" exception), + * either version 2, or any later version (collectively, the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.gnu.org/licenses/ + * http://www.gnu.org/software/classpath/license.html + * + * or as provided in the LICENSE.txt file that accompanied this code. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.bytedeco.libraw.presets; + +import org.bytedeco.javacpp.Loader; +import org.bytedeco.javacpp.annotation.Platform; +import org.bytedeco.javacpp.annotation.Properties; +import org.bytedeco.javacpp.presets.javacpp; +import org.bytedeco.javacpp.tools.Info; +import org.bytedeco.javacpp.tools.InfoMap; +import org.bytedeco.javacpp.tools.InfoMapper; + +/** + * Wrapper for LibRaw library. + * + * @author Jarek Sacha + */ +@Properties(inherit = javacpp.class, + target = "org.bytedeco.libraw", + global = "org.bytedeco.libraw.global.LibRaw", + value = { + @Platform( + include = { + "libraw/libraw_const.h", + "libraw/libraw_version.h", + "libraw/libraw_types.h", + "libraw/libraw_datastream.h", + "libraw/libraw.h", + }, + link = "raw_r@.20", + preload = "gomp@.1" + ), + @Platform(value = "windows", + link = "libraw_static", + define = { + // To avoid errors like: "winsock2.h error C2011 'struct' type redefinition" + "WIN32_LEAN_AND_MEAN", + // To compile libraw_streams.h + "LIBRAW_WIN32_CALLS" + } + ) + + }) +public class LibRaw implements InfoMapper { + static { + Loader.checkVersion("org.bytedeco", "libraw"); + } + + public void map(InfoMap infoMap) { + infoMap + .put(new Info().enumerate()) + // + // libraw_const.h + // + // Skip to avoid unqualified referencing enum values in + .put(new Info("LIBRAW_EXIFTOOLTAGTYPE_int8u", + "LIBRAW_EXIFTOOLTAGTYPE_string", + "LIBRAW_EXIFTOOLTAGTYPE_int16u", + "LIBRAW_EXIFTOOLTAGTYPE_int32u", + "LIBRAW_EXIFTOOLTAGTYPE_rational64u", + "LIBRAW_EXIFTOOLTAGTYPE_int8s", + "LIBRAW_EXIFTOOLTAGTYPE_undef", + "LIBRAW_EXIFTOOLTAGTYPE_binary", + "LIBRAW_EXIFTOOLTAGTYPE_int16s", + "LIBRAW_EXIFTOOLTAGTYPE_int32s", + "LIBRAW_EXIFTOOLTAGTYPE_rational64s", + "LIBRAW_EXIFTOOLTAGTYPE_float", + "LIBRAW_EXIFTOOLTAGTYPE_double", + "LIBRAW_EXIFTOOLTAGTYPE_ifd", + "LIBRAW_EXIFTOOLTAGTYPE_unicode", + "LIBRAW_EXIFTOOLTAGTYPE_complex", + "LIBRAW_EXIFTOOLTAGTYPE_int64u", + "LIBRAW_EXIFTOOLTAGTYPE_int64s", + "LIBRAW_EXIFTOOLTAGTYPE_ifd64" + ).skip()) + // Skip[ issues with generation of "enum LibRaw_dng_processing" + .put(new Info("LIBRAW_DNG_ALL", "LIBRAW_DNG_DEFAULT").skip()) + // Skip[ issues with generation of "enum LibRaw_processing_options" + .put(new Info("LibRaw_processing_options").skip()) + + // + // libraw_version.h + // + // + .put(new Info("LIBRAW_VERSION_TAIL").skip()) + .put(new Info("LIBRAW_VERSION_STR").skip()) + .put(new Info("LIBRAW_VERSION").skip()) + .put(new Info("LIBRAW_VERSION_TAIL").skip()) + + // + // libraw_types.h + // + // Realated to incorrect wrapping of `signed __int8` + .put(new Info("libraw_sony_info_t::AFMicroAdjValue").skip()) + .put(new Info("libraw_sony_info_t::AFMicroAdjOn").skip()) + .put(new Info("fuji_compressed_params::q_table").skip()) + .put(new Info("libraw_nikon_makernotes_t::q_table").skip()) + .put(new Info("libraw_nikon_makernotes_t::AFFineTuneAdj").skip()) + + .put(new Info("libraw_static_table_t").skip(true)) + + // + // "libraw_datastream.h" + // + .put(new Info("LIBRAW_WIN32_DLLDEFS").define(false)) + // + .put(new Info("USE_DNGSDK").define(false)) + // + .put(new Info("LibRaw_windows_datastream").skip(true)) + // "error C2039: 'wfname': is not a member of 'LibRaw_file_datastream'" + .put(new Info("LIBRAW_WIN32_UNICODEPATHS").define(false)) + // libraw_datastream.h(207): error C3861: 'getc_unlocked': identifier not found + .put(new Info("libraw_nikon_makernotes_t::AFFineTuneAdj").skip()) + + // + // libraw.h + // + .put(new Info("LibRaw::get_internal_data_pointer").skip(true)) + + // + // To build on non-Windows + // + .put(new Info("defined(_WIN32) || defined(WIN32)").define(false)) + ; + } +} diff --git a/libraw/src/main/java9/module-info.java b/libraw/src/main/java9/module-info.java new file mode 100644 index 00000000000..88e6e37eaf0 --- /dev/null +++ b/libraw/src/main/java9/module-info.java @@ -0,0 +1,6 @@ +module org.bytedeco.libraw { + requires transitive org.bytedeco.javacpp; + exports org.bytedeco.libraw.global; + exports org.bytedeco.libraw.presets; + exports org.bytedeco.libraw; +} diff --git a/platform/pom.xml b/platform/pom.xml index 0194018ae72..36a2e652d4d 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -47,6 +47,7 @@ ../llvm/platform ../libffi/platform ../libpostal/platform + ../libraw/platform ../leptonica/platform ../tesseract/platform ../caffe/platform @@ -242,6 +243,11 @@ libpostal-platform 1.1-${project.version} + + org.bytedeco + libraw + 0.20.2-${project.version} + org.bytedeco leptonica-platform diff --git a/pom.xml b/pom.xml index 93b9e79d25c..1e7d55f4155 100644 --- a/pom.xml +++ b/pom.xml @@ -609,6 +609,7 @@ llvm libffi libpostal + libraw leptonica tesseract caffe @@ -1389,6 +1390,7 @@ llvm libffi libpostal + libraw leptonica tesseract caffe @@ -1453,6 +1455,7 @@ llvm libffi libpostal + libraw leptonica tesseract @@ -1515,6 +1518,7 @@ llvm libffi libpostal + libraw leptonica tesseract caffe @@ -1666,6 +1670,7 @@ llvm libffi libpostal + libraw leptonica tesseract cuda