pax_global_header00006660000000000000000000000064147424647520014531gustar00rootroot0000000000000052 comment=e99f14785ef02ee249bccbad8a97595eadbab810 libexif-libexif-0_6_25-release/000077500000000000000000000000001474246475200164455ustar00rootroot00000000000000libexif-libexif-0_6_25-release/.appveyor.yml000066400000000000000000000030671474246475200211210ustar00rootroot00000000000000# AppVeyor CI configuration file https://www.appveyor.com/ # # SPDX-FileCopyrightText: Placed into the public domain by Dan Fandrich # SPDX-License-Identifier: CC0-1.0 image: Visual Studio 2022 environment: CYGWIN_MIRROR: https://cygwin.mirror.constant.com matrix: - CONFIG: cygwin64 - CONFIG: msys2 install: - cmd: if [%CONFIG%]==[cygwin64] ( C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s "%CYGWIN_MIRROR%" -P libiconv-devel ) - cmd: if [%CONFIG%]==[msys2] ( set "PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%" ) - cmd: if [%CONFIG%]==[msys2] ( bash -lc "pacman -S --noconfirm --noprogressbar --needed libtool mingw-w64-x86_64-{autotools,libtool,gettext,libiconv}" ) build_script: - cmd: if [%CONFIG%]==[cygwin64] ( C:\%CONFIG%\bin\bash -e -l -c "cd $APPVEYOR_BUILD_FOLDER && autoreconf -sif && ./configure --prefix=$HOME --disable-dependency-tracking && make V=1 LDFLAGS='-lintl' && make V=1 install" ) - cmd: if [%CONFIG%]==[msys2] ( bash -lc "set -x; cd $APPVEYOR_BUILD_FOLDER && gettext_datadir=/mingw64/share/gettext autoreconf -sivf && ./configure --prefix=$HOME/install --disable-dependency-tracking && make V=1 && make V=1 install" ) test_script: - cmd: if [%CONFIG%]==[cygwin64] ( C:\%CONFIG%\bin\bash -e -l -c "cd $APPVEYOR_BUILD_FOLDER && make V=1 check" ) - cmd: if [%CONFIG%]==[msys2] ( bash -lc "cd $APPVEYOR_BUILD_FOLDER && make V=1 check" ) branches: only: - master - /\/ci$/ skip_commits: files: - '.cirrus.yml' - '.github/**/*' - '.reuse/*' - 'LICENSES/*' libexif-libexif-0_6_25-release/.cirrus.yml000066400000000000000000000033661474246475200205650ustar00rootroot00000000000000# Cirrus CI configuration: # https://cirrus-ci.com/github/libexif/libexif # Documentation on this file: # https://cirrus-ci.org/guide/writing-tasks/ # # SPDX-FileCopyrightText: Placed into the public domain by Dan Fandrich # SPDX-License-Identifier: CC0-1.0 freebsd_task: skip: "changesIncludeOnly( '.appveyor.yml', '.github/**', '.reuse/*', 'LICENSES/*' )" name: FreeBSD freebsd_instance: memory: 1400M matrix: image_family: freebsd-14-2 image_family: freebsd-13-4 env: # Set to 10 instead of 1 to avoid problems when new commits are submitted # during a run. CIRRUS_CLONE_DEPTH: 10 CFLAGS: -Wall -Wextra -O2 MAKEFLAGS: -j 3 pkginstall_script: - pkg install -y autoconf automake libtool gettext-tools gettext-runtime configure_script: - autoreconf -sivf - ./configure --disable-dependency-tracking CFLAGS="$CFLAGS" || { tail -300 config.log; false; } compile_script: - make V=1 test_script: - make V=1 check install_script: - make V=1 install linux_arm_task: name: ARM Linux arm_container: memory: 300M matrix: image: ubuntu:22.04 image: ubuntu:24.04 env: # Set to 10 instead of 1 to avoid problems when new commits are submitted # during a run. CIRRUS_CLONE_DEPTH: 10 CFLAGS: -Wall -Wextra -O2 MAKE_FLAGS: -j 3 pkginstall_script: - apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential autoconf automake autopoint libtool gettext configure_script: - autoreconf -sivf - ./configure --disable-dependency-tracking CFLAGS="$CFLAGS" || { tail -300 config.log; false; } compile_script: - make V=1 test_script: - make V=1 check install_script: - make V=1 install libexif-libexif-0_6_25-release/.github/000077500000000000000000000000001474246475200200055ustar00rootroot00000000000000libexif-libexif-0_6_25-release/.github/dependabot.yml000066400000000000000000000026011474246475200226340ustar00rootroot00000000000000# Copyright 2023 Google LLC # Licensed under the MIT license: # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # # SPDX-License-Identifier: MIT # version: 2 updates: - package-ecosystem: "github-actions" # Necessary to update action hashs directory: "/" schedule: interval: "weekly" # Allow up to 3 opened pull requests for github-actions versions open-pull-requests-limit: 3 libexif-libexif-0_6_25-release/.github/workflows/000077500000000000000000000000001474246475200220425ustar00rootroot00000000000000libexif-libexif-0_6_25-release/.github/workflows/ci.yml000066400000000000000000000205001474246475200231550ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2024 Dan Fandrich # # SPDX-License-Identifier: CC0-1.0 name: Linux 'on': push: branches: - master - '*/ci' paths-ignore: - '**/*.md' - '.cirrus.yml' - '.appveyor.yml' - 'LICENSES/*' pull_request: branches: - master paths-ignore: - '**/*.md' - '.cirrus.yml' - '.appveyor.yml' - 'LICENSES/*' permissions: {} jobs: linux: name: ${{ matrix.os }} ${{ matrix.cc }} ${{ matrix.name }} runs-on: ${{ matrix.os }} env: MAKEFLAGS: -j 5 DEBIAN_FRONTEND: noninteractive strategy: fail-fast: false matrix: os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04] cc: [gcc, clang] packages: [build-essential clang autoconf automake autopoint libtool gettext] cflags: [-Wall -Wextra -O2] include: # This uses ASAN and UBSAN, enables more warnings, plus errors out on any warnings - name: sanitize os: ubuntu-24.04 packages: clang build-essential autoconf automake autopoint libtool gettext cc: clang # TODO: fix the code to eliminate the -Wno-... disables cflags: -fsanitize=address -fsanitize=undefined -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error -g -Wall -Wextra -Wno-assign-enum -Wno-switch -Wno-implicit-fallthrough -Wno-shorten-64-to-32 -Wno-conversion -Wno-sign-conversion -Wlong-long -Wmultichar -Wformat-nonliteral -Wimplicit-function-declaration -Wpointer-arith -Wwrite-strings -Wshadow -Winline -Wnested-externs -Wmissing-declarations -Wmissing-prototypes -Wfloat-equal -Wsign-compare -Wundef -Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -Wcast-align -Wunused -Waddress -Wattributes -Wbad-function-cast -Wdiv-by-zero -Wformat-security -Wempty-body -Wmissing-field-initializers -Wmissing-noreturn -Wold-style-definition -Wredundant-decls -Wtype-limits -Wunreachable-code -Wunused-parameter -Wignored-qualifiers -Wvla -Wshift-sign-overflow -Wlanguage-extension-token -Wenum-conversion -Wsometimes-uninitialized -Wmissing-variable-declarations -Wheader-guard -Wunused-const-variable -Wpragmas -Wunreachable-code-break -Wdouble-promotion -Wcomma -Wextra-semi-stmt ldflags: -fsanitize=address -fsanitize=undefined -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error -g mflags: AM_CFLAGS=-Werror - name: powerpc cross-compile os: ubuntu-24.04 packages: gcc-14-powerpc-linux-gnu libc6-dev-powerpc-cross build-essential autoconf automake autopoint libtool gettext cc: powerpc-linux-gnu-gcc-14 cflags: -g -Wall -Wextra ldflags: -static configure: --host=powerpc-linux-gnu skiptests: true - name: C90 os: ubuntu-24.04 packages: build-essential autoconf automake autopoint libtool gettext cc: gcc cflags: -Wall -Wextra -O2 -std=iso9899:1990 -D_XOPEN_SOURCE=500 - name: disable-nls os: ubuntu-24.04 packages: build-essential autoconf automake autopoint libtool gettext cc: gcc cflags: -Wall -Wextra -O2 configure: --disable-nls - name: failmalloc os: ubuntu-20.04 packages: build-essential autoconf automake autopoint libtool gettext cc: gcc cflags: -Wall -Wextra -O2 -fsanitize=address -fsanitize=undefined -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error ldflags: -Wall -Wextra -O2 -fsanitize=address -fsanitize=undefined -fsanitize-address-use-after-scope -fsanitize-undefined-trap-on-error configure: --with-failmalloc="$HOME/failmalloc/lib" failmalloc: true steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 if: matrix.failmalloc == true id: cache with: path: ~/failmalloc/lib key: ${{ runner.os }}-${{ matrix.os }}-failmalloc-1.0 - name: 'install prereqs' run: sudo apt-get install -y --no-install-suggests --no-install-recommends ${{ matrix.packages }} - name: 'build failmalloc' if: matrix.failmalloc == true && steps.cache.outputs.cache-hit != 'true' run: | curl -fsSORL --retry 8 https://download.savannah.nongnu.org/releases/failmalloc/failmalloc-1.0.tar.gz tar xaf failmalloc-1.0.tar.gz cd failmalloc-1.0 # Fix compiling with modern glibc, but not too modern because it has since been removed sed -i -e 's/\(__malloc_initialize_hook\)/volatile \1/' failmalloc.c # Disable failmalloc on program exit so system code can run unimpeded sed -i -e '/failmalloc_init/,${/failmalloc_install/aatexit(failmalloc_uninstall); }' failmalloc.c ./configure --prefix="$HOME/failmalloc" --disable-dependency-tracking make make install - name: 'configure' run: autoreconf -sfiv && ./configure --disable-dependency-tracking --prefix="$PWD"/install ${{ matrix.configure }} CFLAGS="${{ matrix.cflags }}" LDFLAGS="${{ matrix.ldflags }}" CC="${{ matrix.cc }}" || { tail -300 config.log; false; } - name: 'make' run: make V=1 ${{ matrix.mflags }} - name: 'test' if: matrix.skiptests != true env: ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1:detect_leaks=1 run: make V=1 check || { tail -n 500 test*/test-suite.log; false; } - name: 'install' run: make V=1 install linux-ppc: name: Linux PPC 32-bit big-endian MUSL runs-on: ubuntu-24.04 env: DEBIAN_FRONTEND: noninteractive steps: - uses: actions/checkout@v4 - name: Set up dependencies run: sudo apt-get install -y --no-install-suggests --no-install-recommends qemu-user-static - name: 'Perform configure, build, test' run: > docker run --rm -v "$(pwd):/${{ github.workspace }}" -w ${{ github.workspace }} --platform linux/ppc adelielinux/adelie:latest sh -c ' cat /etc/os-release && uname -a && apk add --no-cache gcc make musl-dev autoconf automake libtool gettext-tiny-dev && autoreconf -sif && ./configure --prefix="$PWD/install" --disable-dependency-tracking && make -j 5 V=1 && make -j 5 V=1 check || { tail -n 500 test*/test-suite.log; false; } ' coverage: name: Linux code coverage runs-on: ${{ matrix.os }} env: MAKEFLAGS: -j 5 DEBIAN_FRONTEND: noninteractive strategy: matrix: include: - os: ubuntu-20.04 packages: build-essential autoconf automake autopoint libtool gettext subversion libpopt-dev lcov cflags: -g -O0 --coverage ldflags: -g -O0 --coverage steps: - uses: actions/checkout@v4 - name: 'install prereqs' run: sudo apt-get install -y --no-install-suggests --no-install-recommends ${{ matrix.packages }} - name: 'install libexif-testsuite' run: | git clone --depth=1 https://github.com/libexif/libexif-testsuite.git cd libexif-testsuite mkdir src # point to the libexif code checked out in actions/checkout above ln -s "${GITHUB_WORKSPACE}" src/libexif ./build-config.sh autoreconf -sivf - name: 'configure' run: cd libexif-testsuite && ./configure --prefix="$PWD"/install --disable-dependency-tracking CFLAGS="${{ matrix.cflags }}" LDFLAGS="${{ matrix.ldflags }}" || { tail -n 500 config.log; false; } - name: 'build' run: | # Build libexif via its checkout path, not through the symlink at # libexif-testsuite/src/libexif, so that Coveralls can find the # source code make V=1 make -C libexif-testsuite V=1 - name: 'coverage tests' run: make -C libexif-testsuite V=1 check || { tail -n 500 test*/test-suite.log src/libexif/test*/test-suite.log; false; } - name: 'coverage analysis' run: cd libexif-testsuite && lcov -c -d src/libexif/libexif/ -o lcov.info - name: push to Coveralls uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.github_token }} file: libexif-testsuite/lcov.info libexif-libexif-0_6_25-release/.github/workflows/cifuzz.yml000066400000000000000000000015421474246475200241010ustar00rootroot00000000000000# Copyright 2022 David Korczynski, et. al. # SPDX-License-Identifier: LGPL-2.0-or-later # name: CIFuzz on: [pull_request] permissions: contents: read jobs: Fuzzing: runs-on: ubuntu-latest steps: - name: Build Fuzzers id: build uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master with: oss-fuzz-project-name: 'libexif' dry-run: false language: c++ - name: Run Fuzzers uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master with: oss-fuzz-project-name: 'libexif' fuzz-seconds: 300 dry-run: false language: c++ - name: Upload Crash uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 if: failure() && steps.build.outcome == 'success' with: name: artifacts path: ./out/artifacts libexif-libexif-0_6_25-release/.github/workflows/codeql.yml000066400000000000000000000051661474246475200240440ustar00rootroot00000000000000# For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. # # ******** NOTE ******** # We have attempted to detect the languages in your repository. Please check # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # # SPDX-FileCopyrightText: 2020 GitHub # SPDX-License-Identifier: MIT # name: "CodeQL" on: push: branches: [ "master", "ci" ] paths-ignore: - '.appveyor.yml' - '.cirrus.yml' - '.reuse/*' - 'LICENSES/*' pull_request: # The branches below must be a subset of the branches above branches: [ "master" ] paths-ignore: - '.appveyor.yml' - '.cirrus.yml' - '.reuse/*' - 'LICENSES/*' schedule: - cron: '35 14 * * 1' permissions: contents: read jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read security-events: write strategy: fail-fast: false matrix: language: [ 'cpp' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - name: Checkout repository uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality # install automake and friends - run: sudo apt-get update && sudo apt-get install -y autopoint automake autoconf libtool # build and check - run: autoreconf -i -f ; ./configure ; make ; make check - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1 with: category: "/language:${{matrix.language}}" libexif-libexif-0_6_25-release/.github/workflows/reuse.yml000066400000000000000000000005361474246475200237140ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. # # SPDX-License-Identifier: CC0-1.0 name: REUSE Compliance Check on: [push, pull_request] permissions: {} jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: REUSE Compliance Check uses: fsfe/reuse-action@v5 libexif-libexif-0_6_25-release/.gitignore000066400000000000000000000011201474246475200204270ustar00rootroot00000000000000# CVS default ignores begin tags TAGS .make.state .nse_depinfo *~ #* .#* ,* _$* *$ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core # CVS default ignores end m4 auto-m4 intl autom4te.cache configure.scan autoscan.log *.tar.gz *.tar.bz2 Makefile Makefile.in aclocal.m4 config.cache config.guess config.h config.h.in config.log config.status config.sub config.rpath configure install-sh *.pc *.spec libtool ltmain.sh missing mkinstalldirs stamp-h stamp-h1 stamp-h.in conftest conftest.c ABOUT-NLS ar-lib compile depcomp INSTALL test-driver ChangeLog.git libexif-libexif-0_6_25-release/.reuse/000077500000000000000000000000001474246475200176465ustar00rootroot00000000000000libexif-libexif-0_6_25-release/.reuse/dep5000066400000000000000000000023071474246475200204300ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: libexif Upstream-Contact: libexif Developers Source: https://github.com/libexif/libexif Files: .gitignore **/.gitignore Copyright: 2000-2021 libexif Contributors License: LGPL-2.0-or-later Files: AUTHORS ChangeLog NEWS Copyright: 2001-2023 libexif Contributors License: LGPL-2.0-or-later Files: README Copyright: 2001-2023 Lutz Mueller , et. al. License: LGPL-2.0-or-later Files: README-Win32.txt doc/README.apidocs Copyright: 2005 Hans Ulrich Niedermann License: LGPL-2.0-or-later Files: libexif/libexif.sym Copyright: 2005-2009 Hans Ulrich Niedermann , et. al. License: LGPL-2.0-or-later Files: po/POTFILES.in Copyright: 2002-2007 Lutz Mueller , et. al. License: LGPL-2.0-or-later Files: SECURITY.md Copyright: 2020-2021 Marcus Meissner License: LGPL-2.0-or-later Files: TODO Copyright: 2021 Marcus Meissner License: LGPL-2.0-or-later Files: test/testdata/*_makernote_variant_*.jpg* Copyright: 2018 Google, Inc. License: LGPL-2.0-or-later libexif-libexif-0_6_25-release/AUTHORS000066400000000000000000000003601474246475200175140ustar00rootroot00000000000000Lutz Mueller Jan Patera Hans Ulrich Niedermann Hubert Figuiere Dan Fandrich Marcus Meissner libexif-libexif-0_6_25-release/COPYING000066400000000000000000000635021474246475200175060ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! libexif-libexif-0_6_25-release/ChangeLog000066400000000000000000002061131474246475200202220ustar00rootroot000000000000002016-09-01 Dan Fandrich * po/sv.po: Updated Swedish translation by Sebastian Rasmussen * Updated many translations from launchpad.net * Added new translation from launchpad.net's "yakkety" translations: * po/ms.po: Added Malay translation by abuyop 2014-01-05 Dan Fandrich * po/es.po: Updated Spanish translation by Antonio Ceballos 2013-07-13 Dan Fandrich * Fixed a C89 compatibility issue (bug #117 reported by Guenter Knauf) * po/da.po: Updated Danish translation by Joe Hansen * po/de.po: Updated German translation by Christian Kirbach * po/fr.po: Updated French translation by Frédéric Marchal * po/uk.po: Updated Ukrainian translation by Yuri Chornoivan 2013-02-23 Dan Fandrich * po/pl.po: Updated Polish translation by Jakub Bogusz 2012-07-12 Dan Fandrich * Fixed some buffer overflows in exif_entry_format_value() This fixes CVE-2012-2814. Reported by Mateusz Jurczyk of Google Security Team * Fixed an off-by-one error in exif_convert_utf16_to_utf8() This can cause a one-byte NUL write past the end of the buffer. This fixes CVE-2012-2840 * Don't read past the end of a tag when converting from UTF-16 This fixes CVE-2012-2813. Reported by Mateusz Jurczyk of Google Security Team * Fixed an out of bounds read on corrupted input The EXIF_TAG_COPYRIGHT tag ought to be, but perhaps is not, NUL-terminated. This fixes CVE-2012-2812. Reported by Mateusz Jurczyk of Google Security Team * Fixed a buffer overflow problem in exif_entry_get_value If the application passed in a buffer length of 0, then it would be treated as the buffer had unlimited length. This fixes CVE-2012-2841 * Fix a buffer overflow on corrupt EXIF data. This fixes bug #3434540 and fixes part of CVE-2012-2836 Reported by Yunho Kim * Fix a buffer overflow on corrupted JPEG data An unsigned data length might wrap around when decremented below zero, bypassing sanity checks on length. This code path can probably only occur if exif_data_load_data() is called directly by the application on data that wasn't parsed by libexif itself. This solves the other part of CVE-2012-2836 * Fixed some possible division-by-zeros in Olympus-style makernotes This fixes bug #3434545, a.k.a. CVE-2012-2837 Reported by Yunho Kim * Released 0.6.21 2012-07-09 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen * po/de.po: Updated German translation by Christian Kirbach * po/pl.po: Updated Polish translation by Jakub Bogusz * po/sk.po: Updated Slovak translation by Ivan Masár * po/uk.po: Updated Ukrainian translation by Yuri Chornoivan * po/vi.po: Updated Vietnamese translation by Trần Ngọc Quân * Mention that uk.po must now be updated through translationproject.org 2012-06-25 Dan Fandrich * Updated non-TP translations from launchpad.net's "precise" translations: be.po bs.po en_GB.po pt.po pt_BR.po ru.po sq.po sr.po tr.po zh_CN.po * Added new translations from launchpad.net's "precise" translations: * po/en_AU.po: Added English (Australian) translation by Joel Pickett * po/uk.po: Added Ukrainian translation by Yuri Chornoivan * po/bs.po: Removed some erroneous embedded \r\n in the translations * Updated non-TP translations to the latest strings in the source code * po/en_CA.po: Updated Canadian English translation 2012-05-16 Dan Fandrich * po/vi.po: Updated Vietnamese translation by Trần Ngọc Quân 2011-11-07 Dan Fandrich * po/de.po: Updated German translation by Christian Kirbach 2011-08-26 Dan Fandrich * po/cs.po: Updated Czech translation by Jan Patera * po/da.po: Updated Danish translation by Joe Hansen * po/nl.po: Updated Dutch translation by Erwin Poeze * po/pl.po: Updated Polish translation by Jakub Bogusz * po/sk.po: Updated Slovak translation by Ivan Masár * po/sv.po: Updated Swedish translation by Daniel Nylander 2011-07-11 Dan Fandrich * Made mnote_fuji_tag_get_description and mnote_canon_tag_get_descripton more robust should any NULL descriptions be added to the table (bug #3307219) 2011-05-12 Dan Fandrich * Added more Canon lenses (from Adrian von Bidder and drochner) 2011-02-16 Dan Fandrich * Changed "knots" to more clear "nautical miles" (Ubuntu Launchpad bug https://bugs.launchpad.net/bugs/712115 reported by Daniel Thibault). 2010-12-15 Dan Fandrich * Released 0.6.20 2010-12-13 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen * Updated non-TP translations from launchpad.net: be.po en_GB.po pt_BR.po pt.po ru.po sq.po sr.po zh_CN.po * po/bs.po: Added Bosnian translation from launchpad.net * po/tr.po: Added Turkish translation from launchpad.net 2010-12-10 Dan Fandrich * Changed the display of rational numbers to estimate the number of significant figures (based on the size of the denominator) and show that number of decimal places. This simplifies the output in the case of integers (e.g. resolution), and shows all the available accuracy in the case of rationals (e.g. latitude & longitude). 2010-10-14 Dan Fandrich * Fixed some invalid format specifiers and typecasts. This caused a problem on mingw32, at least. 2010-10-07 Dan Fandrich * Refactored MakerNote detection code to put detection of each type into the module handling that type 2010-09-23 Dan Fandrich * exif_entry_dump() now displays the correct tag name for GPS tags by taking the IFD into account when looking up the name. Fixes bug #3073307. 2010-08-11 Dan Fandrich * Removed redundant sentence. Fixes Ubuntu bug #197306 2010-07-23 Dan Fandrich * Canon EOS 5D Mark II writes Aperture values as invalid values 0x80000000/1 which makes pow() throw floating-point exceptions 2010-06-16 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen * po/it.po: Updated Italian translation by Sergio Zanchetta * po/nl.po: Updated Dutch translation by Erwin Poeze 2010-02-18 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen * po/de.po: Updated German translation by Marcus Meissner * po/ja.po: Updated Japanese translation by Tadashi Jokagi * po/pl.po: Updated Polish translation by Jakub Bogusz * po/vi.po: Updated Vietnamese translation by Clytie Siddall * po/en_CA.po: Updated Canadian English translation 2010-02-05 Dan Fandrich * Made the case of text output be more consistent. Now, tag titles have each word capitalized (like a title) and tag values are always lower case, except the first word which is capitalized (more like a sentence). 2010-01-25 Dan Fandrich * configure.ac: Turned on the --enable-silent-rules configure option 2009-12-30 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen * po/sk.po: Updated Slovak translation by Ivan Masár * po/sv.po: Updated Swedish translation by Daniel Nylander 2009-12-17 Dan Fandrich * Don't warn "No thumbnail but entries on thumbnail." unless there actually are entries. 2009-12-15 Dan Fandrich * libexif.pc.in: Move -lm flag into Libs.private since it's only needed when statically linking. A future enhancement would be to make even this dependent on the check for -lm done in configure. 2009-12-11 Dan Fandrich * Added tag 0xEA1C, the Padding tag from the Microsoft HD Photo specification. 2009-12-08 Dan Fandrich * Fixed some memory leaks in the write-exif.c example program and added some examples of allocating a new tag. 2009-11-27 Dan Fandrich * po/ja.po: Updated Japanese translation by Tadashi Jokagi 2009-11-25 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen 2009-11-23 Dan Fandrich * Include README-Win32.txt in all source distributions 2009-11-16 Dan Fandrich * po/ja.po: Updated Japanese translation by Tadashi Jokagi 2009-11-12 Dan Fandrich * Fixed a heap buffer overflow during tag format conversion. * Released 0.6.19 2009-11-07 Dan Fandrich * Sorted ExifFormatTable[] in approximate decreasing order of popularity to decrease the total average lookup time. 2009-11-05 Dan Fandrich * Added a bunch of new translations from launchpad.net * po/be.po: Added Belarusian translation by Iryna Nikanchuk * po/en_GB.po: Added English (United Kingdom) translation by Bruce Cowan * po/it.po: Added Italian translation by Sergio Zanchetta * po/ja.po: Added Japanese translation by Shushi Kurose * po/pt.po: Added Portuguese translation by nglnx * po/sq.po: Added Albanian translation by Vilson Gjeci * po/zh_CN.po: Added Chinese (simplified) translation by Tao Wei 2009-11-03 Dan Fandrich * po/da.po: Updated Danish translation by Joe Hansen 2009-10-27 Dan Fandrich * Improved tag table lookup performance by optimally ordering IFD search and aborting searches early if the tag is not found. 2009-10-14 Dan Fandrich * Changed the various functions searching for tags in ExifTagTable[] to use a binary search. This single change increases the speed of a run through the libexif-testsuite by 7% 2009-10-13 Dan Fandrich * po/sv.po: Updated Swedish translation by Daniel Nylander * po/vi.po: Updated Vietnamese translation by Clytie Siddall * Fixed an inverted logic condition that prevented the bug report address from appearing in the .pot file * Ensure that ExifTagTable[] is sorted by tag to allow for future more efficient searching. 2009-10-09 Dan Fandrich * Released 0.6.18 2009-10-09 Dan Fandrich * po/sr.po: Added Serbian translation by Marko Uskokovic * po/pt_BR.po: Added Portuguese (Brazil) translation by André Gondi 2009-10-08 Dan Fandrich * Demoted from EXIF_LOG_CODE_CORRUPT_DATA to EXIF_LOG_CODE_DEBUG the MakerNote log messages that would result if a MakerNote were rewritten by an application without rebasing the internal data offsets. The exif front end (at least) aborts processing if such a log message is found, but these kinds of errors are far too common (and practically unavoidable) to handle them this way. 2009-10-06 Dan Fandrich * Added --enable-maintainer-mode in configure and made the SourceForge logo appear in the Doxygen documentation only when it's enabled. 2009-10-05 Dan Fandrich * Updated translations from Translation Project members to the latest & hopefully final .pot file before release 2009-10-01 Dan Fandrich * Bumped the library minor version number because of the addition of exif_loader_get_buf() * Added exif.h to the source tarball so users can generate full Doxygen documentation. 2009-09-30 Dan Fandrich * Added a new public API function, exif_loader_get_buf(), which returns a pointer to the raw data in the ExifLoader. Without this, the only way to get the ExifLoader data out was as an ExifData and using only the default set of ExifDataOptions. 2009-09-29 Dan Fandrich * Added EXIF_DATA_TYPE_UNKNOWN as a backwards-compatible replacement for most uses of EXIF_DATA_TYPE_COUNT since that's a clearer name for how it's being used. 2009-09-26 Dan Fandrich * libexif/exif-data.c: Added more error log messages and improved a few data boundary checks. * Sped up exif_content_fix() considerably by splitting the one giant loop into two much smaller & faster loops. 2009-09-24 Dan Fandrich * Fixed some problems in MakerNote parsing that could cause a read past the end of a buffer and therefore a segfault. * Allow MakerNote parsing to continue even if one tag parses incorrectly. * Log an error whenever memory allocation fails in MakerNote parsing. 2009-09-23 Dan Fandrich * Removed bogus "APEX" value from shutter speed display (thanks to Jef Driesen for confirming this) * Fixed a couple of off-by-one unnecessary string truncations * Define M_PI for those systems that don't have it 2009-09-23 Jan Patera * po/cs.po: Updated Czech translation by Jan Patera 2009-09-18 Dan Fandrich * Added support for writing Pentax and Casio v2 MakerNotes * Now displaying all components in Pentax and Casio v2 MakerNotes when a tag has more than one 2009-09-18 Dan Fandrich * po/de.po: Updated German translation by Marcus Meissner * po/sv.po: Updated Swedish translation by Daniel Nylander * po/vi.po: Updated Vietnamese translation by Clytie Siddall 2009-09-17 Dan Fandrich * po/pl.po: Updated Polish translation by Jakub Bogusz 2009-09-16 Dan Fandrich * po/en_CA.po: Updated Canadian English translation 2009-08-12 Lutz Mueller Patch by Vladimir Petrov plus some whitespace fixes by myself: * libexif/exif-entry.c: (exif_entry_[fix,get_value,initialize]): Support EXIF_TAG_ISO_SPEED_RATINGS. 2009-06-15 Dan Fandrich * po/da.po: Danish translation corrections by Lars Christian Jensen 2009-06-03 Dan Fandrich * po/da.po: Added Danish translation by Joe Hansen 2009-05-28 Dan Fandrich * Fixed negative exposure values in Canon makernotes (bug #2797280) 2009-05-02 Dan Fandrich * Added contrib/examples/write-exif.c * Create a valid default for EXIF_TAG_COMPONENTS_CONFIGURATION 2009-03-21 Lutz Mueller Meder Kydyraliev suggested to add some sanity checks: * libexif/exif-data.c (exif_data_load_entry), (exif_data_load_data_thumbnail) * libexif/canon/exif_mnote-data-canon.c (exif_mnote_data_canon_load) * libexif/fuji/exif-mnote-data-fuji.c (exif_mnote_data_fuji_load) * libexif/olympus/exif-mnote-data-olympus.c (exif_mnote_data_olympus_load) * libexif/pentax/exif-mnote-data-pentax.c (exif_mnote_data_pentax_load) 2009-03-16 Lutz Mueller * libexif/canon/exif-mnote-data-canon.c: (exif_mnote_data_canon_load): Fix the coding style in this function to make it easier to read. 2009-02-02 Dan Fandrich * Added AC_C_INLINE to configure.ac to define the inline keyword if the compiler doesn't handle it already. 2009-01-28 Dan Fandrich * Decode the value for EXIF_TAG_LIGHT_SOURCE and EXIF_TAG_SCENE_TYPE * Split out the generic ExifEntry formatting code into a new function exif_entry_format_value() * Fixed some signed vs unsigned formatting errors * Format the EXIF_TAG_GPS_TIME_STAMP & EXIF_TAG_GPS_ALTITUDE_REF tags * Improved the wrong data type fixup * Separated the MNOTE_SANYO_TAG_SELFTIMER 2 sec. case from the other On/Off cases * Renamed MNOTE_NIKON_TAG_PREVIEWIMAGE_IFD_POINTERS to show that it's an IFD. The case of IFDs in MakerNotes needs to be handled better because right now, those MakerNote IFD tags are corrupted since the sub-IFDs aren't being read and written. 2009-01-22 Dan Fandrich * Fix exif_tag_get_support_level_in_ifd() to handle the case where two tags with the same number exist in different IFDs. * Added test-tagtable to do some tests on the static EXIF tag information table. 2009-01-21 Dan Fandrich * libexif/exif-entry.c: Initialize the default for EXIF_TAG_COLOR_SPACE to "Uncalibrated" * libexif/exif-data.c: Reduce the recursion limit * When the data type is not known in exif_tag_get_support_level_in_ifd check the support level for all data types and if it's all the same, return that. This means that fixing a new EXIF tag block will actually create some tags in it now. 2009-01-15 Dan Fandrich * Interpret more Sanyo MakerNote tags 2009-01-12 Dan Fandrich * Added support for Epson MakerNotes, which have the identical tag format and namespace of the Olympus ones. 2009-01-06 Dan Fandrich * libexif/exif-tags.c: Added remaining GPS tags from the EXIF 2.2 spec to the tag table. 2009-01-03 Dan Fandrich * contrib/examples/photographer.c: Added example program to show how to display EXIF and MakerNote tags 2008-12-22 Dan Fandrich * po/vi.po: Updated Vietnamese translation by Clytie Siddall * Fixed bug #1946138 to stop ignoring CFLAGS in the sqrt configure test 2008-11-25 Dan Fandrich * po/sk.po: Updated Slovak translation by Ivan Masár 2008-11-22 Dan Fandrich * Added Doxygen comments for the main API entry points and data structures 2008-11-18 Dan Fandrich * libexif/exif-entry.c & configure.ac: use localtime_r when available to make libexif thread safe * po/nl.po: Updated Dutch translation by Erwin Poeze * po/pl.po: Updated Polish translation by Jakub Bogusz * contrib/examples/*: Added a couple of simple example programs to show how to use libexif. One was written by Naysawn Naderi and the other one I wrote. Closes bug #1246824. 2008-11-06 Dan Fandrich * Released 0.6.17 2008-11-05 Dan Fandrich * aolserver/*: moved to contrib/aolserver/ * README: updated * po/de.po: Updated German translation by Marcus Meissner * Added contrib/watcom/ directory to the source tarball now that Jan Patera brought it up-to-date. * libexif.spec.in: changed default release number to 1; added NEWS, AUTHORS and COPYING files to package; moved libexif.so file to -devel package; corrected license to LGPL 2008-10-20 Jan Patera * libexif/pentax/mnote-pentax-tag.c & olympus/mnote-olympus-tag.c: Don't crash in mnote_XX_tag_get_description on unknown tags 2008-10-04 Jan Patera * libexif/canon/mnote-canon-entry.c: fixed interpretation of Auto ISO and Self-Timer entries 2008-10-08 Aric Blumer * libexif/exif-tag.c: GPS tags EXIF_TAG_GPS_IMG_DIRECTION_REF and EXIF_TAG_GPS_IMG_DIRECTION are now recognized 2008-10-04 Jan Patera * libexif/olympus/exif-mnote-data-olympus.c: bug #2071600, gnome Bug #549029: Original v1 Nikon makernotes are always parsed using MM order, regardless of main EXIF data word order. 2008-10-04 Louis Strous * libexif/exif-loader.c: DHT & DQT markers are now properly skipped when searching for APP1 marker in JPEG stream. Apparently such files are created by Gisteq PhotoTrackr SW used to add GPS tags. 2008-10-02 Niek Bergboer * libexif/exif-data.c libexif/canon/exif-mnote-data-canon.c libexif/fuji/exif-mnote-data-fuji.c libexif/olympus/exif-mnote-data-olympus.c libexif/pentax/exif-mnote-data-pentax.c: Replaced unsigned int by size_t in some places Added some checks on sizes, makernotes shouldn't be larger than 64kb. 2008-09-04 Dan Fandrich * po/nl.po: Updated Dutch translation by Erwin Poeze 2008-07-25 Marcus Meissner * libexif/exif-content.c: Handle realloc to 0 case correctly. Fixes EOG and GIMP crashes. 2008-06-26 Jan Patera * libexif/olympus/exif-mnote-data-olympus.c: better support for MNOTE_OLYMPUS_TAG_FLASHDEVICE/SENSORTEMPERATURE/LENSTEMPERATURE 2008-06-23 Lutz Mueller Patch by Mika Raento : * libexif/exif-loader.c: (exif_loader_free) Don't forget the logger. 2008-06-15 Lutz Mueller * configure.ac: Revert previous commit * po/zh_CN.po: Remove. * po/[sk,vi].po: Revert. 2008-06-15 Lutz Mueller * configure.ac: New po-file: zh_CN * po/zh_CN.po: New * po/[sk,vi].po: Updated. 2008-05-06 Marcus Meissner * libexif/exif-content.c: Fixed a endless loop possibility in content remove (triggered by EOG and potentially others on certain JPEGs). 2008-04-03 Dan Fandrich po/sk.po: Updated Slovak translation by Ivan Masár 2008-02-20 Lutz Mueller Follow-up on #1774591: * libexif/exif-data.c: (exif_data_save_data_content) Remove check for now impossible NULL value. 2008-02-17 Lutz Mueller Fix #1865046: * COPYING: * libexif/...: Use 'ue' instead of some strange German character. 2008-02-17 Lutz Mueller * libexif/exif-loader.c: (exif_loader_get_data) Return NULL if no EXIF data has been found. 2008-02-16 Lutz Mueller Jan Patera spotted a problem with my last fix for #1774591: * libexif/exif-content.c: (exif_content_remove_entry) Recover correctly in case of error by remembering the original size of the realloc'ed data. * libexif/exif-data.c: (exif_data_save_data_entry), (exif_data_save_data_content) Same here. * libexif/canon/exif-mnote-data-canon.c: (exif_mnote_data_canon_save), (exif_mnote_data_canon_load) Same here. * libexif/fuji/exif-mnote-data-fuji.c: (exif_mnote_data_fuji_save), (exif_mnote_data_fuji_load) Same here. * libexif/olympus/exif-mnote-data-olympus.c: (exif_mnote_data_olympus_save) Same here. 2008-02-15 Lutz Mueller * Changelog * README: use 'ue' instead of some stange German character. 2008-02-14 Lutz Mueller Fix #1774591 (partially): * libexif/exif-content.c: (exif_content_remove_entry) Check the return value of exif_mem_realloc. * libexif/exif-data.c: (exif_data_save_data_entry), (exif_data_save_data_content) Same here. * libexif/canon/exif-mnote-data-canon.c: (exif_mnote_data_canon_save), (exif_mnote_data_canon_load) Same here. * libexif/fuji/exif-mnote-data-fuji.c: (exif_mnote_data_fuji_save), (exif_mnote_data_fuji_load) Same here. * libexif/olympus/exif-mnote-data-olympus.c: (exif_mnote_data_olympus_save) Same here. 2008-02-14 Lutz Mueller Fix #1884609 (partially): * libexif/exif-entry.c: (exif_entry_initialize) Initialize EXIF_TAG_FLASH and EXIF_TAG_COLOR_SPACE. 2007-12-27 Lutz Mueller Suggestion by Andreas Kleinert : * libexif/exif-entry.c: (exif_entry_get_value) Use %lf for double instead of %f (which is for float). 2007-12-20 Lutz Mueller Updated translations by Translation Project Robot : * po/[vi,pl].po: Updated files. 2007-12-18 Lutz Mueller Dan Fandrich pointed out the following: * configure.ac: Keep gettext requirement as low as 0.14.1. gettextize changes it automatically to 0.17, but as long as we don't know why, there is no need to enforce this version. 2007-12-16 Lutz Mueller Marcus Meissner pointed out the following: * libexif/exif-data.c: (exif_data_load_data_thumbnail) ExifLong is unsigned. Therefore no need to check for negative values. Check for sane offset instead. 2007-12-15 Lutz Mueller * po/*.po: Updated po-files. * libexif/exif-data.c: (exif_data_load_data_thumbnail) guard against negative size (in addition to negative offset), too. 2007-12-14 Lutz Mueller Bug pointed out by Meder Kydyraliev, Google Security Team: * libexif/exif-data.c: (exif_data_load_data_thumbnail) Ignore bugus data. 2007-12-14 Lutz Mueller * README: Point users to some tools needed to build libexif. * configure.ac: It looks like po/Makefile.in is already registered with AC_CONFIG_FILES (whatever this means). 2007-12-14 Lutz Mueller Bug pointed out by Meder Kydyraliev, Google Security Team: * libexif/exif-loader.c: (exif_loader_write) Ignore buffers of zero length. 2007-12-07 Jan Patera * Added support for Fuji makernotes 2007-11-13 Dan Fandrich * Added support for a new macro NO_VERBOSE_TAG_DATA to allow some size reduction but still retain the ability to properly interpret each tag. * Added an end-of-table marker in the Canon color_information makernote table that could otherwise potentially cause a crash on a bad image. 2007-11-12 Dan Fandrich * Added support for more Olympus makernotes, based on data on Phil Harvey's ExifTool page at http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/ and sanity checked by the pel-images in the libexif test suite. * Added support for Sanyo makernotes, which have the identical tag format and (so it seems) namespace of the Olympus tags. 2007-11-08 Dan Fandrich * Added Canadian English translation, eh? 2007-11-06 Dan Fandrich * Renamed EXIF_TAG_UNKNOWN_C4A5 to EXIF_TAG_PRINT_IMAGE_MATCHING The PIM entry seems to have a format consisting of an 8 byte magic number, 6 byte version number, 2 byte record count field, then a series of 6 byte records consisting of a 2 byte tag field and an 4 byte data field. 2007-10-29 Dan Fandrich * Fixed some typos in messages * Made some structs const * Support compiling away the detailed tag tables and log messages when the NO_VERBOSE_TAG_STRINGS macro is defined to reduce the size of the library for use in embedded applications where space is at a premium * Display the raw value of a tag when the tag is unknown 2007-09-12 Jan Patera * Enhancements to Canon makernote parsers submitted by Thorsten Kukuk * Added Dutch and Swedish translations, updated Slovak translation 2007-08-16 Jan Patera * exif-mnote-data-olympus.c: Fix of bugs #1773810, #1774626, gnome bug #466044: Some Olympus files have main IFD in MM byte order as well as makernote, but makernote order was guessed wrongly. Bug introduced when fixing bug #1525770. 2007-06-25 Jan Patera * Endianess of Nikon V1 makernotes is now guessed, it might not be the same as of the main IFD 2007-05-21 Jan Patera * First version of Czech localization (cs.po) * First version of Slovak localization (sk.po), submitted by Ivan Masar 2007-05-15 Jan Patera * Windows XP Explorer writes Title, Comment, Author, Keywords, and Subject metadata into proprietary UTF16-encoded tags 0x9c9b-0x9c9f in IFD0. We now recognize them, exif_entry_get_value returns their value converted to UTF8. BTW, Explorer corrupts makernotes using offsets relative to IFD0... 2007-05-13 Jan Patera * Added support of a new Pentax makernote type, plus another makernote type shared by Pentax & Casio * Updated several tags * Fixed some "security" sanity checks for broken entries 2007-05-09 Jan Patera * Added support for Olympus S760 & S770 makernote (bug #1703284) * Fixed crashes when looking up invalid values (bug #1457501) * Added heuristics (bug #1525770): mismatching Olympus makernote in big endian when the rest is in little endian is detected to prevent crashes * Added option EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE to prevent modification of maker notes * EXIF_DATA_OPTION_IGNORE_UNKNOWN_TAGS propagated to Canon makernote (Bug #1617991) * Updated several tags * Updated translations 2007-05-06 Jan Patera * libexif/olympus/exif-mnote-data-olympus.c: Nikon v1 makernotes were saved with wrong offsets, Nikon v1 & v2 maker notes were saved with wrong offset to 2nd IFD (Reported by Joakim Larsson as patch #1664543) 2007-04-24 Jan Patera * libexif/canon/mnote-canon-entry.c: Added hook for ISO settings of Canon PowerShot S3 IS - unlike other Canons, it doesn't use index into LUT, but direct ISO value ored w/ 0x4000 2007-03-17 Jan Patera * libexif/exif-entry.c: Fixed values of EXIF_TAG_PHOTOMETRIC_INTERPRETATION, updated values of EXIF_TAG_COMPRESSION. 2007-02-25 Lutz Mueller Suggestions by Jef Driesen : * libexif/exif-entry.c: Correct formulas regarding to APEX values. 2007-02-14 Jan Patera * libexif/olympus/mnote-olympus-entry.c: Updated MNOTE_OLYMPUS_TAG_QUALITY & MNOTE_OLYMPUS_TAG_VERSION 2006-10-03 Marcus Meissner * libexif/olympus/*.[ch]: Added several Nikon Makernotes entries, extracted from exiftool. 2006-09-19 Jan Patera * libexif/exif-loader.c: exif_loader_write() skips non-EXIF APP1 markers 2006-09-17 Lutz Mueller Patch by Jef Driesen : * libexif/canon/*: Improve support for canon maker notes. 2006-05-05 Jan Patera * libexif/exif-content.c: fixed bug #1471060: wasted space in exif_content_add_entry() & exif_content_remove_entry(); also safe handling of failed realloc in exif_content_add_entry() 2006-04-15 Jan Patera * libexif/exif-loader.c: exif_loader_write() correctly skips APP2 marker with ICC profile because ImageMagick flips order of APP1 EXIF and APP2 ICC markers. 2006-02-19 Jan Patera * libexif/exif-utils.h: ExifByte is now explicitly unsigned char, added ExifSByte as signed char. 2006-02-13 Lutz Mueller * libexif/canon/mnote-canon-entry.c: Fix typo. * libexif/exif-entry.c: s/compulsatory/compulsory * libexif/exif-tag.c: Fix typo. * libexif/olympus/mnote-olympus-entry.c: Fix typo. * test/nls/test-nls.c: Add translators' comment. 2006-01-19 Marcus Meissner * libexif/exif-data.c: Let exif_data_load_data_entry() signal failure and discard entry in caller if it does. 2006-01-16 Hubert Figuiere * libexif/exif-mem.h, libexif/exif-loader.h: More documentation 2006-01-03 Hubert Figuiere * configure.ac: fix once for all the versioning. No actual version change has taken place this time. 2006-01-02 Hubert Figuiere * libexif/Makefile.am (libexif_la_DEPENDENCIES): depends on the .sym file. Need to relink if modified. 2005-12-27 Lutz Mueller * NEWS * configure.ac: We're now working on version 0.6.14. 2005-12-27 Lutz Mueller * test/Makefile.am: Remove the SOURCES variables - they are not necessary. 2005-10-24 Jan Patera * libexif/Canon/mnote-canon-entry.c: Don't check size of MNOTE_CANON_TAG_OWNER and MNOTE_CANON_TAG_FIRMWARE - there can be many different values. 2005-08-27 Jan Patera * Canon mnote: Both parts of Settings had indices shifted by 1. entries[] must have secondary sorting by value which is unsigned. Wrong # of items in Settings: reading beyond allocated memory, crashes. 2005-08-23 Lutz Mueller Some work on canon maker notes. Entries that contain several different values now expand to different entries. 2005-08-15 Lutz Mueller Patch by Jakub Bogusz , related to translation. 2005-08-14 Jan Patera * libexif/exif-entry.c: Added value 2 of EXIF_TAG_COLOR_SPACE patch #1253625 by Ross Burton - burtonini 2005-07-18 Lutz Mueller * doc/Makefile.am: Make distcheck work again. 2005-07-11 Lutz Mueller * libexif/exif-loader.c: * po/de.po: * po/fr.po: * po/es.po: Added license. 2005-07-02 Lutz Mueller * libexif/exif-data.c: Prevent infinite recursions (#1196787). 2005-06-19 Hubert Figuiere * test/Makefile.am (check_PROGRAMS): added check for make check 2005-05-01 Lutz Mueller * libexif/exif-data.c (exif_data_fix): Don't create EXIF_IFD_1 if no thumbnail data is available. 2005-04-30 Lutz Mueller * test/test-mem.c: Show how to create EXIF data. * README: New section USAGE. 2005-04-30 Lutz Mueller * libexif/exif-data-type.h: New * libexif/*: Lots of changes to make it possible to validate data against the specification. 2005-04-27 Lutz Mueller * libexif/exif-data.c (exif_data_load_data_content): Add a special case. 2005-04-27 Lutz Mueller * libexif/exif-data.c (exif_data_load_data_content): Better check for validity of tags. 2005-04-27 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): Some day, we'll get this right. 2005-04-27 Lutz Mueller * libexif/exif-entry.h * libexif/exif-content.h: New convenience functions/macros. 2005-04-27 Lutz Mueller * configure.ac: AGE = 1 * libexif/exif-entry.c (exif_entry_fix): Add a break to avoid unnecessary checks. 2005-04-26 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): Leave ' ' untouched, too. 2005-04-26 Lutz Mueller * libexif/exif-tag.[c,h] (exif_tag_[name,title,description]_in_ifd): New. 2005-04-25 Lutz Mueller * libexif/exif-data.c (exif_entry_fix): '\0...' as USER_COMMENT is ok, too. 2005-04-25 Lutz Mueller * libexif/exif-data.c: Make it compile again. 2005-04-24 Lutz Mueller * exif-data.[c,h] (exif_data_option_get_[name,description]), (exif_data_[set,unset]_option): New * exif-tag.[c,h]: EXIF_TAG_GAMMA: New. * exif-entry.c: (exif_entry_fix) Accept empty entries. 2005-04-15 Lutz Mueller Submitted by Hongli Lai : * configure.ac: CURRENT needs only to be increased on changes or removals, not additions. 2005-03-30 Lutz Mueller * libexif/exif-data.c: Convert some DEBUG messages to CORRUPT_DATA. 2005-03-29 Lutz Mueller * libjpeg: Removed. * README * Makefile.am * configure.in * libexif/exif-loader.c * libexif/exif-data.c: Remove references to libjpeg. * test/test-tree.c: Removed. * test/Makefile.am: Remove test-tree 2005-03-16 Lutz Mueller * libexif/exif-entry.c (exif_entry_get_value): Fix tag COPYRIGHT. 2005-03-16 Lutz Mueller * libexif/exif-data.c (exif_data_save_data_content): Use qsort. 2005-03-16 Lutz Mueller * libjpeg/jpeg-data.c: Fix #1054322. 2005-03-16 Lutz Mueller * libexif/exif-entry.c: Fix #1051994. 2005-03-16 Lutz Mueller * libexif/exif-entry.c: Marked some strings for translation. Fix #803191. 2005-03-13 Jan Patera * libexif/exif-entry.c (exif_entry_fix): Update also e->components 2005-03-13 Jan Patera * libexif/exif-data.c: critical fix of 2005-03-09 change: saving IFD containing data of odd length was causing memory corruption and total lost of entire EXIF data 2005-03-13 Hans Ulrich Niedermann * NEWS: Release 0.6.12 2005-03-12 Hans Ulrich Niedermann * po/de.po: Partial translation update 2005-03-11 Lutz Mueller Spotted by Jan Patera : * test/test-mem.c: Small fix. 2005-03-10 Jan Patera * libexif/exif-utils.*,exif-entry.c: Full support of EXIF_FORMAT_SSHORT (used by Nikon & Olympus mnote tags) 2005-03-09 Lutz Mueller * libexif/exif-utils.c (exif_array_set_byte_order): Return if an invalid format is supplied. 2005-03-09 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): Update e->size. 2005-03-09 Lutz Mueller * libexif/exif-data.c (exif_data_save_data_content): Update comment that this code does not honor the specification yet. 2005-03-09 Lutz Mueller * libexif/exif-data.c (exif_data_save_data_content): Save entries in the correct order. 2005-03-09 Lutz Mueller * test/test-mem.c: Write size to loader to make the test work again. 2005-03-09 Lutz Mueller * libexif/canon/exif-mnote-data-canon.c (exif_mnote_data_canon_save): Ensure even offsets. 2005-03-09 Lutz Mueller * libexif/exif-data.c (exif_data_save_data_entry): According to the TIFF specification, the offset must be an even number. If we need to introduce a padding byte, we set it to 0. 2005-03-09 Lutz Mueller * libexif/exif-utils.[c,h] (exif_array_set_byte_order): New function. * libexif/exif-data.c * libexif/canon/exif-mnote-data-canon.c * libexif/olympus/exif-mnote-data-olympus.c * libexif/pentax/exif-mnote-data-pentax.c: Use new function. 2005-03-09 Jan Patera * exif_data.c: Final fix of Ubuntu Security Notice USN-91-1 https://bugzilla.ubuntulinux.org/show_bug.cgi?id=7152 (CAN-2005-0664) 2005-02-08 Hans Ulrich Niedermann * autogen.sh: Updated build system: - doesn't require gettextize any more (using autopoint now) - uses all the built-in magic from autoreconf * configure.in, */Makefile.am: Build variable cleanup: - use common definition for AM_CFLAGS (remove INCLUDES in **/Makefile.am) - define LIBEXIF_LOCALEDIR and LIBMNOTE_LOCALEDIR in config.h - allow user to add CFLAGS at ./configure time by setting CFLAGS - add intl/ to include path only if building the included libintl - check whether -lm is actually required. This enables crosscompilation for windows targets: ./configure --host=i586-mingw32msvc --disable-nls * m4/gp-config-msg.m4, m4/gp-gettext-hack.m4: New macros 2004-12-17 Lutz Mueller * libexif/exif-loader.c: Work towards a non-recursive version of (exif_loader_write). 2004-12-17 Lutz Mueller Lars Ellenberg fixed a bug that I introduced in the last commit: * libexif/exif-loader.c: Don't substract 2 bytes twice. 2004-12-12 Lutz Mueller Pointed out by Lars Ellenberg : * libexif/exif-loader.c: Honor indirect offsets in FUJI_RAW-files. Don't perform unnecessary checks for known data formats. 2004-12-11 Lutz Mueller Inspired by suggestions from Lars Ellenberg : * libexif/exif-data.c: Fix spelling error. * libexif/exif-loader.c (exif_loader_write): Rewrite logic to make the loader handle more file types. 2004-12-08 Jan Patera * libexif/exif-entry.c: Data format of EXIF_TAG_USER_COMMENT: Some packages like Canon ZoomBrowser EX 4.5 store only one zero byte followed by 7 bytes of rubbish 2004-11-17 Lutz Mueller * libexif/exif-data.c: Make the last commit actually work. 2004-11-15 Lutz Mueller * libexif/exif-content.c: Complain if the same tag is added twice to an IFD. Suggestion by Angela Wrobel. 2004-11-15 Lutz Mueller * libexif/exif-data.c: Additional debugging message if specification is violated. 2004-11-14 Lutz Mueller * libexif/*: Plug another few memleaks. All found by Angala Wrobel. 2004-11-12 Lutz Mueller * libexif/exif-data.c: Clean up handling of MakerNote tags. 2004-11-11 Lutz Mueller * libexif/exif-mnote-data.c: Plug yet another memory leak. Detected by Angela Wrobel. 2004-11-11 Lutz Mueller * libexif/exif-log.c: Plug another memory leak. Detected by Angela Wrobel. 2004-11-11 Lutz Mueller * libexif/canon/exif-mnote-data-canon.c: Do not crash on strange data. Pointed out by Angela Wrobel. 2004-11-11 Lutz Mueller * libexif/*: Replace another few realloc by exif_mem_realloc. Pointed out by Angela Wrobel. 2004-11-10 Lutz Mueller * libexif/*.c: Change #include "" to #include <>. * Makefile.am: * exif-result.h: Removed. 2004-11-10 Lutz Mueller * libexif/exif-tag.[c,h] (exif_tag_from_name): New. Suggested by Angela Wrobel. 2004-11-10 Lutz Mueller * libexif/exif-data.c (exif_data_free): Fix memleak found by Angela Wrobel. * contrib/watcom: Updated files contributed by Angela Wrobel. 2004-11-03 Lutz Mueller * libexif/exif-format.c: More translatable strings. 2004-11-02 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): Detect more wrong stuff. * libexif/exif-data.c: Detect recursive calls. 2004-11-02 Jan Patera * libexif/exif-entry.c: added LZW * libexif/exif-tag.*: added few tags used by .NEF * libexif/exif-data.c: logging unknown tags 2004-10-20 Lutz Mueller * Makefile.am: Add intl * configure.in: Add intl/Makefile. Now "make distcheck" works. 2004-10-18 Lutz Mueller Patch by Krisztian VASAS : * configure.in: Create po/Makefile.in from po/Makefile.in.in 2004-10-16 Lutz Mueller * configure.in: We are now working on version 0.6.12. 2004-10-16 Lutz Mueller * configure.in: set CURRENT to 12. There have been quite a few additions to the header files. 2004-10-16 Lutz Mueller Martin Willers found an off-by-one error: * libexif/exif-entry.c: libexif forget to add 1 to tm_mon from struct tm 2004-10-05 Lutz Mueller * libexif/exif-data.c: Support for WatCom. Convert debugging code to exif-log API. * libexif/i18n.h: Support for WatCom. Patch by Angela Wrobel. 2004-10-05 Lutz Mueller * contrib/watcom: Files contributed by Angela Wrobel. 2004-10-04 Lutz Mueller * libexif/exif-mem.h: Documentation. 2004-10-04 Lutz Mueller * libexif/*: Finish replaceable memory-management. 2004-10-02 Lutz Mueller * libexif/exif-mem.[c,h]: New. First attempt to offer out-sourcing of memory management. 2004-10-01 Jan Patera * libexif/exif-entry.c: exif_entry_fix: exif_set_short: 2nd & 3rd args swapped 2004-09-18 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): Enhance. 2004-09-17 Lutz Mueller * libexif/exif-entry.c (exif_entry_fix): New. Fixes any violations against the standard. 2004-09-17 Lutz Mueller * libexif/exif-entry.c: Kill some warnings. Read as much from the UserComment tag as possible (as suggested by Angela Wrobel). 2004-09-15 Jan Patera * libexif/exif-loader.c: int -> unsigned int. * libexif/olympus/mnote-olympus-entry.c: typecast. Both changes made to avoid compiler warnings. 2004-09-12 Lutz Mueller * ???: Some format string fixes, wrong argument list fixed, format string problems avoided. (Patch by marcusmeissner@users.sourceforge.net) 2004-09-09 Lutz Mueller * configure.in: Remove "([external])" after AM_GNU_GETTEXT as it doesn't work for David MacMahon . * libexif/exif-log.[c,h]: Provide some standard messages and titles. * configure.in: Increment version as interfaces have been added. 2004-09-08 Lutz Mueller * libexif/exif-entry.c: Change comment to point to specification. 2004-09-08 Lutz Mueller * libexif/exif-entry.c: Redirect error messages to the logging mechanism. * libexif/exif-log.h: EXIF_LOG_CODE_CORRUPT_DATA: New. 2004-09-08 Lutz Mueller * libexif/exif-loader.c * libexif/exif-data.c: Replace a couple of calls to malloc by calls to calloc. 2004-09-07 Lutz Mueller * libexif/exif-entry.c: Use calloc. Hint by Jan Patera . 2004-09-07 Lutz Mueller * libexif/olympus * libexif/pentax: Fix typo and wrong logic introduced during my last changes. Thanks to Jan Patera for keeping an eye on me. 2004-09-07 Lutz Mueller * libexif/olympus * libexif/pentax * libexif/canon: Correctly return names, titles and descriptions of tages. Pointed out by Angela Wrobel. 2004-09-07 Lutz Mueller * libexif/exif-entry.c: More guards against malloc returning NULL. Problem spotted by Angela Wrobel. 2004-09-02 Lutz Mueller * libexif/exif-entry.c: First part of a patch to be less strict on the USER_COMMENT-tag. Submitted by Angela Wrobel, slightly adapted. 2004-09-01 Lutz Mueller * libexif/exif-tag.c: First ideas on how to support generation of mandatory exif tags for a new image. 2004-09-01 Lutz Mueller Suggestion by Angela Wrobel (http://www.wrobelnet.de/contact.html): * libexif/pentax: * libexif/olympus: Improve user experience by removing information from the output that was only intended for developers. 2004-08-31 Lutz Mueller * test/test-mem.c: Plug some memory leaks. Suggested by Angela Wrobel (http://www.wrobelnet.de/contact.html). 2004-08-27 Lutz Mueller * configure.in: 0.6.10 -> 0.6.11, as libexif-0.6.10 has just been released. 2004-08-26 Lutz Mueller Achim Bohnet found a spelling mistake: * libexif/exif-tag.c: 'colums' -> 'columns' 2004-08-26 Lutz Mueller Suggestions from Angela Wrobel (http://www.wrobelnet.de/contact.html) * libexif/exif-entry.c * libexif/exif-loader.c * libexif/exif-utils.c * olympus/exif-mnote-data-olympus.c * pentax/exif-mnote-data-pentax.c: Check if malloc returned NULL. 2004-07-13 Jan Patera * libexif/exif-mnote-*.*: added exif_mnote_data_get_id() returning actual mnote entry tag ID (suggested by Serge Droz ) 2004-06-23 Serge Droz (committed by Lutz Mueller ) * libexif/olympus/mnote-olympus-entry.c: Reapply Jan Patera's change. 2004-06-22 Lutz Mueller * libexif/olympus/mnote-olympus-entry.c: Correct the usage of strncat. Fix pointed out by Serge Droz . 2004-06-22 Lutz Mueller * libexif/olympus/mnote-olympus-tag.[c,h]: New tags discovered by Serge Droz . 2004-06-15 Jan Patera * libexif/olympus/mnote-olympus-entry.c: MNOTE_OLYMPUS_TAG_INFO 2004-06-06 Lutz Mueller * libexif/olympus/exif-mnote-data-olympus.c: More documentation, additional case (Nikon, 02 0a 00). * Makefile.am: s/LIBMNOTE/LIBEXIF 2004-05-27 Lutz Mueller * configure.in: 0.6.10 as 0.6.9 has just been released. 2004-05-27 Lutz Mueller * libexif/exif-entry.c: Jan Patera pointed me to the fact that last change is pointless. 2004-05-27 Lutz Mueller * libexif/exif-entry.c: According to Ralf Holzer , the user comment field does not have to be NULL terminated. 2004-05-25 Lutz Mueller * libexif/olympus/mnote-olympus-entry.c: Print bytes if tag is not known. 2004-05-24 Jan Patera * libjpeg/jpeg-data.[c,h]: jpeg_data_append_section changed from static to public * libexif/olumpus/mnote-olympus-entry.c: support of several known but previously not supported Nikon (& 1 Olympus) tags * libexif/exif-entry.c: rational values printed as %2.2f and not %i/%i 2004-05-15 Lutz Mueller * libexif/exif-log.[c,h]: New. Proposal for handling of debugging messages. 2004-05-13 Jan Patera * libexif/exif-data.c: Fill tag data with zeros on save even if 0 components (buggy Kodak-210) 2004-05-12 Jan Patera * libexif/exif-utils.h: definition of MIN * libexif/pentax/mnote-pentax-entry.c: min -> MIN (found by Serge Droz ) 2004-05-11 Jan Patera * libjpeg/jpeg-data.c: memory leak in jpeg_data_set_exif_data, return type of jpeg_data_save_file * libexif/exif-entry.c: proper mnote size on save * libexif/olympus: saving Nikon mnote 2004-05-10 Jan Patera * libexif: Support of Nikon maker note 2004-05-07 Jan Patera * libexif/exif-entry.c: fix of EXIF_TAG_COLOR_SPACE, value 9 of EXIF_TAG_FLASH. * libexif/exif-entry.c: Fix of bug #937505 submitted by Hubert Verstraete : value 0x0058 of EXIF_TAG_FLASH. 2004-05-04 Lutz Mueller * libexif/olympus: Make it support Nikon maker notes, too. Code based on work by Serge Droz . 2004-05-03 Lutz Mueller * libexif/exif-entry.c (exif_entry_initialize): Added EXIF_TAG_PIXEL_[X,Y]_DIMENSION (thanks to Antonio Scuri ). 2004-05-03 Lutz Mueller * libexif/exif-tag.c: Hide some functions there that have been requested by Antonio Scuri . 2004-05-02 Lutz Mueller * configure.in: GETTEXT_PACKAGE=${PACKAGE}-${LIBEXIF_CURRENT} on request of Ilya Konstantinov (Debian needs it). 2004-05-02 Lutz Mueller * libjpeg/jpeg-marker.h: No implicit enum declaration. Seen by Antonio Scuri . 2004-04-04 Lutz Mueller lutz@users.sourceforge.net * libexif/exif-data.c: If we don't know a tag we are going to parse, stop loading. This should fix bug #138238. 2004-04-02 Jan Patera * libexif/pentax/exif-mnote-data-pentax.c: correct search for values 2004-03-19 Joerg Hoh * libexif/olympus/exif-mnote-data-olympus.c: code simplification 2004-03-16 Lutz Mueller * libexif/pentax/exif-mnote-data-pentax.c: Another suggestion by Joerg Hoh . 2004-03-15 Lutz Mueller * libexif/pentax/mnote-pentax-entry.c: Joerg Hoh did it again. 2004-03-03 Lutz Mueller * libexif/exif-entry.c: Patch by Joerg Hoh , enhanced by myself. 2004-03-03 Jan Patera * libexif/exif-entry.c: C-compilability & fix of the 2004/03/02 code 2004-03-02 Lutz Mueller * configure.in: No version on GETTEXT_PACKAGE. Requested by gernot@bigpond.com. * libexif/exif-entry.c: Some formatting. 2004-03-02 Joerg Hoh * libexif/exif-entry.c: moved redundant code into a static structure 2004-03-01 Jan Patera * libexif/pentax/exif-mnote-data-pentax.c: Fixed flipped inequation causing all value requests to be denied as invalid 2004-02-02 Jan Patera * libexif/exif-loader.c: propper skipping of JPEG_MARKER_COM when searching for JPEG_MARKER_APP1 with exif data 2004-01-19 Lutz Mueller * contrib/c++: Files contributed by Hans Meine . Completely untested. 2004-01-08 Lutz Mueller * libexif/exif-entry.c (exif_entry_get_value_brief): merge into (exif_entry_get_value) and remove. * tests/test-mnote.c: Make it compile again. * tests/test-value.c: New. * configure.in: API-changes -> increment version. 2004-01-07 Jan Patera Thread-safety, elimination of static variables, fixes of memory corruption (writing beyond provided space), no more memory leaks in mnote, 2 new args of exif_entry_get_value, exif_entry_get_value_brief, exif_mnote_data_get_value. * libexif, libexif/canon, libexif/olympus, libexif/pentax 2003-12-09 Lutz Mueller A couple of fixes by Jan Patera : * libexif 2003-12-08 Lutz Mueller Suggestion by Jan Patera : * libexif/exif-entry.c: Do not read beyond e->size. 2003-12-01 Lutz Mueller * libexif/olympus/mnote-olympus-entry.c: Now that EXIF_FORMAT_SSHORT is in exif-format.h, we do not need to define it any longer. 2003-12-01 Lutz Mueller * libexif: Various improvements by Jan Patera . 2003-10-30 Lutz Mueller * libexif/exif-loader.c: Handle APP13. 2003-10-30 Lutz Mueller * libexif/exif-loader.c: Fix APP0-bug. Patch by Jan Patera . 2003-10-30 Lutz Mueller * libexif/exif-data.c: Add explicit typecasts to ExifShort. Suggested by Jan Patera . 2003-10-28 Lutz Mueller * libexif/olympus: Fix. I've got one Olympus file and this gets parsed now. 2003-10-28 Lutz Mueller * libjpeg/jpeg-data.c: Do not depend on unistd.h. Reported by Jan Patera . 2003-10-27 Lutz Mueller * libexif: Canon maker notes seem to work now (both loading and saving). 2003-10-27 Lutz Mueller * libexif: The code now compiles and loads the canon maker note, but crashes if you query its contents. 2003-10-26 Lutz Mueller * test/test-mnote.c: New. * libexif: The code now both compiles and doesn't crash, but at least the canon maker note still doesn't get parsed. 2003-10-26 Lutz Mueller * configure.in * Makefile.am: Remove PO_DIRS. Otherwise, automake complains about po and intl not being in SUBDIRS 2003-10-26 Lutz Mueller * libexif/olympus * libexif/canon * libexif/pentax: Merge libmnote with libexif. The code compiles but is completely untested. 2003-10-15 Lutz Mueller * libexif.spec.in: Patches by Peter Bieringer . 2003-10-08 Lutz Mueller * libexif/exif-data.c: Patch by Jan Patera . 2003-10-08 Lutz Mueller * libexif/exif-entry.c: Patch by Jan Patera . 2003-09-28 Lutz Mueller * Makefile.am * configure.in: Patch #813420 by Chris Meyer . 2003-09-05 Lutz Mueller * libjpeg/jpeg-data.c: Fix memory leak (discovered by Ralph Heidelberg * libexif/exif-data.c: Fill unneeded bytes with 0. Suggestion by Roberto Costa . 2003-08-06 Lutz Mueller * libexif/exif-entry.c (exif_entry_initialize): Support some more tags. * libexif/exif-tag.[c,h]: Cosmetic fix. * libexif/exif-utils.h: Do not let above cosmetic fix break the API. 2003-08-04 Lutz Mueller * po/*.po: Updated. * Makefile.am: Add m4 and intl to SUBDIRS. automake complains otherwise. * configure.in: Add m4/Makefile. make distcheck complains otherwise. Version 0.5.12 2003-07-30 Lutz Mueller * configure.in: Version 0.5.11 2003-07-30 Lutz Mueller * libexif/exif-data.c: Patch by Torgeir Hansen to prevent endless loops. 2003-07-30 Lutz Mueller * libexif/exif-entry.c: Don't crash if entries are totally insane. 2003-07-20 Lutz Mueller * configure.in: Version 0.5.10 2003-05-01 Lutz Mueller Suggestion by Gernot Jander : * libexif/exif-entry.c: Ignore " " in EXIF_TAG_COPYRIGHT. 2003-04-29 Lutz Mueller * libexif/exif-loader.c: Set ref_count to 1 on exif_loader_new. 2003-04-29 Lutz Mueller * libexif/exif-entry.c: Another attempt to fix EXIF_TAG_COPYRIGHT. 2003-04-28 Lutz Mueller Bug discovered by Jay Love * libexif/exif-entry.c: Don't crash if EXIF_TAG_COPYRIGHT is NULL. 2003-04-28 Lutz Mueller Patch by Gernot Jander : * libexif/exif-tag.c: Add call to bind_textdomain_codeset * po/*.UTF-8: New. 2003-03-13 Lutz Mueller * libjpeg/jpeg-data.c: Aravind found a bug there. 2003-03-18 Lutz Mueller * libexif/exif-data.c (exif_data_new_from_file): Use the new ExifLoader. It seems to work. 2003-03-17 Lutz Mueller * libexif/exif-loader.[c,h]: New. Mostly written by Jens Finke . Not tested at all. 2003-02-11 Lutz Mueller * libexif/exif-tag.c: Fix typo. 2003-01-22 Lutz Mller * libexif/exif-entry.c (exif_entry_get_value): Support USER_COMMENT. 2002-12-31 Lutz Mueller * README: Some information by Sander van Geloven . 2002-12-11 Lutz Mueller * libexif/exif-entry.c (exif_entry_initialize): Fix last commit. 2002-12-11 Lutz Mueller * libexif/exif-entry.c (exif_entry_initialize): Support USER_COMMENT. * configure.in: Version 0.5.9 2002-12-09 Lutz Mueller * README: New frontend 'thirdeye'. 2002-12-07 Lutz Mueller * configure.in: Version 0.5.8 2002-12-02 Lutz Mueller * libexif/Makefile.am: Forgot to remove the some subdirs. 2002-12-02 Lutz Mueller * configure.in: Remove some Makefiles 2002-12-02 Lutz Mueller * configure.in: Reflect removal of exif-note.h in version. 2002-12-02 Lutz Mueller * libexif/exif-note.[c,h]: Removed. Now in libmnote. 2002-09-16 Lutz Mueller * libexif: Some fixes for Windows (Visual C++) by Andres 2002-09-15 Lutz Mueller * configure.in: IRIS fixes by Andrea Suatoni 2002-09-15 Lutz Mueller * configure.in: * po/es.po: Spanish translation by Fabian Mandelbaum 2002-08-30 Lutz Mueller * libexif/exif-data.c: Some cleanup. 2002-08-29 Lutz Mueller Renchi Raju found another bug in * libexif/exif-data.c: Correctly save the data. * configure.in: Version 0.5.6. 2002-08-29 Lutz Mueller Jason Sodergren found a lot of bugs in * libexif/exif-data.c: Correctly save the data. * configure.in: Version 0.5.5. 2002-08-29 Lutz Mueller Another fixes related to #564019: * libexif: Make code conform to ISO C standard, section 6.5.2.3. 2002-08-29 Lutz Mueller Bug reported by Jason Sodergren : * libexif/exif-data.c: EXIF_IFD_1 -> EXIF_IFD_0. 2002-08-02 Hans Ulrich Niedermann * configure.in: Version 0.5.4dev distinguish release versions from CVS versions 2002-07-25 Lutz Mueller * libexif/exif-ifd.[c,h]: New. * libexif/exif-data.h: Introduce an array of ExifContents. This doesn't break binary compatibility, but it breaks compilation. Do something like "%s/->ifd_0/->ifd[EXIF_IFD_0]" in your source code to make it compile again. * configure.in: Version 0.5.4. 2002-07-25 Lutz Mueller Patch by anonymous user: * libexif/exif-[byte-order,format,result,tag].h: Make code comply with ISO C standard, section 6.5.2.3. 2002-07-25 Lutz Mueller Patch by Takuro Ashie : * libexif/exif-data.c: Plug memory leak. 2002-07-10 Lutz Mueller Bug spotted by Andres : * libexif/exif-data.c: Save the EXIF_TAG_INTEROPERABILITY_IFD_POINTER in ifd_exif, not in ifd0. 2002-06-26 Lutz Mueller Patch by Jos van den Oever : Make libexif c++ friendly. 2002-06-14 Lutz Mueller * configure.in: Correct -version-info. 2002-06-11 Lutz Mueller * configure.in: Version 0.5.3 2002-06-11 Lutz Mueller * libexif/Makefile.am: Oops, missed those konica entries. 2002-06-10 Lutz Mueller * configure.in: Version 0.5.2 2002-06-10 Lutz Mueller * configure.in: We need autoconf > 2.50. 2002-06-09 Lutz Mueller Internationalization. 2002-06-08 Lutz Mueller Patch by Guido Ostkamp * libexif/exif-data.c: Increment offset by 12. 2002-06-06 Lutz Mueller Bug spotted by Andres : * exif-entry.c: Fix typo. 2002-06-05 Lutz Mueller * COPYING: Check the text of the LGPL in, because otherwise, automake --add-missing would use the text of the GPL. 2002-06-03 Lutz Mueller * configure.in: Version 0.5.1 2002-05-01 Lutz Mueller Patch by Arnaud Rouanet : * libexif/exif-entry.c (exif_entry_get_value): Fix typo. 2002-04-30 Lutz Mueller Patch by Arnaud Rouanet : * libexif/exif-entry.c (exif_entry_get_value): Support version 2.2. 2002-04-18 Lutz Mueller Patch by Marcus Meissner : * libexif/*.h: Make header files c++ friendly. 2002-04-16 Lutz Mueller Enhancements by Semyon Sosin , adapted: * libexif/exif-content.h: Add some convenience defines. * libexif/exif-entry.[c,h] (exif_entry_get_value_brief): New. * README: Add a note about libjpeg. 2002-04-15 Lutz Mueller Enhancements by Semyon Sosin , adapted: * libexif/exif-entry.c (exif_entry_get_value): More tags covered. * libexif/exif-data.c (exif_data_new_from_file): Don't read the whole file into memory. 2002-04-04 Hans Ulrich Niedermann * Makefile.am: dded .tar.bz2 packaging to "make dist" 2002-03-01 Lutz Mueller Patch by Mark Pulford : * libexif.spec.in: New * configure.in: * Makefile.am: Create libexif.spec 2002-02-28 Lutz Mueller Patch by Javier Achirica : * libexif/exif-data.c: Fix directory length and termination. 2002-02-28 Lutz Mueller * libexif/exif-entry.c (exif_entry_get_value): Add support for EXIF_TAG_SUBJECT_AREA. 2002-02-28 Lutz Mueller Patch by Javier Achirica : * libexif/exif-tag.[c,h]: * libexif/exif-entry.c: Support EXIF-2.2 tags. 2002-02-25 Lutz Mueller Patch by Basil Dias : * libjpeg/jpeg-data.c: Missing realloc. 2002-02-21 Lutz Mueller * libexif/canon: Set up support for parsing MakerNotes. 2002-02-20 Lutz Mueller * libexif/exif-data.c: * libjpeg/jpeg-data.c: Read and write "rb" (Windows needs it). 2002-02-18 Lutz Mueller * libexif/exif-data.c: Suppress output unless #ifdef DEBUG 2002-02-17 Lutz Mueller Patch from Fredrik : * libexif/exif-data.c: Better checks for size. 2002-02-13 Lutz Mueller * libexif/configure.in: Introduce proper versionning. 2002-02-13 Lutz Mueller * libexif: There's only one ByteOrder per ExifData. 2002-02-12 Lutz Mueller * libexif/exif-entry.c: More initialization. 2002-02-11 Lutz Mueller * configure.in: Version 0.5 2002-02-11 Lutz Mueller * libexif/libexif-entry.c: More tags implemented in (exif_entry_get_value). 2002-02-06 Lutz Mueller * configure.in: Version 0.4 2002-02-05 Lutz Mueller * configure.in: Version 0.3 2002-02-05 Lutz Mueller * libexif: Implement saving. 2002-01-29 Lutz Mueller * configure.in: Version 0.2 2002-01-06 Lutz Mueller Merge new stuff from gtkam/libexif. 2001-12-23 Lutz Mueller Merge new stuff from gtkam/libexif. 2001-12-21 Lutz Mueller Move new version from gtkam to here. 2001-12-11 Lutz Mueller Initial automake setup. libexif-libexif-0_6_25-release/LICENSES/000077500000000000000000000000001474246475200176525ustar00rootroot00000000000000libexif-libexif-0_6_25-release/LICENSES/BSD-3-Clause.txt000066400000000000000000000026551474246475200224050ustar00rootroot00000000000000Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. libexif-libexif-0_6_25-release/LICENSES/CC0-1.0.txt000066400000000000000000000156101474246475200212570ustar00rootroot00000000000000Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s); iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 4. Limitations and Disclaimers. a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. libexif-libexif-0_6_25-release/LICENSES/GPL-2.0-only.txt000066400000000000000000000432541474246475200223210ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, 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 or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's 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 give any other recipients of the Program a copy of this License along with the Program. 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 Program or any portion of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, 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 Program, 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 Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) 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; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, 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 executable. However, as a special exception, the source code 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. If distribution of executable or 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 counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program 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. 5. 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 Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program 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 to this License. 7. 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 Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program 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 Program. 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. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program 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. 9. The Free Software Foundation may publish revised and/or new versions of the 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 Program 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 Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, 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 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. libexif-libexif-0_6_25-release/LICENSES/LGPL-2.0-or-later.txt000066400000000000000000000614451474246475200232030ustar00rootroot00000000000000 GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] 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 Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, 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 or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the 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 a program 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. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. 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, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library 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 compile 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) 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. c) 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. d) 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 source code 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 to 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 Library 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 How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! libexif-libexif-0_6_25-release/LICENSES/LGPL-2.1-or-later.txt000066400000000000000000000635021474246475200232000ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! libexif-libexif-0_6_25-release/LICENSES/LicenseRef-Wrobel.txt000066400000000000000000000001001474246475200236510ustar00rootroot00000000000000LICENSE: no restrictions at all, but USE ON YOUR OWN RISK ONLY. libexif-libexif-0_6_25-release/LICENSES/MIT.txt000066400000000000000000000020661474246475200210500ustar00rootroot00000000000000MIT License Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. libexif-libexif-0_6_25-release/Makefile.am000066400000000000000000000026231474246475200205040ustar00rootroot00000000000000# Root automake makefile for libexif # # Copyright (c) 2001-2020 Lutz Mueller , et. al. # SPDX-License-Identifier: LGPL-2.0-or-later SUBDIRS = m4m po libexif test doc binary-dist contrib EXTRA_DIST = @PACKAGE_TARNAME@.spec README-Win32.txt pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libexif.pc EXTRA_DIST += libexif.pc.in noinst_DATA = libexif-uninstalled.pc EXTRA_DIST += libexif-uninstalled.pc.in ACLOCAL_AMFLAGS = -I auto-m4 -I m4m EXTRA_DIST += SECURITY.md doc_DATA = README AUTHORS NEWS ChangeLog ABOUT-NLS COPYING SECURITY.md ####################################################################### # Help for the maintainer # # Simulate something like # EXTRA_DIST_IF_EXIST = ChangeLog.git # If present, ship ChangeLog.git in source tarball. # If not present, don't ship it. dist-hook: if test -f $(srcdir)/ChangeLog.git; then \ cp -p $(srcdir)/ChangeLog.git $(distdir)/ChangeLog.git; \ fi .PHONY: git-changelog git-changelog: $(srcdir)/ChangeLog.git .PHONY: $(srcdir)/ChangeLog.git $(srcdir)/ChangeLog.git: (cd "$(srcdir)" && git2cl > $@) .PHONY: git-tag-release git-tag-release: @tag="$$(echo "$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-release" | sed 's|\.|_|g')"; \ echo "Are you sure you want to git tag \`$${tag}' your source files?"; \ echo "Press Ctrl-C to abort, Enter to continue."; \ read; \ cd "$(srcdir)" && git tag "$${tag}" # End of Makefile.am. libexif-libexif-0_6_25-release/NEWS000066400000000000000000000230321474246475200171440ustar00rootroot00000000000000libexif-0.6.25 (2025-01-08): * REUSE compatibility (all files declare their license) * Translation updates: ro, de, es, ka, pl, sr, sv, uk, vi, zh_CN, * Disabled Apple Makernote support, as its not complete * various bugfixes * handle JPEG APP10 * EXIF_TAG_COMPOSITE_IMAGE, EXIF_TAG_STANDARD_OUTPUT_SENSITIVITY, EXIF_TAG_RECOMMENDED_EXPOSURE_INDEX, EXIF_TAG_ISO_SPEED, EXIF_TAG_ISO_SPEEDLatitudeYYY, EXIF_TAG_ISO_SPEEDLatitudeZZZ, EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE, EXIF_TAG_LENS_SPECIFICATION, EXIF_TAG_GAMMA, EXIF_TAG_OFFSET_TIME, EXIF_TAG_OFFSET_TIME_ORIGINAL, EXIF_TAG_OFFSET_TIME_DIGITIZED, EXIF_TAG_CAMERA_OWNER_NAME, EXIF_TAG_BODY_SERIAL_NUMBER, EXIF_TAG_LENS_MAKE, EXIF_TAG_LENS_MODEL, EXIF_TAG_LENS_SERIAL_NUMBER: better decoding libexif-0.6.24 (2021-11-25): * Translation updates: sr, vi, pl, uk, french * fixed regression in exif_data_load_data which could not load EXIF in JPEG data anymore * Decode lots of Canon tag names * removed empty strings from translation (empty string would translate to the PO info header) * various warning removals and code improvements * added sample "persistent" afl fuzzer (100x faster than normal afl fuzzer) libexif-0.6.23 (2021-09-12): * Translation updates: es, pl, uk, fr * EXIF_TAG_SENSITIVITY_TYPE decoder added, added some more Exif 2.3 tags: - EXIF_TAG_STANDARD_OUTPUT_SENSITIVITY - EXIF_TAG_RECOMMENDED_EXPOSURE_INDEX - EXIF_TAG_ISO_SPEED - EXIF_TAG_ISO_SPEEDLatitudeYYY - EXIF_TAG_ISO_SPEEDLatitudeZZZ - EXIF_TAG_OFFSET_TIME - EXIF_TAG_OFFSET_TIME_ORIGINAL - EXIF_TAG_OFFSET_TIME_DIGITIZED - EXIF_TAG_IMAGE_DEPTH * be more relaxed to out of order JPG / EXIF dataheaders in files generated by some tools * default GPS IFD table added * Decode more Nikon Makernote tag names * Added Apple iOS Makernote * Security fixes: * CVE-2020-0198: unsigned integer overflow in exif_data_load_data_content * CVE-2020-0452: compiler optimization could remove an a bufferoverflow check, making a buffer overflow possible with some EXIF tags * some more denial of service (compute time or stack exhaustion) counter-measures added that avoid minutes of decoding time with malformed files found by OSS-Fuzz libexif-0.6.22 (2020-05-18): * New translations: ms * Updated translations for most languages * Fixed C89 compatibility * Fixed warnings on recent versions of autoconf * Some useful EXIF 2.3 tag added: * EXIF_TAG_GAMMA * EXIF_TAG_COMPOSITE_IMAGE * EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE * EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE * EXIF_TAG_GPS_H_POSITIONING_ERROR * EXIF_TAG_CAMERA_OWNER_NAME * EXIF_TAG_BODY_SERIAL_NUMBER * EXIF_TAG_LENS_SPECIFICATION * EXIF_TAG_LENS_MAKE * EXIF_TAG_LENS_MODEL * EXIF_TAG_LENS_SERIAL_NUMBER * Lots of fixes exposed by fuzzers like AFL, ClusterFuzz, OSSFuzz and others. * CVE-2018-20030: Fix for recursion DoS * CVE-2020-13114: Time consumption DoS when parsing canon array markers * CVE-2020-13113: Potential use of uninitialized memory * CVE-2020-13112: Various buffer overread fixes due to integer overflows in maker notes * CVE-2020-0093: read overflow * CVE-2019-9278: replaced integer overflow checks the compiler could optimize away by safer constructs * CVE-2020-12767: fixed division by zero * CVE-2016-6328: fixed integer overflow when parsing maker notes * CVE-2017-7544: fixed buffer overread libexif-0.6.21 (2012-07-12): * New translations: en_AU, uk * Updated translations: cs, da, de, en_CA, nl, pl, sk, sv, vi * Added more supported lens in Canon MakerNote * Added some defensive NULL pointer checks * Fixed a number of security and stability issues due to buffer overflows, bad pointer dereferences and division-by-zero including bug #3434540 and bug #3434545 (CVE-2012-2812, CVE-2012-2813, CVE-2012-2814, CVE-2012-2836, CVE-2012-2837, CVE-2012-2840, CVE-2012-2841, CVE-2012-2845) libexif-0.6.20 (2010-12-15): * New translations: bs, tr * Updated translations: be, cs, da, de, en_GB, en_CA, it, ja, nl, pl, pt_BR, pt, ru, sk, sq, sr, sv, vi, zh_CN * Fixed some problems in the write-exif.c example program * Stop listing -lm as a required library for dynamic linking in libexif.pc * Turned on the --enable-silent-rules configure option * Changed a lot of strings to make the case of the text more consistent * exif_entry_dump() now displays the correct tag name for GPS tags * Fixed some invalid format specifiers that caused problems on some platforms * Display rational numbers with the right number of significant figures libexif-0.6.19 (2009-11-12): * New translations: be, en_GB, it, ja, pt, sq, zh_CN * Updated translations: da, sv, vi * Now using a binary search to make searching through the tag table faster * Fixed a heap buffer overflow during tag format conversion (CVE-2009-3895) libexif-0.6.18 (2009-10-09): * New translations: da, pt_BR, sr * Updated translations: cs, de, en_CA, nl, pl, sk, sv, vi * Added some example programs * libexif is now thread safe when the underlying C library is thread safe and when each object allocated by libexif isn't used by more than one thread simultaneously * Expanded the Doxygen API documentation * Access to the raw EXIF data through the ExifEntry structure members is now officially documented * Fixed some Olympus/Sanyo MakerNote interpretations * Added support for Epson MakerNotes * Fixed bug #1946138 to stop ignoring CFLAGS in the sqrt configure test * Added remaining GPS tags from the EXIF 2.2 spec to the tag table * Fixed the interpretation of some tags as being optional in IFD 1 (to match the EXIF 2.2 spec) which stops them from being erroneously removed from a file when EXIF_DATA_OPTION_IGNORE_UNKNOWN_TAGS is set * Changed exif_tag_get_support_level_in_ifd() to return a value when possible when the data type for the given EXIF data is unknown. This will cause tags to be added or deleted when tag fixup is requested even, without a data type being set. * Added support for writing Pentax and Casio type2 MakerNotes * Improved display of Pentax and Casio type2 MakerNotes * Completely fixed bug #1617997 to display APEX values correctly * Stopped some crashes due to read-beyond-buffer accesses in MakerNotes * Don't abort MakerNote parsing after the first invalid tag * Sped up exif_content_fix() * Fixed negative exposure values in Canon makernotes (bug #2797280) * New API entry point: exif_loader_get_buf() libexif-0.6.17 (2008-11-06): * Updated translations: cs, de, pl, sk, vi * New translations: nl, sv, en_CA * Bug fixes: #1773810, #1774626, #1536244, CVE-2007-6351, CVE-2007-6352, #2071600 and others * Enhanced support of Canon and Olympus makernotes * Added support for Fuji and Sanyo makernotes * Added support for the NO_VERBOSE_TAG_STRINGS and NO_VERBOSE_TAG_DATA macros to reduce size for embedded applications * Added support for more tags libexif-0.6.16 (2007-06-12): * Security fix: CVE-2006-4168 aka IDEF1514. * Updated translations: cz, pl, vi New in 0.6.15 (2007-05-23) since 0.6.14 (2007-05-10): * Added support for 2 new types of Pentax makernotes & Casio type2 makernote * Added support for Win XP metadata (Author, Comment, KeyWords, Title, Subject) tags * Bug fixes: [ 1443183 ] install error when doxygen is not present. * New translations: Czech, Slovak. * Improved doxygen generated API and code internals documentation. Made building of code internals docs optional (--enable-internal-docs) as the call graphs take quite long to build. Made building any docs optional (--disable-docs). New in 0.6.14 (2007-05-10) since 0.6.13 (2005-12-27): * Bug fixes: #1457501, #1471060, #1525770, #1617991, #1703284, #1716196 * Extended support of Canon, Nikon, Olympus makernotes * Added option EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE to prevent modification of maker notes * Other fixes and improvements which include API/ABI additions. New in 0.6.13 (2005-12-27) since 0.6.12 (2005-03-13): * Bug fixes: #803191, #1051994, #1054321, #1054323, #1196787 * For pkg-config users, force usage of #include (disable #include ) * Updated German translation * Build system tuning * Misc changes: Fix COPYRIGHT tag, fix memory corruption, use qsort. New in 0.6.12 (2005-03-13) since 0.6.11 (2004-10-16): * Final fix of Ubuntu Security Notice USN-91-1 (CAN-2005-0664) https://bugzilla.ubuntulinux.org/show_bug.cgi?id=7152 * Updated build system with cross compile capabilities * Small fixes: Fix tag order, use even offsets, improve Nikon&Olympus mnote tags. New in 0.6.11 (2004-10-16) since 0.6.10 (2004-08-27): * Improved tag names, titles, and descriptions. * Bug fixes for memory leaks, format strings, month one off, ... * Support for Watcom compiler (requires manual copying of files) New in 0.6.10 (2004-08-27) since 0.5.9 (2002-12-11): * New tags supported, and added a few more checks. * API changes * libmnote has been merged back into libexif General remarks: * This file contains changes visible to users. * Small bug fixes (typos, memory leaks, ...) and feature enhancements (new tag types, ...) are not mentioned explicitly. * Apart from that, I would like to ask committers to update this file when they commit "big" user visible changes. * If someone wants to reconstruct past changes and log them here, you're welcome to. libexif-libexif-0_6_25-release/README000066400000000000000000000135101474246475200173250ustar00rootroot00000000000000 libexif ------- DESCRIPTION ----------- libexif is a library for parsing, editing, and saving EXIF data. It is intended to replace lots of redundant implementations in command-line utilities and programs with GUIs. FEATURES -------- libexif supports parsing, editing and saving of EXIF data. In addition, it has gettext support. All EXIF tags described in EXIF standard 2.1 (and most from 2.2) are supported. Many maker notes from Canon, Casio, Epson, Fuji, Nikon, Olympus, Pentax and Sanyo cameras are also supported. REQUIREMENTS ------------ libexif is written in plain C and does not require any additional library. GNU gettext will be used for language translation, if available. LIMITATIONS ----------- libexif can only handle some maker notes, and even those not very well. More work needs to be done. Note that libmnote has been merged with libexif - it is no longer needed. USAGE ----- We have documented the libexif API using doxygen and are making the results available at https://libexif.github.io/api/ The short test programs in the test directory illustrates how to create valid EXIF data from scratch, how to save EXIF data and how to load EXIF data from data in memory. To run the test programs, just run make check. There are also a few simple example programs available in the contrib/examples/ directory. Don't hesitate to contact us at if you have any questions on how to use libexif. To link to libexif into your own package, we recommend using the pkgconfig utility (cf. https://www.freedesktop.org/wiki/Software/pkg-config/ For your convenience, libexif both provides libexif-uninstalled.pc and installs libexif.pc. FRONTENDS --------- Here are a few frontends to libexif: - exif: A small command-line utility to show EXIF information in JPEG files (https://github.com/libexif/exif). - gexif: A GTK+ frontend for editing EXIF data (https://github.com/libexif/gexif). - gphoto2: A command-line frontend to libgphoto2, a library to access a wide range of digital cameras (http://www.gphoto.org). - gtkam: A GTK+ frontend to libgphoto2 (http://www.gphoto.org). - thirdeye: Digital photos organizer and driver for eComStation (http://ecomstation.ru/thirdeye). - digikam: digital photo management application for KDE (https://www.digikam.org/) If you would like to migrate your program to use libexif or add EXIF support to it, don't hesitate to contact the authors. LIBRARIES --------- The following libraries use or have been inspired by libexif: - libexif-gtk: library of widgets to help display EXIF tags in GTK programs (https://github.com/libexif/libexif-gtk). - pel: PHP-Code (https://github.com/lsolesen/pel/) BUILDING -------- It really depends on your environment what to do in order to get libexif to build. Building from the source tar ball usually involves the commands: ./configure make sudo make install When building from source out of git, something like the following will be necessary: autoreconf -i ./configure make Besides the standard arguments, configure takes several specific to libexif: --disable-docs To disable producing any documentation --enable-internal-docs Build internal code docs if Doxygen available --enable-ship-binaries To include Windows DLLs in 'make dist' Certain specialized applications can reduce the size of the libexif binary by setting one or both of the following macros in the CPPFLAGS environment variable at configure time. Each one removes certain kinds of text strings and constants from the binary. Applications which need to access specific, known EXIF tags and know in advance the meaning of their data have no need of those strings and can save considerable space by eliminating them. -DNO_VERBOSE_TAG_STRINGS Names and descriptions of EXIF tags, debug messages, mandatory EXIF fields (disabling auto-tag-fixup) -DNO_VERBOSE_TAG_DATA Names of enumerated tag data contents INTERNATIONALIZATION -------------------- The libexif translations are made by volunteers working on their own, either directly with the libexif project or through one of two translation coordination sites, the Translation Project and Launchpad . Any updates to language translations coordinated by the Translation Project must be made through their web site, but all other languages can be updated either through Launchpad (preferred) or by sending updates to the libexif developers mailing list directly. As of this writing, the following languages must be updated through the Translation Project: cs da de es fr it ja nl pl pt sk sv uk vi If you are interested in translating libexif into a new language, we recommend that you join one of the above translation groups and take advantage of the systems they have built to help you. A translation disclaimer is NOT required for libexif at the Translation Project; by making a translation, you agree implicitly to provide it under the same license terms as the rest of libexif (LGPL). AUTHORS ------- libexif has originally been written by Curtis Galloway . Because of the original design not supporting editing and saving, Lutz Mueller rewrote libexif from scratch. Since then, many more people have contributed to libexif. LINKS ----- Some links you might want to check out if you are interested in further information about EXIF. - https://drewnoakes.com/code/exif: metadata extraction framework in Java - https://www.exif.org: information about the EXIF standard. - https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/index.html: Looks like libexif in Perl. Seems to support a lot of MakerNotes. libexif-libexif-0_6_25-release/README-Win32.txt000066400000000000000000000016741474246475200210530ustar00rootroot00000000000000If this is a combined source/binary distribution tree, then you can find * the binary DLL in the subdirectory binary-dist/bin/ * the include files in the subdirectory binary-dist/include/ As for building libexif yourself on or for Win32, you can a) hack yourself a build system somehow This seems to be the Windows way of doing things. b) Use MinGW32 If you use MinGW32 (including MSYS) on Windows, building libexif should follow the usual pattern of ./configure make make install as for any Unix like system and you can just follow the general instructions. Something neat to do is to use a MinGW32 cross compiler on a Unix system (Debian ships one for example). Then you can run ./configure --host=i586-mingw32msvc --disable-nls make make install If you want to build a combined source/binary distribution tarball/zipfile, then add the --enable-ship-binaries option to the ./configure command line. libexif-libexif-0_6_25-release/SECURITY.md000066400000000000000000000023271474246475200202420ustar00rootroot00000000000000# Security overview ## General libexif is a software library to process EXIF datablobs, which are usually embedded in JPEG files. It allows reading, writing, changing, and extraction (binary and textual versions) of this data. ## Attack Surface Any data blob put into the library should be assumed untrusted and potentially malicious. ABI parameters can be considered trusted. The primary attack scenario is processing of files for EXIF content extraction (displaying) via unattended services, up to and including webservices where files can be uploaded by potential attackers. ## Bugs considered security issues (Mostly for CVE assigments rules.) Triggering memory corruption of any form is considered in scope. Triggering endless loops is considered in scope. (would block services) Triggering unintentional aborts is considered in scope. Common library usage patterns are in scope. Crashes during writing out of data as EXIF could be in scope. ## Bugs not considered security issues Crashes caused by debugging functionality are not in scope. ## Bugreports Bugreports can be filed as github issues. If you want to report an embargoed security bug report, reach out to dan@coneharvesters.com and marcus@jet.franken.de. libexif-libexif-0_6_25-release/TODO000066400000000000000000000005521474246475200171370ustar00rootroot00000000000000- refactor out the Mnote Entries structs, they are all the same - perhaps even use the generic exifentry for mnoteentries, its the same except "byteorder" - use a generic exif entry renderer for the default: case in mnote entries - more fileformat readers - implement more Maker Note Types - implement more Maker Note Entries (see exiftool or exiv2 for data) libexif-libexif-0_6_25-release/auto-m4/000077500000000000000000000000001474246475200177335ustar00rootroot00000000000000libexif-libexif-0_6_25-release/auto-m4/.gitignore000066400000000000000000000000051474246475200217160ustar00rootroot00000000000000*.m4 libexif-libexif-0_6_25-release/binary-dist/000077500000000000000000000000001474246475200206725ustar00rootroot00000000000000libexif-libexif-0_6_25-release/binary-dist/.gitignore000066400000000000000000000000251474246475200226570ustar00rootroot00000000000000Makefile Makefile.in libexif-libexif-0_6_25-release/binary-dist/Makefile.am000066400000000000000000000006461474246475200227340ustar00rootroot00000000000000# Copyright (C) 2005 Hans Ulrich Niedermann # SPDX-License-Identifier: LGPL-2.0-or-later if SHIP_BINARIES EXTRA_DIST = include bin SH_DIST_HOOK = dist-ship-binary-hook dist-ship-binary-hook include bin: cd "$(top_builddir)" && $(MAKE) includedir="$(PWD)/include" DESTDIR="" prefix="$(PWD)/tmp" install $(MKDIR_P) "$(PWD)/bin" cp "$(PWD)/tmp/bin/"*.dll "bin/" endif dist-hook: $(SH_DIST_HOOK) libexif-libexif-0_6_25-release/configure.ac000066400000000000000000000210371474246475200207360ustar00rootroot00000000000000dnl autoconf configuration for libexif dnl dnl Copyright (c) 2001-2022 Lutz Mueller , et. al. dnl SPDX-License-Identifier: LGPL-2.0-or-later AC_PREREQ(2.69) AC_INIT([EXIF library], [0.6.25], [libexif-devel@lists.sourceforge.net], [libexif], [https://libexif.github.io/]) AC_CONFIG_SRCDIR([libexif/exif-data.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([auto-m4]) AM_INIT_AUTOMAKE([ -Wall gnu 1.14.1 dist-xz dist-bzip2 dist-zip check-news subdir-objects ]) AM_MAINTAINER_MODE AM_SILENT_RULES([yes]) GP_CHECK_SHELL_ENVIRONMENT GP_CONFIG_MSG([Build]) GP_CONFIG_MSG([Source code location], [${srcdir}]) dnl --------------------------------------------------------------------------- dnl Advanced information about versioning: dnl * "Writing shared libraries" by Mike Hearn dnl http://plan99.net/~mike/writing-shared-libraries.html dnl originally http://navi.cx/~mike/writing-shared-libraries.html dnl * libtool.info chapter "Versioning" dnl * libtool.info chapter "Updating library version information" dnl --------------------------------------------------------------------------- dnl Versioning: dnl - CURRENT (Major): Increment if the interface has changes. AGE is always dnl *changed* at the same time. dnl - AGE (Micro): Increment if any interfaces have been added; set to 0 dnl if any interfaces have been removed. Removal has dnl precedence over adding, so set to 0 if both happened. dnl It denotes upward compatibility. dnl - REVISION (Minor): Increment any time the source changes; set to dnl 0 if you incremented CURRENT. dnl dnl To summarize. Any interface *change* increment CURRENT. If that interface dnl change does not break upward compatibility (ie it is an addition), dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed, dnl REVISION is set to 0, otherwise REVISION is incremented. dnl --------------------------------------------------------------------------- dnl C:A:R dnl 12:0:1 0.6.13 dnl 13:1:0 added EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE (for 0.6.14) dnl 14:2:0 added XP_ WinXP tags (for 0.6.15) dnl 14:2:1 0.6.17 dnl 15:3:0 added exif_loader_get_buf (for 0.6.18) dnl 15:3:1 0.6.19 dnl 15:3:2 0.6.20 dnl 15:3:3 0.6.21 dnl 15:3:4 0.6.22 LIBEXIF_CURRENT=15 LIBEXIF_AGE=3 LIBEXIF_REVISION=4 AC_SUBST([LIBEXIF_AGE]) AC_SUBST([LIBEXIF_REVISION]) AC_SUBST([LIBEXIF_CURRENT]) AC_SUBST([LIBEXIF_CURRENT_MIN],[`expr $LIBEXIF_CURRENT - $LIBEXIF_AGE`]) LIBEXIF_VERSION_INFO="$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE" AC_SUBST([LIBEXIF_VERSION_INFO]) AC_C_INLINE AM_PROG_AR LT_INIT([win32-dll]) AM_CPPFLAGS="$CPPFLAGS" GP_CONFIG_MSG([Compiler], [${CC}]) dnl -------------------------------------------------------------------- dnl check for "diff" and "diff -u" dnl -------------------------------------------------------------------- AC_ARG_VAR([DIFF], [path to diff utility (default: no)]) AC_PATH_PROG([DIFF], [diff], [no]) AM_CONDITIONAL([HAVE_DIFF], [test "x$DIFF" != xno]) DIFF_U="no" AS_IF([test "x$DIFF" != xno], [dnl AC_MSG_CHECKING([whether diff supports -u]) echo moo > conftest-a.c echo moo > conftest-b.c AS_IF([${DIFF} -u conftest-a.c conftest-b.c], [dnl AC_MSG_RESULT([yes]) DIFF_U="$DIFF -u" ], [dnl AC_MSG_RESULT([no]) ]) rm -f conftest-a.c conftest-b.c ]) AC_SUBST([DIFF_U]) AM_CONDITIONAL([HAVE_DIFF_U], [test "x$DIFF_U" != xno]) dnl -------------------------------------------------------------------- AC_SYS_LARGEFILE dnl Create a stdint.h-like file containing size-specific integer definitions dnl that will always be available AX_NEED_STDINT_H([libexif/_stdint.h]) dnl ------------------------------------------------------------------------ dnl Whether we're supposed to ship binaries in the tarball dnl ------------------------------------------------------------------------ ship_binaries=false AC_ARG_ENABLE([ship-binaries], [AS_HELP_STRING([--enable-ship-binaries], [Whether to ship binaries in the tarball [default=no]])], [ AS_VAR_IF([enableval], [yes], [ship_binaries=true]) ]) AM_CONDITIONAL([SHIP_BINARIES], [$ship_binaries]) GP_CONFIG_MSG([Ship binaries in tarball], [$ship_binaries]) dnl --------------------------------------------------------------------------- dnl Whether -lm is required for our math functions dnl --------------------------------------------------------------------------- # we need sqrt and pow which may be in libm # We cannot use AC_CHECK_FUNC because if CFLAGS contains # -Wall -Werror here the check fails because # char *sqrt() conflicts with double sqrt(double xx) # Start by assuming -lm is needed, because it's possible that the little # test program below will be optimized to in-line floating point code that # doesn't require -lm, whereas the library itself cannot be so optimized # (this actually seems to be the case on x86 with gcc 4.2). Assuming the # reverse means that -lm could be needed but wouldn't be detected below. LIBS_orig="$LIBS" LIBS="$LIBS -lm" AC_MSG_CHECKING([for math functions in libm]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include ],[ double s = sqrt(0); double p = pow(s,s); (void) p; ])], [AC_MSG_RESULT([yes])], [ AC_MSG_RESULT([no]) LIBS="$LIBS_orig" AC_MSG_CHECKING([for math functions without libm]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include ],[ double s = sqrt(0); double p = pow(s,s); (void) p; ])], [ AC_MSG_RESULT([yes]) ],[ AC_MSG_RESULT([no]) AC_MSG_ERROR([*** Could not find sqrt() & pow() functions]) ]) ]) # Check whether libfailmalloc is available for tests CHECK_FAILMALLOC # doc support GP_CHECK_DOC_DIR GP_CHECK_DOXYGEN # Whether to enable the internal docs build. # # This takes quite some time due to the generation of lots of call # graphs, so it is disabled by default. set_enable_internal_docs=no AC_ARG_ENABLE([internal-docs], [dnl AS_HELP_STRING([--enable-internal-docs], [Build internal code docs if doxygen available])], [ dnl If either --enable-foo nor --disable-foo were given, execute this. AS_CASE(["$enableval"], [no|off|false], [set_enable_internal_docs=no], [yes|on|true], [set_enable_internal_docs=yes]) ]) AC_MSG_CHECKING([whether to create internal code docs]) AC_MSG_RESULT([${set_enable_internal_docs}]) AM_CONDITIONAL([ENABLE_INTERNAL_DOCS], [test "x${set_enable_internal_docs}" = "xyes"]) # --------------------------------------------------------------------------- # i18n support # --------------------------------------------------------------------------- ALL_LINGUAS="be bs cs da de en_AU en_CA en_GB es fr it ja ka ms nl pl pt pt_BR ro ru sk sq sr sv tr uk vi zh_CN" AM_PO_SUBDIRS GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT_MIN}], [Lutz Mueller and others]) AM_GNU_GETTEXT_VERSION([0.18.3]) AM_GNU_GETTEXT([external]) AM_ICONV() GP_GETTEXT_FLAGS() dnl --------------------------------------------------------------------------- dnl Thread-safe functions dnl --------------------------------------------------------------------------- AC_MSG_CHECKING([for localtime_s]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include ]], [[ localtime_s(NULL, NULL); ]])], [dnl have_localtime_s="yes" AC_DEFINE([HAVE_LOCALTIME_S], [1], [Define to 1 if you have localtime_s()]) ], [dnl have_localtime_s="no" ]) AC_MSG_RESULT([$have_localtime_s]) AC_CHECK_FUNCS([localtime_r]) dnl --------------------------------------------------------------------------- dnl Compiler/Linker Options and Warnings dnl --------------------------------------------------------------------------- AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)" AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_builddir)" AM_LDFLAGS="$LDFLAGS" AS_VAR_IF([GCC], [yes], [dnl AM_CFLAGS="$AM_CFLAGS -ansi -pedantic-errors" AM_CXXFLAGS="$AM_CXXFLAGS -ansi -pedantic-errors" AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes" AM_LDFLAGS="$AM_LDFLAGS -g -Wall" ]) dnl AC_SUBST([AM_CFLAGS]) dnl AC_SUBST([AM_CXXFLAGS]) AC_SUBST([AM_CPPFLAGS]) AC_SUBST([AM_LDFLAGS]) dnl --------------------------------------------------------------------------- dnl Output files dnl --------------------------------------------------------------------------- AC_CONFIG_FILES([ po/Makefile.in Makefile libexif.spec libexif/Makefile test/Makefile test/nls/Makefile m4m/Makefile doc/Makefile doc/Doxyfile doc/Doxyfile-internals libexif.pc libexif-uninstalled.pc binary-dist/Makefile contrib/Makefile contrib/examples/Makefile ]) AC_OUTPUT GP_CONFIG_OUTPUT libexif-libexif-0_6_25-release/contrib/000077500000000000000000000000001474246475200201055ustar00rootroot00000000000000libexif-libexif-0_6_25-release/contrib/.gitignore000066400000000000000000000000251474246475200220720ustar00rootroot00000000000000Makefile Makefile.in libexif-libexif-0_6_25-release/contrib/Makefile.am000066400000000000000000000004561474246475200221460ustar00rootroot00000000000000# Copyright (C) 2008 Dan Fandrich # SPDX-License-Identifier: LGPL-2.0-or-later SUBDIRS = examples # The c++ and aolserver contrib directories are out of date and are # are pointless to distribute in the offical source release. EXTRA_DIST = watcom/Makefile watcom/_stdint.h libexif-libexif-0_6_25-release/contrib/aolserver/000077500000000000000000000000001474246475200221075ustar00rootroot00000000000000libexif-libexif-0_6_25-release/contrib/aolserver/Makefile000066400000000000000000000005471474246475200235550ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2000 Curtis Galloway # SPDX-License-Identifier: MIT NSHOME = /home/aol31 EXIFDIR = .. # # Module name # MOD = nsexif.so # # Objects to build # OBJS = nsexif.o # # Installation directory for data files # MODDIR = nsexif MODLIBS = -L.. -lexif CFLAGS += -I$(EXIFDIR) include $(NSHOME)/include/Makefile.module libexif-libexif-0_6_25-release/contrib/aolserver/nsexif.c000066400000000000000000000070271474246475200235550ustar00rootroot00000000000000/* Copyright (c) 2000 Curtis Galloway Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SPDX-License-Identifier: MIT This is a loadable module for the AOLserver web server that provides an interface to the EXIF tag parsing library. It adds one Tcl command into the AOLserver Tcl interpreter: ns_exif It returns the ID of an ns_set that contains the tag names and values from the EXIF file. */ #include "ns.h" #include "exif.h" #define BUFSIZE 1024 static void rec_put(Ns_Set *set, exif_record_t *rec) { char buf[BUFSIZE]; char *str = buf; switch (rec->rec_type) { case 's': str = rec->rec_data.s; break; case 'f': snprintf(buf, BUFSIZE, "%f", rec->rec_data.f); break; case 'g': snprintf(buf, BUFSIZE, "%g", rec->rec_data.f); break; case 'l': snprintf(buf, BUFSIZE, "%ld", rec->rec_data.l); break; case 'r': snprintf(buf, BUFSIZE, "%d/%d", rec->rec_data.r.num, rec->rec_data.r.denom); break; default: snprintf(buf, BUFSIZE, "", rec->rec_type); break; } Ns_SetPut(set, rec->rec_name, str); } static int Tcl_ReadExifDataCmd ( ClientData clientData, Tcl_Interp *interp, int argc, char **argv) { exif_data_t *d; int i; Ns_Set *rset; d = exif_parse_file(argv[1]); if (d == NULL) { Tcl_AppendResult(interp, "Could not process file '", argv[1], "'", NULL); return TCL_ERROR; } rset = Ns_SetCreate("exif"); for (i=0; in_recs; i++) { rec_put(rset, &d->recs[i]); } Ns_TclEnterSet(interp, rset, NS_TCL_SET_TEMPORARY | NS_TCL_SET_DYNAMIC); exif_free_data(d); return TCL_OK; } /*---------------------------------------------------------------------- * * Tcl_InitExif -- * * Initialize the Tcl command. * *---------------------------------------------------------------------- */ void Tcl_InitExif (interp) Tcl_Interp *interp; { Tcl_CreateCommand (interp, "ns_exif", Tcl_ReadExifDataCmd, NULL, NULL); } static int nsexif_interp_init (Tcl_Interp *interp, void *dummy) { Tcl_InitExif(interp); return TCL_OK; } int Ns_ModuleInit(char *hServer, char *hModule) { char *configPath; Ns_Log( Notice, "%s module starting", hModule); exif_init((void *(*)(int))Ns_Malloc, (void (*)(void *))Ns_Free, (void *(*)(void *, int))Ns_Realloc); configPath = Ns_ConfigGetPath(hServer, hModule, NULL); /* if (!Ns_ConfigGetBool (configPath, "Debug", &debug_p)) debug_p = DEFAULT_DEBUG; */ Ns_TclInitInterps (hServer, nsexif_interp_init, NULL); return NS_OK; } int Ns_ModuleVersion = 1; libexif-libexif-0_6_25-release/contrib/c++/000077500000000000000000000000001474246475200204555ustar00rootroot00000000000000libexif-libexif-0_6_25-release/contrib/c++/Makefile000066400000000000000000000027301474246475200221170ustar00rootroot00000000000000# SPDX-FileCopyrightText: 2002,2003 Hans Meine # SPDX-License-Identifier: LGPL-2.0-or-later BOOST_PYTHON_LIB = -L/usr/local/boost_1_29_0/lib -lboost_python BOOST_INCLUDES = -I/usr/local/boost_1_29_0/src dynmoddir = `pwd`/local CXX = g++ CXXFLAGS := -O2 -Wall CPPFLAGS := -I/usr/include/python2.2 LIBTOOL = $(SHELL) ./libtool LIBCXX = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) LINKCXX = $(LIBTOOL) --tag=CXX --mode=link $(CXX) LINKCXXLIB = $(LINKCXX) -rpath $(dynmoddir) LINKCXXMODULE = $(LINKCXXLIB) -module -avoid-version LIBINSTALL = $(LIBTOOL) --mode=install /bin/install -c -p INSTALL = /bin/install -c -p TARGET = exif.la OBJS = \ exif_module.lo all: $(TARGET) install: $(TARGET) $(INSTALL) -d $(dynmoddir) $(LIBINSTALL) $(TARGET) $(dynmoddir) $(TARGET): $(OBJS) $(LINKCXXMODULE) -o $(TARGET) $(OBJS) $(BOOST_PYTHON_LIB) -lexif clean:: rm -rf .libs *.o *.so *.lo *.ld $(TARGET) %.o: %.cxx $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $*.cxx %.lo: %.cxx $(LIBCXX) $(CXXFLAGS) $(CPPFLAGS) -c $*.cxx %.d: %.cxx @echo updating header dependencies for $*.cxx @rm -f $*.d @$(CXX) -M $(CXXFLAGS) $(CPPFLAGS) -c $*.cxx | sed "s@$*.o@$*.d $*.o@" > $*.d \ || { rm -f $*.d; exit 1; } %.ld: %.cxx @echo updating header dependencies for $*.cxx @rm -f $*.ld @$(CXX) -M $(CXXFLAGS) $(CPPFLAGS) -c $*.cxx | sed "s@$*.o@$*.ld $*.lo@" > $*.ld \ || { rm -f $*.ld; exit 1; } ifneq "$(MAKECMDGOALS)" "clean" include $(patsubst %.lo, %.ld, $(OBJS)) endif libexif-libexif-0_6_25-release/contrib/c++/exif.hxx000066400000000000000000000344651474246475200221550ustar00rootroot00000000000000/* exif.hxx * * Copyright 2002,2003 Hans Meine * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. * * SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef EXIF_HXX #define EXIF_HXX #include #include #include #include #include #include #include #include namespace Exif { #ifndef EXIF_NO_EXCEPTIONS struct InvalidIndex : std::runtime_error { InvalidIndex(const std::string& s) : std::runtime_error(s) {} }; struct InvalidFormat : std::runtime_error { InvalidFormat(const std::string& s) : std::runtime_error(s) {} }; struct IOError : std::runtime_error { IOError(const std::string& s) : std::runtime_error(s) {} }; #endif // EXIF_NO_EXCEPTIONS struct Entry { ExifEntry *entry_; // construct an empty entry, FIXME: is this needed in the public API? Entry() : entry_(exif_entry_new()) {} // construct an entry for the given tag Entry(ExifTag tag) : entry_(exif_entry_new()) { exif_entry_initialize(entry_, tag); } // copy constructor Entry(Entry const &other) : entry_(other.entry_) { exif_entry_ref(entry_); } // internal, do not use directly Entry(ExifEntry *entry) : entry_(entry) { exif_entry_ref(entry_); } ~Entry() { exif_entry_unref(entry_); } Entry &operator=(Entry const &other) { exif_entry_unref(entry_); entry_ = other.entry_; exif_entry_ref(entry_); return *this; } ExifTag tag() const { return entry_->tag; } /* void setTag(ExifTag tag) { entry_->tag = tag; } */ ExifFormat format() const { return entry_->format; } /* void setFormat(ExifFormat format) { entry_->format = format; } */ unsigned long components() const { return entry_->components; } /* void setComponents(unsigned long components) { entry_->components = components; } void initialize(ExifTag tag) { exif_entry_initialize(entry_, tag); } */ ExifByte getByte(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_BYTE) throw InvalidFormat( "Exif::Entry::getByte(): Format is not EXIF_FORMAT_BYTE"); if(index >= components()) throw InvalidIndex( "Exif::getByte: component index out of range"); #endif return *(entry_->data + index * exif_format_get_size(entry_->format)); } const ExifAscii getAscii() const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_ASCII) throw InvalidFormat( "Exif::Entry::getAscii(): Format is not EXIF_FORMAT_ASCII"); #endif return (ExifAscii)entry_->data; } ExifShort getShort(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SHORT) throw InvalidFormat( "Exif::Entry::getShort(): Format is not EXIF_FORMAT_SHORT"); if(index >= components()) throw InvalidIndex( "Exif::getShort: component index out of range"); #endif return exif_get_short(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent)); } ExifLong getLong(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_LONG) throw InvalidFormat( "Exif::Entry::getLong(): Format is not EXIF_FORMAT_LONG"); if(index >= components()) throw InvalidIndex( "Exif::getLong: component index out of range"); #endif return exif_get_long(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent)); } ExifSLong getSLong(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SLONG) throw InvalidFormat( "Exif::Entry::getSLong(): Format is not EXIF_FORMAT_SLONG"); if(index >= components()) throw InvalidIndex( "Exif::getSLong: component index out of range"); #endif return exif_get_slong(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent)); } ExifRational getRational(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_RATIONAL) throw InvalidFormat( "Exif::Entry::getRational(): Format is not EXIF_FORMAT_RATIONAL"); if(index >= components()) throw InvalidIndex( "Exif::getRational: component index out of range"); #endif return exif_get_rational(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent)); } ExifSRational getSRational(unsigned int index) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SRATIONAL) throw InvalidFormat( "Exif::Entry::getSRational(): Format is not EXIF_FORMAT_SRATIONAL"); if(index >= components()) throw InvalidIndex( "Exif::getSRational: component index out of range"); #endif return exif_get_srational(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent)); } void setByte(unsigned int index, ExifByte value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_BYTE) throw InvalidFormat( "Exif::Entry::setByte(): Format is not EXIF_FORMAT_BYTE"); if(index >= components()) throw InvalidIndex( "Exif::setByte: component index out of range"); #endif *(entry_->data + index * exif_format_get_size(entry_->format)) = value; } /* const ExifAscii setAscii() const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_ASCII) throw InvalidFormat( "Exif::Entry::setAscii(): Format is not EXIF_FORMAT_ASCII"); #endif return (ExifAscii)entry_->data; } */ void setShort(unsigned int index, ExifShort value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SHORT) throw InvalidFormat( "Exif::Entry::setShort(): Format is not EXIF_FORMAT_SHORT"); if(index >= components()) throw InvalidIndex( "Exif::setShort: component index out of range"); #endif return exif_set_short(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent), value); } void setLong(unsigned int index, ExifLong value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_LONG) throw InvalidFormat( "Exif::Entry::setLong(): Format is not EXIF_FORMAT_LONG"); if(index >= components()) throw InvalidIndex( "Exif::setLong: component index out of range"); #endif return exif_set_long(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent), value); } void setSLong(unsigned int index, ExifSLong value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SLONG) throw InvalidFormat( "Exif::Entry::setSLong(): Format is not EXIF_FORMAT_SLONG"); if(index >= components()) throw InvalidIndex( "Exif::setSLong: component index out of range"); #endif return exif_set_slong(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent), value); } void setRational(unsigned int index, ExifRational value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_RATIONAL) throw InvalidFormat( "Exif::Entry::setRational(): Format is not EXIF_FORMAT_RATIONAL"); if(index >= components()) throw InvalidIndex( "Exif::setRational: component index out of range"); #endif return exif_set_rational(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent), value); } void setSRational(unsigned int index, ExifSRational value) const { #ifndef EXIF_NO_EXCEPTIONS if(entry_->format != EXIF_FORMAT_SRATIONAL) throw InvalidFormat( "Exif::Entry::setSRational(): Format is not EXIF_FORMAT_SRATIONAL"); if(index >= components()) throw InvalidIndex( "Exif::setSRational: component index out of range"); #endif return exif_set_srational(entry_->data + index * exif_format_get_size(entry_->format), exif_data_get_byte_order(entry_->parent->parent), value); } const char *value() { return exif_entry_get_value(entry_); } const char *briefValue() { return exif_entry_get_value_brief(entry_); } void dump(unsigned int indent = 0) const { exif_entry_dump(entry_, indent); } }; struct Content { ExifContent *content_; Content() : content_(exif_content_new()) {} Content(Content const &other) : content_(other.content_) { exif_content_ref(content_); } // internal, do not use directly Content(ExifContent *content) : content_(content) { exif_content_ref(content_); } ~Content() { exif_content_unref(content_); } Content &operator=(Content const &other) { exif_content_unref(content_); content_ = other.content_; exif_content_ref(content_); return *this; } Entry operator[](ExifTag tag) { ExifEntry *result = exif_content_get_entry(content_, tag); if(result) return Entry(result); #ifndef EXIF_NO_EXCEPTIONS throw InvalidIndex( "Exif::Content: IFD does not contain given tag"); #endif return Entry(); } Entry operator[](unsigned int index) { if(index < size()) return Entry(content_->entries[index]); #ifndef EXIF_NO_EXCEPTIONS throw InvalidIndex( "Exif::Content: numeric entry index out of range"); #endif // EXIF_NO_EXCEPTIONS return Entry(); } unsigned int size() const { // FIXME: content_ should never be NULL, so this is unneeded!? return content_ ? content_->count : 0; } void add(Entry &entry) { exif_content_add_entry(content_, entry.entry_); } void remove(Entry &entry) { exif_content_remove_entry(content_, entry.entry_); } // for your convenience const char *value(ExifTag tag) { return exif_content_get_value(content_, tag); } // for your convenience const char *briefValue(ExifTag tag) { return exif_content_get_value_brief(content_, tag); } void dump(unsigned int indent = 0) const { exif_content_dump(content_, indent); } }; struct Data { ExifData *data_; Data() : data_(exif_data_new()) {} Data(const char *path, bool *success = 0) : data_(exif_data_new_from_file(path)) { if(success) *success = data_; #ifndef EXIF_NO_EXCEPTIONS else if(!data_) throw IOError("Exif::Data: Could not load file"); #endif // EXIF_NO_EXCEPTIONS if(!data_) exif_data_new(); } Data(const unsigned char *data, unsigned int size) : data_(exif_data_new_from_data(data, size)) {} Data(Data const &other) : data_(other.data_) { exif_data_ref(data_); } ~Data() { exif_data_unref(data_); } Data &operator=(Data const &other) { exif_data_unref(data_); data_ = other.data_; exif_data_ref(data_); return *this; } void save(unsigned char **d, unsigned int *size) { exif_data_save_data(data_, d, size); } unsigned int size() const { return EXIF_IFD_COUNT; } Content operator[](unsigned int index) { if(index < size()) return Content(data_->ifd[index]); #ifndef EXIF_NO_EXCEPTIONS throw InvalidIndex( "Exif::Data: IFD index out of range"); #endif // EXIF_NO_EXCEPTIONS return Content(); } ExifByteOrder byteOrder() const { return exif_data_get_byte_order(data_); } void setByteOrder(ExifByteOrder bo) const { exif_data_set_byte_order(data_, bo); } void dump() { exif_data_dump(data_); } }; } // namespace Exif #endif // EXIF_HXX libexif-libexif-0_6_25-release/contrib/c++/exif_module.cxx000066400000000000000000000425221474246475200235060ustar00rootroot00000000000000/* exif-content.c * * Copyright 2002,2003 Hans Meine * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA. * * SPDX-License-Identifier: LGPL-2.0-or-later */ #include "exif.hxx" #include #include #include #include using namespace boost::python; template struct WrappedObjectIterator { //typedef Wrapper value_type; Pointer *it_, *end_; WrappedObjectIterator(Pointer *it, Pointer *end) : it_(it), end_(end) {} Wrapper next() { if(it_ == end_) { PyErr_SetString(PyExc_StopIteration, "iterator exhausted"); throw_error_already_set(); } return Wrapper(*it_++); } }; struct PythonEntry : public Exif::Entry { PythonEntry() {} PythonEntry(Exif::Entry const &other) : Exif::Entry(other) {} object component(long index) const { switch(format()) { case EXIF_FORMAT_BYTE: return object(getByte(index)); case EXIF_FORMAT_SHORT: return object(getShort(index)); case EXIF_FORMAT_LONG: return object(getLong(index)); case EXIF_FORMAT_SLONG: return object(getSLong(index)); case EXIF_FORMAT_RATIONAL: return object(getRational(index)); case EXIF_FORMAT_SRATIONAL: return object(getSRational(index)); case EXIF_FORMAT_ASCII: //std::cerr << "returning " << entry_->size << " bytes of data..\n"; //std::cerr << " (copied into " << std::string((char *)data, entry_->size).size() << "-character string)\n"; return object(std::string((char *)entry_->data, entry_->size)); default: break; } return object(); } object data() const { if((format() == EXIF_FORMAT_ASCII) || (components()==1)) return component(0); else { list result; for(unsigned int i=0; i Type extractComponent(unsigned int index, object value, const char *errorString) { extract extr(value); if(!extr.check()) { PyErr_SetString(PyExc_TypeError, errorString); throw_error_already_set(); } return extr(); } void setComponent(unsigned int index, object value) { unsigned char *data= entry_->data + index * exif_format_get_size(format()); ExifByteOrder bo = exif_data_get_byte_order(entry_->parent->parent); switch(format()) { case EXIF_FORMAT_BYTE: *data= extractComponent(index, value, "invalid assignment to data: could not convert value to byte format"); break; case EXIF_FORMAT_SHORT: exif_set_short(data, bo, extractComponent(index, value, "invalid assignment to data: could not convert value to short format")); break; case EXIF_FORMAT_LONG: exif_set_long(data, bo, extractComponent(index, value, "invalid assignment to data: could not convert value to long format")); break; case EXIF_FORMAT_SLONG: exif_set_slong(data, bo, extractComponent(index, value, "invalid assignment to data: could not convert value to signed long format")); break; case EXIF_FORMAT_RATIONAL: exif_set_rational(data, bo, extractComponent(index, value, "invalid assignment to data: could not convert value to rational format (2-tuple expected)")); break; case EXIF_FORMAT_SRATIONAL: exif_set_srational(data, bo, extractComponent(index, value, "invalid assignment to data: could not convert value to signed rational format (2-tuple expected)")); break; case EXIF_FORMAT_ASCII: // handled in setData directly case EXIF_FORMAT_UNDEFINED: break; } return; } void setData(object data) { if(format() == EXIF_FORMAT_ASCII) { extract xstr(data); if(xstr.check()) { std::string s= xstr(); if(entry_->data) free(entry_->data); entry_->components= s.size(); //std::cerr << "assigning " << s.size() << "-character string..\n"; entry_->size= exif_format_get_size(format()) * entry_->components; entry_->data= (unsigned char *)calloc(entry_->size+1,1); memcpy(entry_->data, s.data(), entry_->size); } else { PyErr_SetString(PyExc_TypeError, "invalid assignment to data of ASCII format entry: string expected"); throw_error_already_set(); } } else { if(components()==1) setComponent(0, data); else { extract xlist(data); if(xlist.check()) { list l= xlist(); for(unsigned i=0; i iterator; PythonContent() {} PythonContent(Exif::Content const &other) : Exif::Content(other) {} PythonEntry entry(object index) { // TODO: use Exif::Content::entry() functions extract xtag(index); if(xtag.check()) { ExifTag index= xtag(); for(unsigned int i=0; ientries[i]->tag == index) return Exif::Entry(content_->entries[i]); } PyErr_SetString(PyExc_KeyError, "tag not present in IFD content"); throw_error_already_set(); } extract xint(index); if(xint.check()) { int index= xint(); if((index>=0) && (index<(long)size())) return Exif::Entry(content_->entries[index]); if((index<0) && (index>=-(long)size())) return Exif::Entry(content_->entries[size()+index]); PyErr_SetString(PyExc_IndexError, "invalid integer index into IFD content"); throw_error_already_set(); } PyErr_SetString(PyExc_TypeError, "invalid index into EXIF data (integer or IFD expected)"); throw_error_already_set(); return Exif::Entry(); // never reached } iterator __iter__() { // FIXME: the public API is exif_content_foreach, // relying on memory layout here! return iterator(content_->entries, content_->entries + content_->count); } }; struct PythonData : public Exif::Data { typedef WrappedObjectIterator iterator; bool success_; PythonData() {} PythonData(const char *path) : Exif::Data(path, &success_) { if(!success_) { PyErr_SetFromErrno(PyExc_IOError); //PyErr_SetString(PyExc_IOError, ""); throw_error_already_set(); } } PythonData(const unsigned char *data, unsigned int size) : Exif::Data(data, size) {} PythonData(Exif::Data const &other) : Exif::Data(other) {} PythonContent ifdContent(object index) { extract xifd(index); if(xifd.check()) { ExifIfd index= xifd(); if(indexifd[index]); PyErr_SetString(PyExc_IndexError, "invalid IFD index into EXIF data"); throw_error_already_set(); } extract xint(index); if(xint.check()) { int index= xint(); if((index>=0) && (index<(long)size())) return Exif::Content(data_->ifd[index]); if((index<0) && (index>=-(long)size())) return Exif::Content(data_->ifd[size()+index]); PyErr_SetString(PyExc_IndexError, "invalid integer index into EXIF data"); throw_error_already_set(); } PyErr_SetString(PyExc_TypeError, "invalid index into EXIF data (integer or IFD expected)"); throw_error_already_set(); return Exif::Content(); // never reached } iterator __iter__() { return iterator(data_->ifd, data_->ifd + EXIF_IFD_COUNT); } }; template struct RationalConverter { RationalConverter() { converter::registry::insert(&convertible, &construct, type_id()); } static void* convertible(PyObject* obj) { extract xtup(obj); if(xtup.check()) { tuple t= xtup(); if((t.attr("__len__")() == 2) && extract(t[0]).check() && extract(t[1]).check()) { Rational *result = new Rational; result->numerator = extract(t[0])(); result->denominator = extract(t[1])(); return result; } } return NULL; } static void construct(PyObject* obj, converter::rvalue_from_python_stage1_data* data) { Rational const* r = static_cast(data->convertible); void* storage = ((converter::rvalue_from_python_storage*)data)->storage.bytes; new (storage) Rational(); ((Rational*)storage)->numerator = r->numerator; ((Rational*)storage)->denominator = r->denominator; data->convertible = storage; delete r; } static PyObject *convert(Rational r) { tuple t= make_tuple(r.numerator, r.denominator); PyObject *result= t.ptr(); Py_INCREF(result); return result; } }; BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(entrydumps, Exif::Entry::dump, 0, 1) BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(contentdumps, Exif::Content::dump, 0, 1) BOOST_PYTHON_MODULE(exif) { RationalConverter(); RationalConverter(); to_python_converter >(); to_python_converter >(); enum_("ByteOrder") .value("MOTOROLA", EXIF_BYTE_ORDER_MOTOROLA) .value("INTEL", EXIF_BYTE_ORDER_INTEL); def("name", &exif_byte_order_get_name); enum_("IFD") .value("ZERO", EXIF_IFD_0) .value("ONE", EXIF_IFD_1) .value("EXIF", EXIF_IFD_EXIF) .value("GPS", EXIF_IFD_GPS) .value("INTEROPERABILITY", EXIF_IFD_INTEROPERABILITY); //.value("COUNT", EXIF_IFD_COUNT) def("name", &exif_ifd_get_name); enum_("Format") .value("BYTE", EXIF_FORMAT_BYTE) .value("ASCII", EXIF_FORMAT_ASCII) .value("SHORT", EXIF_FORMAT_SHORT) .value("LONG", EXIF_FORMAT_LONG) .value("RATIONAL", EXIF_FORMAT_RATIONAL) .value("UNDEFINED", EXIF_FORMAT_UNDEFINED) .value("SLONG", EXIF_FORMAT_SLONG) .value("SRATIONAL", EXIF_FORMAT_SRATIONAL); def("name", &exif_format_get_name); def("size", &exif_format_get_size); enum_("Tag") .value("INTEROPERABILITY_INDEX", EXIF_TAG_INTEROPERABILITY_INDEX) .value("INTEROPERABILITY_VERSION", EXIF_TAG_INTEROPERABILITY_VERSION) .value("IMAGE_WIDTH", EXIF_TAG_IMAGE_WIDTH) .value("IMAGE_LENGTH", EXIF_TAG_IMAGE_LENGTH) .value("BITS_PER_SAMPLE", EXIF_TAG_BITS_PER_SAMPLE) .value("COMPRESSION", EXIF_TAG_COMPRESSION) .value("PHOTOMETRIC_INTERPRETATION", EXIF_TAG_PHOTOMETRIC_INTERPRETATION) .value("FILL_ORDER", EXIF_TAG_FILL_ORDER) .value("DOCUMENT_NAME", EXIF_TAG_DOCUMENT_NAME) .value("IMAGE_DESCRIPTION", EXIF_TAG_IMAGE_DESCRIPTION) .value("MAKE", EXIF_TAG_MAKE) .value("MODEL", EXIF_TAG_MODEL) .value("STRIP_OFFSETS", EXIF_TAG_STRIP_OFFSETS) .value("ORIENTATION", EXIF_TAG_ORIENTATION) .value("SAMPLES_PER_PIXEL", EXIF_TAG_SAMPLES_PER_PIXEL) .value("ROWS_PER_STRIP", EXIF_TAG_ROWS_PER_STRIP) .value("STRIP_BYTE_COUNTS", EXIF_TAG_STRIP_BYTE_COUNTS) .value("X_RESOLUTION", EXIF_TAG_X_RESOLUTION) .value("Y_RESOLUTION", EXIF_TAG_Y_RESOLUTION) .value("PLANAR_CONFIGURATION", EXIF_TAG_PLANAR_CONFIGURATION) .value("RESOLUTION_UNIT", EXIF_TAG_RESOLUTION_UNIT) .value("TRANSFER_FUNCTION", EXIF_TAG_TRANSFER_FUNCTION) .value("SOFTWARE", EXIF_TAG_SOFTWARE) .value("DATE_TIME", EXIF_TAG_DATE_TIME) .value("ARTIST", EXIF_TAG_ARTIST) .value("WHITE_POINT", EXIF_TAG_WHITE_POINT) .value("PRIMARY_CHROMATICITIES", EXIF_TAG_PRIMARY_CHROMATICITIES) .value("TRANSFER_RANGE", EXIF_TAG_TRANSFER_RANGE) .value("JPEG_PROC", EXIF_TAG_JPEG_PROC) .value("JPEG_INTERCHANGE_FORMAT", EXIF_TAG_JPEG_INTERCHANGE_FORMAT) .value("JPEG_INTERCHANGE_FORMAT_LENGTH", EXIF_TAG_JPEG_INTERCHANGE_FORMAT_LENGTH) .value("YCBCR_COEFFICIENTS", EXIF_TAG_YCBCR_COEFFICIENTS) .value("YCBCR_SUB_SAMPLING", EXIF_TAG_YCBCR_SUB_SAMPLING) .value("YCBCR_POSITIONING", EXIF_TAG_YCBCR_POSITIONING) .value("REFERENCE_BLACK_WHITE", EXIF_TAG_REFERENCE_BLACK_WHITE) .value("RELATED_IMAGE_FILE_FORMAT", EXIF_TAG_RELATED_IMAGE_FILE_FORMAT) .value("RELATED_IMAGE_WIDTH", EXIF_TAG_RELATED_IMAGE_WIDTH) .value("RELATED_IMAGE_LENGTH", EXIF_TAG_RELATED_IMAGE_LENGTH) .value("CFA_REPEAT_PATTERN_DIM", EXIF_TAG_CFA_REPEAT_PATTERN_DIM) .value("CFA_PATTERN", EXIF_TAG_CFA_PATTERN) .value("BATTERY_LEVEL", EXIF_TAG_BATTERY_LEVEL) .value("COPYRIGHT", EXIF_TAG_COPYRIGHT) .value("EXPOSURE_TIME", EXIF_TAG_EXPOSURE_TIME) .value("FNUMBER", EXIF_TAG_FNUMBER) .value("IPTC_NAA", EXIF_TAG_IPTC_NAA) .value("EXIF_IFD_POINTER", EXIF_TAG_EXIF_IFD_POINTER) .value("INTER_COLOR_PROFILE", EXIF_TAG_INTER_COLOR_PROFILE) .value("EXPOSURE_PROGRAM", EXIF_TAG_EXPOSURE_PROGRAM) .value("SPECTRAL_SENSITIVITY", EXIF_TAG_SPECTRAL_SENSITIVITY) .value("GPS_INFO_IFD_POINTER", EXIF_TAG_GPS_INFO_IFD_POINTER) .value("ISO_SPEED_RATINGS", EXIF_TAG_ISO_SPEED_RATINGS) .value("OECF", EXIF_TAG_OECF) .value("EXIF_VERSION", EXIF_TAG_EXIF_VERSION) .value("DATE_TIME_ORIGINAL", EXIF_TAG_DATE_TIME_ORIGINAL) .value("DATE_TIME_DIGITIZED", EXIF_TAG_DATE_TIME_DIGITIZED) .value("COMPONENTS_CONFIGURATION", EXIF_TAG_COMPONENTS_CONFIGURATION) .value("COMPRESSED_BITS_PER_PIXEL", EXIF_TAG_COMPRESSED_BITS_PER_PIXEL) .value("SHUTTER_SPEED_VALUE", EXIF_TAG_SHUTTER_SPEED_VALUE) .value("APERTURE_VALUE", EXIF_TAG_APERTURE_VALUE) .value("BRIGHTNESS_VALUE", EXIF_TAG_BRIGHTNESS_VALUE) .value("EXPOSURE_BIAS_VALUE", EXIF_TAG_EXPOSURE_BIAS_VALUE) .value("MAX_APERTURE_VALUE", EXIF_TAG_MAX_APERTURE_VALUE) .value("SUBJECT_DISTANCE", EXIF_TAG_SUBJECT_DISTANCE) .value("METERING_MODE", EXIF_TAG_METERING_MODE) .value("LIGHT_SOURCE", EXIF_TAG_LIGHT_SOURCE) .value("FLASH", EXIF_TAG_FLASH) .value("FOCAL_LENGTH", EXIF_TAG_FOCAL_LENGTH) .value("SUBJECT_AREA", EXIF_TAG_SUBJECT_AREA) .value("MAKER_NOTE", EXIF_TAG_MAKER_NOTE) .value("USER_COMMENT", EXIF_TAG_USER_COMMENT) .value("SUBSEC_TIME", EXIF_TAG_SUBSEC_TIME) .value("SUB_SEC_TIME_ORIGINAL", EXIF_TAG_SUB_SEC_TIME_ORIGINAL) .value("SUB_SEC_TIME_DIGITIZED", EXIF_TAG_SUB_SEC_TIME_DIGITIZED) .value("FLASH_PIX_VERSION", EXIF_TAG_FLASH_PIX_VERSION) .value("COLOR_SPACE", EXIF_TAG_COLOR_SPACE) .value("PIXEL_X_DIMENSION", EXIF_TAG_PIXEL_X_DIMENSION) .value("PIXEL_Y_DIMENSION", EXIF_TAG_PIXEL_Y_DIMENSION) .value("RELATED_SOUND_FILE", EXIF_TAG_RELATED_SOUND_FILE) .value("INTEROPERABILITY_IFD_POINTER", EXIF_TAG_INTEROPERABILITY_IFD_POINTER) .value("FLASH_ENERGY", EXIF_TAG_FLASH_ENERGY) .value("SPATIAL_FREQUENCY_RESPONSE", EXIF_TAG_SPATIAL_FREQUENCY_RESPONSE) .value("FOCAL_PLANE_X_RESOLUTION", EXIF_TAG_FOCAL_PLANE_X_RESOLUTION) .value("FOCAL_PLANE_Y_RESOLUTION", EXIF_TAG_FOCAL_PLANE_Y_RESOLUTION) .value("FOCAL_PLANE_RESOLUTION_UNIT", EXIF_TAG_FOCAL_PLANE_RESOLUTION_UNIT) .value("SUBJECT_LOCATION", EXIF_TAG_SUBJECT_LOCATION) .value("EXPOSURE_INDEX", EXIF_TAG_EXPOSURE_INDEX) .value("SENSING_METHOD", EXIF_TAG_SENSING_METHOD) .value("FILE_SOURCE", EXIF_TAG_FILE_SOURCE) .value("SCENE_TYPE", EXIF_TAG_SCENE_TYPE) .value("NEW_CFA_PATTERN", EXIF_TAG_NEW_CFA_PATTERN) .value("CUSTOM_RENDERED", EXIF_TAG_CUSTOM_RENDERED) .value("EXPOSURE_MODE", EXIF_TAG_EXPOSURE_MODE) .value("WHITE_BALANCE", EXIF_TAG_WHITE_BALANCE) .value("DIGITAL_ZOOM_RATIO", EXIF_TAG_DIGITAL_ZOOM_RATIO) .value("FOCAL_LENGTH_IN_35MM_FILM", EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM) .value("SCENE_CAPTURE_TYPE", EXIF_TAG_SCENE_CAPTURE_TYPE) .value("GAIN_CONTROL", EXIF_TAG_GAIN_CONTROL) .value("CONTRAST", EXIF_TAG_CONTRAST) .value("SATURATION", EXIF_TAG_SATURATION) .value("SHARPNESS", EXIF_TAG_SHARPNESS) .value("DEVICE_SETTING_DESCRIPTION", EXIF_TAG_DEVICE_SETTING_DESCRIPTION) .value("SUBJECT_DISTANCE_RANGE", EXIF_TAG_SUBJECT_DISTANCE_RANGE) .value("IMAGE_UNIQUE_ID", EXIF_TAG_IMAGE_UNIQUE_ID); def("name", &exif_tag_get_name); def("title", &exif_tag_get_title); def("description", &exif_tag_get_description); class_("Entry") .add_property("tag", &Exif::Entry::tag) .add_property("format", &Exif::Entry::format) .add_property("components", &Exif::Entry::components) .add_property("data", &PythonEntry::data, &PythonEntry::setData) .def("value", &Exif::Entry::value) .def("briefValue", &Exif::Entry::briefValue) .def("dump", &Exif::Entry::dump);//, entrydumps()); class_("ContentIterator", no_init) .def("next", &PythonContent::iterator::next); class_("Content") .def("__len__", &Exif::Content::size) .def("__getitem__", &PythonContent::entry) .def("__iter__", &PythonContent::__iter__) .def("dump", &Exif::Content::dump);//, contentdumps()); class_("DataIterator", no_init) .def("next", &PythonData::iterator::next); class_("Data") .def(init()) .def(init()) .def("__len__", &Exif::Data::size) .def("__getitem__", &PythonData::ifdContent) .def("__iter__", &PythonData::__iter__) .def("byteOrder", &Exif::Data::byteOrder) .def("dump", &Exif::Data::dump); } libexif-libexif-0_6_25-release/contrib/examples/000077500000000000000000000000001474246475200217235ustar00rootroot00000000000000libexif-libexif-0_6_25-release/contrib/examples/.gitignore000066400000000000000000000000251474246475200237100ustar00rootroot00000000000000Makefile Makefile.in libexif-libexif-0_6_25-release/contrib/examples/Makefile.am000066400000000000000000000007251474246475200237630ustar00rootroot00000000000000# Simple example programs # # Copyright (C) 2008-2009 Dan Fandrich # SPDX-License-Identifier: LGPL-2.0-or-later check_PROGRAMS = photographer thumbnail write-exif # Example programs with dependencies other than plain libexif COMPLICATED_EXAMPLES = cam_features.c # Build just the simple examples as a sanity check, but include them all in # the source archive EXTRA_DIST = $(COMPLICATED_EXAMPLES) LDADD = $(top_builddir)/libexif/libexif.la libexif-libexif-0_6_25-release/contrib/examples/cam_features.c000066400000000000000000000123531474246475200245310ustar00rootroot00000000000000/*************************************************************************** * cam_features.c * * Wed Jul 27 11:25:09 2005 * Copyright 2005 User: Naysawn Naderi * Email: ndn at xiphos dot ca * SPDX-License-Identifier: BSD-3-Clause * * Uses libdc1394 and libraw1394 ****************************************************************************/ #include #include #include #include #include #include #include #include //EXIF includes #include #include #include // Part of the exif command-line source package #include "libjpeg/jpeg-data.h" #define FILENAME "test.jpg" static int createEXIF(dc1394featureset_t *xFeatures, ExifData ** pParentEd); int main(int argc, char *argv[]) { dc1394camera_t *pCamera, **pCameras=NULL; int iNumCameras; dc1394featureset_t xFeatures; int i; int err=dc1394_find_cameras(&pCameras, &iNumCameras); //EXIF STUFF JPEGData *pData; //float fOnefloat; ExifData * pEd; if (err!=DC1394_SUCCESS) { fprintf( stderr, "Unable to look for cameras\n\n" "Please check \n" " - if the kernel modules `ieee1394',`raw1394' and `ohci1394' are loaded \n" " - if you have read/write access to /dev/raw1394\n\n"); exit(1); } /*----------------------------------------------------------------------- * Initialize the camera *-----------------------------------------------------------------------*/ if (iNumCameras<1) { fprintf(stderr, "no cameras found :(\n"); exit(1); } pCamera=pCameras[0]; for (i=1;ifeature[DC1394_FEATURE_WHITE_BALANCE - DC1394_FEATURE_MIN].auto_active; ExifSRational xR = {xFeatures->feature[DC1394_FEATURE_BRIGHTNESS - DC1394_FEATURE_MIN].value, xFeatures->feature[DC1394_FEATURE_BRIGHTNESS - DC1394_FEATURE_MIN].max}; printf ("Creating EXIF data...\n"); pEd = exif_data_new (); /* Things to tag: EXIF_TAG_MAKE = 0x010f, EXIF_TAG_MODEL = 0x0110, EXIF_TAG_EXPOSURE_TIME = 0x829a, EXIF_TAG_BRIGHTNESS_VALUE = 0x9203, EXIF_TAG_WHITE_BALANCE = 0xa403, EXIF_TAG_GAIN_CONTROL = 0xa407, EXIF_TAG_CONTRAST = 0xa408, EXIF_TAG_SATURATION = 0xa409, EXIF_TAG_SHARPNESS = 0xa40a, EXIF_TAG_USER_COMMENT */ printf ("Adding a Make reference\n"); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_MAKE); pE->data="AVT"; exif_entry_unref (pE); printf ("Adding a Model reference\n"); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_MODEL); pE->data="510c"; exif_entry_unref (pE); printf ("Adding a Tag to reference # samples per pixel\n"); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_SAMPLES_PER_PIXEL); //by default is 3 exif_entry_unref (pE); printf ("Adding a White Balance Reference\n"); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_WHITE_BALANCE); exif_set_short(pE->data, exif_data_get_byte_order (pEd), i); //0=auto white balance, 1 = manual white balance exif_entry_unref (pE); //need to create logic according to the value of the sharpness printf ("Adding a Sharpness Reference\n"); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_SHARPNESS); exif_set_short(pE->data, exif_data_get_byte_order (pEd), 0); exif_entry_unref (pE); printf ("Adding a Brightness reference\n"); //try to get brightness //printf("Float Value: %i\n",xFeatures->feature[DC1394_FEATURE_BRIGHTNESS - DC1394_FEATURE_MIN].value); pE = exif_entry_new (); exif_content_add_entry (pEd->ifd[EXIF_IFD_0], pE); exif_entry_initialize (pE, EXIF_TAG_BRIGHTNESS_VALUE); exif_set_srational (pE->data, exif_data_get_byte_order (pEd), xR); //exif_data_dump (ed); //exif_data_dump (pEd); *pParentEd = pEd; printf("Done!\n"); return 0; } libexif-libexif-0_6_25-release/contrib/examples/photographer.c000066400000000000000000000074471474246475200246050ustar00rootroot00000000000000/* * libexif example program to display the contents of a number of specific * EXIF and MakerNote tags. The tags selected are those that may aid in * identification of the photographer who took the image. * * SPDX-FileCopyrightText: Placed into the public domain by Dan Fandrich * SPDX-License-Identifier: CC0-1.0 */ #include #include #include /* Remove spaces on the right of the string */ static void trim_spaces(char *buf) { char *s = buf-1; for (; *buf; ++buf) { if (*buf != ' ') s = buf; } *++s = 0; /* nul terminate the string on the first of the final spaces */ } /* Show the tag name and contents if the tag exists */ static void show_tag(ExifData *d, ExifIfd ifd, ExifTag tag) { /* See if this tag exists */ ExifEntry *entry = exif_content_get_entry(d->ifd[ifd],tag); if (entry) { char buf[1024]; /* Get the contents of the tag in human-readable form */ exif_entry_get_value(entry, buf, sizeof(buf)); /* Don't bother printing it if it's entirely blank */ trim_spaces(buf); if (*buf) { printf("%s: %s\n", exif_tag_get_name_in_ifd(tag,ifd), buf); } } } /* Show the given MakerNote tag if it exists */ static void show_mnote_tag(ExifData *d, unsigned tag) { ExifMnoteData *mn = exif_data_get_mnote_data(d); if (mn) { int num = exif_mnote_data_count(mn); int i; /* Loop through all MakerNote tags, searching for the desired one */ for (i=0; i < num; ++i) { char buf[1024]; if (exif_mnote_data_get_id(mn, i) == tag) { if (exif_mnote_data_get_value(mn, i, buf, sizeof(buf))) { /* Don't bother printing it if it's entirely blank */ trim_spaces(buf); if (*buf) { printf("%s: %s\n", exif_mnote_data_get_title(mn, i), buf); } } } } } } int main(int argc, char **argv) { ExifData *ed; ExifEntry *entry; if (argc < 2) { printf("Usage: %s image.jpg\n", argv[0]); printf("Displays tags potentially relating to ownership " "of the image.\n"); return 1; } /* Load an ExifData object from an EXIF file */ ed = exif_data_new_from_file(argv[1]); if (!ed) { printf("File not readable or no EXIF data in file %s\n", argv[1]); return 2; } /* Show all the tags that might contain information about the * photographer */ show_tag(ed, EXIF_IFD_0, EXIF_TAG_ARTIST); show_tag(ed, EXIF_IFD_0, EXIF_TAG_XP_AUTHOR); show_tag(ed, EXIF_IFD_0, EXIF_TAG_COPYRIGHT); /* These are much less likely to be useful */ show_tag(ed, EXIF_IFD_EXIF, EXIF_TAG_USER_COMMENT); show_tag(ed, EXIF_IFD_0, EXIF_TAG_IMAGE_DESCRIPTION); show_tag(ed, EXIF_IFD_1, EXIF_TAG_IMAGE_DESCRIPTION); /* A couple of MakerNote tags can contain useful data. Read the * manufacturer tag to see if this image could have one of the recognized * MakerNote tags. */ entry = exif_content_get_entry(ed->ifd[EXIF_IFD_0], EXIF_TAG_MAKE); if (entry) { char buf[64]; /* Get the contents of the manufacturer tag as a string */ if (exif_entry_get_value(entry, buf, sizeof(buf))) { trim_spaces(buf); if (!strcmp(buf, "Canon")) { show_mnote_tag(ed, 9); /* MNOTE_CANON_TAG_OWNER */ } else if (!strcmp(buf, "Asahi Optical Co.,Ltd.") || !strcmp(buf, "PENTAX Corporation")) { show_mnote_tag(ed, 0x23); /* MNOTE_PENTAX2_TAG_HOMETOWN_CITY */ } } } /* Free the EXIF data */ exif_data_unref(ed); return 0; } libexif-libexif-0_6_25-release/contrib/examples/thumbnail.c000066400000000000000000000036531474246475200240610ustar00rootroot00000000000000/* * libexif example program to extract an EXIF thumbnail from an image * and save it into a new file. * * SPDX-FileCopyrightText: Placed into the public domain by Dan Fandrich * SPDX-License-Identifier: CC0-1.0 */ #include #include int main(int argc, char **argv) { int rc = 1; ExifLoader *l; if (argc < 2) { printf("Usage: %s image.jpg\n", argv[0]); printf("Extracts a thumbnail from the given EXIF image.\n"); return rc; } /* Create an ExifLoader object to manage the EXIF loading process */ l = exif_loader_new(); if (l) { ExifData *ed; /* Load the EXIF data from the image file */ exif_loader_write_file(l, argv[1]); /* Get a pointer to the EXIF data */ ed = exif_loader_get_data(l); /* The loader is no longer needed--free it */ exif_loader_unref(l); l = NULL; if (ed) { /* Make sure the image had a thumbnail before trying to write it */ if (ed->data && ed->size) { FILE *thumb; char thumb_name[1024]; /* Try to create a unique name for the thumbnail file */ snprintf(thumb_name, sizeof(thumb_name), "%s_thumb.jpg", argv[1]); thumb = fopen(thumb_name, "wb"); if (thumb) { /* Write the thumbnail image to the file */ fwrite(ed->data, 1, ed->size, thumb); fclose(thumb); printf("Wrote thumbnail to %s\n", thumb_name); rc = 0; } else { printf("Could not create file %s\n", thumb_name); rc = 2; } } else { printf("No EXIF thumbnail in file %s\n", argv[1]); rc = 1; } /* Free the EXIF data */ exif_data_unref(ed); } } return rc; } libexif-libexif-0_6_25-release/contrib/examples/write-exif.c000066400000000000000000000307411474246475200241570ustar00rootroot00000000000000/* * write-exif.c * * Create a new EXIF data block and write it into a JPEG image file. * * The JPEG image data used in this example is fixed and is guaranteed not * to contain an EXIF tag block already, so it is easy to precompute where * in the file the EXIF data should be. In real life, a library like * libjpeg (included with the exif command-line tool source code) would * be used to write to an existing JPEG file. * * SPDX-FileCopyrightText: Placed into the public domain by Dan Fandrich * SPDX-License-Identifier: CC0-1.0 */ #include #include #include #include #include /* this file will be unilaterally overwritten */ #define FILE_NAME "write-exif.jpg" /* raw JPEG image data */ static const unsigned char image_jpg[] = { 0xff, 0xd8, 0xff, 0xe0, 0x00, 0x10, 0x4a, 0x46, 0x49, 0x46, 0x00, 0x01, 0x01, 0x01, 0x00, 0x48, 0x00, 0x48, 0x00, 0x00, 0xff, 0xdb, 0x00, 0x43, 0x00, 0x14, 0x0e, 0x0f, 0x12, 0x0f, 0x0d, 0x14, 0x12, 0x10, 0x12, 0x17, 0x15, 0x14, 0x18, 0x1e, 0x32, 0x21, 0x1e, 0x1c, 0x1c, 0x1e, 0x3d, 0x2c, 0x2e, 0x24, 0x32, 0x49, 0x40, 0x4c, 0x4b, 0x47, 0x40, 0x46, 0x45, 0x50, 0x5a, 0x73, 0x62, 0x50, 0x55, 0x6d, 0x56, 0x45, 0x46, 0x64, 0x88, 0x65, 0x6d, 0x77, 0x7b, 0x81, 0x82, 0x81, 0x4e, 0x60, 0x8d, 0x97, 0x8c, 0x7d, 0x96, 0x73, 0x7e, 0x81, 0x7c, 0xff, 0xc0, 0x00, 0x0b, 0x08, 0x00, 0x40, 0x00, 0x40, 0x01, 0x01, 0x11, 0x00, 0xff, 0xc4, 0x00, 0x1b, 0x00, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x04, 0x03, 0x07, 0x02, 0x01, 0xff, 0xc4, 0x00, 0x2f, 0x10, 0x00, 0x01, 0x03, 0x03, 0x02, 0x05, 0x03, 0x03, 0x03, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x11, 0x00, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x81, 0x61, 0x71, 0x91, 0x13, 0x32, 0xa1, 0x14, 0x22, 0xc1, 0x15, 0x23, 0x52, 0xd1, 0xf0, 0xff, 0xda, 0x00, 0x08, 0x01, 0x01, 0x00, 0x00, 0x3f, 0x00, 0xb3, 0xa2, 0x8a, 0x28, 0xa2, 0x8a, 0x28, 0xa2, 0x97, 0x64, 0x72, 0xd6, 0x58, 0xd4, 0x8f, 0xd5, 0x3d, 0xca, 0xa5, 0x7d, 0xa8, 0x4e, 0xaa, 0x3e, 0xb0, 0x3a, 0x7a, 0x9d, 0x2b, 0x2d, 0x87, 0x13, 0xe3, 0xaf, 0x9f, 0x0c, 0xb6, 0xb5, 0xb6, 0xe2, 0xb4, 0x48, 0x71, 0x30, 0x14, 0x7b, 0x02, 0x09, 0x14, 0xee, 0x94, 0x64, 0x38, 0x87, 0x1f, 0x8d, 0x5f, 0xd3, 0x7d, 0xe2, 0xa7, 0x46, 0xe8, 0x6c, 0x49, 0x1e, 0xfd, 0x07, 0xb1, 0x33, 0x5f, 0xb8, 0xdc, 0xf5, 0x96, 0x51, 0x7c, 0x96, 0xee, 0x14, 0xba, 0x04, 0xf2, 0x2c, 0x42, 0xa3, 0xd3, 0x70, 0x7c, 0x1a, 0x6d, 0x45, 0x2c, 0xcd, 0xe5, 0x11, 0x89, 0xb1, 0x5b, 0xc4, 0x02, 0xe1, 0xd1, 0xb4, 0xcf, 0xdc, 0xa3, 0xfc, 0x0d, 0xcd, 0x41, 0xde, 0xe3, 0xb2, 0x2e, 0xda, 0x1c, 0xbd, 0xe2, 0x4a, 0x90, 0xe9, 0x04, 0x95, 0x2b, 0xf7, 0x41, 0xd0, 0x18, 0xe8, 0x36, 0x03, 0xc6, 0x91, 0x4a, 0x81, 0x20, 0x82, 0x24, 0x10, 0x66, 0x45, 0x5a, 0xdd, 0xf1, 0x32, 0xff, 0x00, 0xa2, 0x5a, 0x8b, 0x62, 0x57, 0x7d, 0x70, 0x80, 0x93, 0x1a, 0x94, 0x10, 0x79, 0x4a, 0xa3, 0xb9, 0x20, 0xc0, 0xf3, 0xd3, 0x55, 0x59, 0x4e, 0x1c, 0x7a, 0xc7, 0x12, 0x9b, 0xc7, 0x94, 0xa7, 0x2e, 0x14, 0xa9, 0x74, 0x0d, 0x42, 0x01, 0x04, 0xc9, 0x3b, 0x93, 0x30, 0x09, 0xdb, 0x5f, 0x35, 0x9b, 0x85, 0xad, 0xde, 0x7f, 0x39, 0x6e, 0xa6, 0x82, 0xa1, 0xa5, 0x73, 0x2d, 0x40, 0x68, 0x13, 0x06, 0x67, 0xdf, 0x6f, 0x35, 0xe9, 0xb4, 0x52, 0x4c, 0xbe, 0x0c, 0x65, 0x72, 0x16, 0xcf, 0x3a, 0xff, 0x00, 0xf6, 0x5a, 0xd1, 0x4d, 0x11, 0xa1, 0x13, 0x26, 0x0f, 0x73, 0x00, 0x1f, 0x41, 0x5b, 0x72, 0xd6, 0xa2, 0xeb, 0x15, 0x73, 0x6e, 0x13, 0xf7, 0x36, 0x42, 0x40, 0xee, 0x04, 0x8f, 0xc8, 0x15, 0xe4, 0xf5, 0x59, 0xc1, 0x16, 0x0d, 0x3d, 0x70, 0xed, 0xdb, 0x84, 0x29, 0x6c, 0x40, 0x42, 0x3b, 0x13, 0x3f, 0xb8, 0xfc, 0x10, 0x3c, 0xd5, 0xc1, 0x00, 0x88, 0x22, 0x41, 0xef, 0x5f, 0x0d, 0xb4, 0x86, 0x81, 0x0d, 0xa1, 0x28, 0x07, 0x52, 0x12, 0x00, 0x06, 0xba, 0xd1, 0x45, 0x71, 0xb8, 0xb8, 0x6e, 0xd9, 0x85, 0xbc, 0xf2, 0xb9, 0x5b, 0x40, 0x25, 0x47, 0xb0, 0xaf, 0x24, 0x79, 0x48, 0x53, 0xce, 0x29, 0xb4, 0x94, 0xa0, 0xa8, 0x94, 0xa7, 0xb0, 0x27, 0x41, 0xf1, 0x54, 0x9c, 0x09, 0x71, 0xc9, 0x92, 0x7d, 0x82, 0x74, 0x75, 0xa9, 0x1e, 0xa5, 0x27, 0xfd, 0x13, 0x55, 0xd9, 0x3c, 0x83, 0x38, 0xbb, 0x45, 0x5c, 0xbf, 0x3c, 0xa1, 0x40, 0x40, 0x02, 0x54, 0x4f, 0x41, 0x3e, 0x4f, 0x83, 0x5a, 0x2d, 0xae, 0x1b, 0xba, 0xb7, 0x6d, 0xf6, 0x89, 0x28, 0x71, 0x21, 0x49, 0x24, 0x41, 0x83, 0xe9, 0x5d, 0xe9, 0x3f, 0x12, 0x64, 0x97, 0x8b, 0xc6, 0x17, 0x59, 0x03, 0xea, 0xa9, 0x61, 0x08, 0x24, 0x48, 0x04, 0xc9, 0x9f, 0x80, 0x6a, 0x4b, 0x17, 0xc4, 0xd7, 0xac, 0xdf, 0x36, 0xab, 0xbb, 0x85, 0x39, 0x6e, 0xb5, 0x00, 0xe0, 0x50, 0x06, 0x01, 0x3a, 0x91, 0x02, 0x44, 0x6f, 0x02, 0xb7, 0x65, 0xb2, 0x0e, 0x71, 0x25, 0xf3, 0x58, 0xdc, 0x72, 0x8f, 0xe9, 0xc1, 0xe6, 0x52, 0xe0, 0xc2, 0xa3, 0x72, 0x46, 0xe0, 0x0e, 0x83, 0xa9, 0xf1, 0x4b, 0x38, 0x9f, 0x16, 0xde, 0x2e, 0xfd, 0xa4, 0x32, 0x92, 0x1a, 0x5b, 0x40, 0x83, 0xdc, 0x8d, 0x0f, 0x9d, 0x01, 0x3e, 0xf5, 0x83, 0x17, 0x7a, 0xac, 0x76, 0x41, 0x9b, 0xa4, 0xa7, 0x9b, 0xe9, 0xab, 0x51, 0x31, 0x20, 0x82, 0x08, 0xf8, 0x34, 0xf9, 0xdb, 0x97, 0xb8, 0xb7, 0x2c, 0xcd, 0xba, 0x12, 0xa6, 0xec, 0xda, 0x3c, 0xca, 0x13, 0x24, 0x0e, 0xa4, 0x91, 0xa4, 0x9d, 0x87, 0x69, 0xf7, 0xab, 0x74, 0x21, 0x2d, 0xa1, 0x28, 0x4a, 0x42, 0x52, 0x90, 0x02, 0x40, 0xd8, 0x01, 0xb0, 0xae, 0x95, 0x87, 0x29, 0x8f, 0x6f, 0x27, 0x64, 0xe5, 0xb3, 0xc4, 0x80, 0xa8, 0x29, 0x50, 0xdd, 0x24, 0x6c, 0x47, 0xfd, 0xd4, 0xd4, 0x92, 0x78, 0x1e, 0xef, 0xeb, 0x42, 0xae, 0x98, 0x0d, 0x7f, 0x90, 0x0a, 0x27, 0xe2, 0x00, 0xfc, 0xd5, 0x4e, 0x27, 0x11, 0x6d, 0x89, 0x60, 0xb7, 0x6e, 0x92, 0x54, 0xa8, 0xe6, 0x71, 0x5b, 0xa8, 0xff, 0x00, 0x03, 0xd2, 0xbe, 0x73, 0x38, 0x86, 0x72, 0xf6, 0xc1, 0xb7, 0x4f, 0x2a, 0xd1, 0x25, 0x0e, 0x01, 0x25, 0x27, 0xae, 0x9d, 0x41, 0xed, 0xed, 0x52, 0xe8, 0xe0, 0x7b, 0xcf, 0xab, 0x0e, 0x5d, 0x30, 0x96, 0xe7, 0xee, 0x4f, 0x31, 0x57, 0xc1, 0x00, 0x7e, 0x6a, 0xaf, 0x15, 0x8b, 0x63, 0x17, 0x6e, 0x1a, 0x61, 0x24, 0x92, 0x65, 0x6b, 0x3b, 0xa8, 0xf7, 0x3e, 0x9d, 0x87, 0x4a, 0x63, 0x45, 0x14, 0x51, 0x45, 0x14, 0x51, 0x45, 0x7f, 0xff, 0xd9 }; /* length of data in image_jpg */ static const unsigned int image_jpg_len = sizeof(image_jpg); /* dimensions of image */ static const unsigned int image_jpg_x = 64; static const unsigned int image_jpg_y = 64; /* start of JPEG image data section */ static const unsigned int image_data_offset = 20; #define image_data_len (image_jpg_len - image_data_offset) /* raw EXIF header data */ static const unsigned char exif_header[] = { 0xff, 0xd8, 0xff, 0xe1 }; /* length of data in exif_header */ static const unsigned int exif_header_len = sizeof(exif_header); /* byte order to use in the EXIF block */ #define FILE_BYTE_ORDER EXIF_BYTE_ORDER_INTEL /* comment to write into the EXIF block */ #define FILE_COMMENT "libexif demonstration image" /* special header required for EXIF_TAG_USER_COMMENT */ #define ASCII_COMMENT "ASCII\0\0\0" /* Get an existing tag, or create one if it doesn't exist */ static ExifEntry *init_tag(ExifData *exif, ExifIfd ifd, ExifTag tag) { ExifEntry *entry; /* Return an existing tag if one exists */ if (!((entry = exif_content_get_entry (exif->ifd[ifd], tag)))) { /* Allocate a new entry */ entry = exif_entry_new (); assert(entry != NULL); /* catch an out of memory condition */ entry->tag = tag; /* tag must be set before calling exif_content_add_entry */ /* Attach the ExifEntry to an IFD */ exif_content_add_entry (exif->ifd[ifd], entry); /* Allocate memory for the entry and fill with default data */ exif_entry_initialize (entry, tag); /* Ownership of the ExifEntry has now been passed to the IFD. * One must be very careful in accessing a structure after * unref'ing it; in this case, we know "entry" won't be freed * because the reference count was bumped when it was added to * the IFD. */ exif_entry_unref(entry); } return entry; } /* Create a brand-new tag with a data field of the given length, in the * given IFD. This is needed when exif_entry_initialize() isn't able to create * this type of tag itself, or the default data length it creates isn't the * correct length. */ static ExifEntry *create_tag(ExifData *exif, ExifIfd ifd, ExifTag tag, size_t len) { void *buf; ExifEntry *entry; /* Create a memory allocator to manage this ExifEntry */ ExifMem *mem = exif_mem_new_default(); assert(mem != NULL); /* catch an out of memory condition */ /* Create a new ExifEntry using our allocator */ entry = exif_entry_new_mem (mem); assert(entry != NULL); /* Allocate memory to use for holding the tag data */ buf = exif_mem_alloc(mem, len); assert(buf != NULL); /* Fill in the entry */ entry->data = buf; entry->size = len; entry->tag = tag; entry->components = len; entry->format = EXIF_FORMAT_UNDEFINED; /* Attach the ExifEntry to an IFD */ exif_content_add_entry (exif->ifd[ifd], entry); /* The ExifMem and ExifEntry are now owned elsewhere */ exif_mem_unref(mem); exif_entry_unref(entry); return entry; } int main (void) { int rc = 1; FILE *f; unsigned char *exif_data; unsigned int exif_data_len; ExifEntry *entry; ExifData *exif = exif_data_new(); if (!exif) { fprintf(stderr, "Out of memory\n"); return 2; } /* Set the image options */ exif_data_set_option(exif, EXIF_DATA_OPTION_FOLLOW_SPECIFICATION); exif_data_set_data_type(exif, EXIF_DATA_TYPE_COMPRESSED); exif_data_set_byte_order(exif, FILE_BYTE_ORDER); /* Create the mandatory EXIF fields with default data */ exif_data_fix(exif); /* All these tags are created with default values by exif_data_fix() */ /* Change the data to the correct values for this image. */ entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_X_DIMENSION); exif_set_long(entry->data, FILE_BYTE_ORDER, image_jpg_x); entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_Y_DIMENSION); exif_set_long(entry->data, FILE_BYTE_ORDER, image_jpg_y); entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_COLOR_SPACE); exif_set_short(entry->data, FILE_BYTE_ORDER, 1); /* Create a EXIF_TAG_USER_COMMENT tag. This one must be handled * differently because that tag isn't automatically created and * allocated by exif_data_fix(), nor can it be created using * exif_entry_initialize() so it must be explicitly allocated here. */ entry = create_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_USER_COMMENT, sizeof(ASCII_COMMENT) + sizeof(FILE_COMMENT) - 2); /* Write the special header needed for a comment tag */ memcpy(entry->data, ASCII_COMMENT, sizeof(ASCII_COMMENT)-1); /* Write the actual comment text, without the trailing NUL character */ memcpy(entry->data+8, FILE_COMMENT, sizeof(FILE_COMMENT)-1); /* create_tag() happens to set the format and components correctly for * EXIF_TAG_USER_COMMENT, so there is nothing more to do. */ /* Create a EXIF_TAG_SUBJECT_AREA tag */ entry = create_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_SUBJECT_AREA, 4 * exif_format_get_size(EXIF_FORMAT_SHORT)); entry->format = EXIF_FORMAT_SHORT; entry->components = 4; exif_set_short(entry->data, FILE_BYTE_ORDER, image_jpg_x / 2); exif_set_short(entry->data+2, FILE_BYTE_ORDER, image_jpg_y / 2); exif_set_short(entry->data+4, FILE_BYTE_ORDER, image_jpg_x); exif_set_short(entry->data+6, FILE_BYTE_ORDER, image_jpg_y); /* Get a pointer to the EXIF data block we just created */ exif_data_save_data(exif, &exif_data, &exif_data_len); assert(exif_data != NULL); f = fopen(FILE_NAME, "wb"); if (!f) { fprintf(stderr, "Error creating file %s\n", FILE_NAME); exif_data_unref(exif); return rc; } /* Write EXIF header */ if (fwrite(exif_header, exif_header_len, 1, f) != 1) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); goto errout; } /* Write EXIF block length in big-endian order */ if (fputc((exif_data_len+2) >> 8, f) < 0) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); goto errout; } if (fputc((exif_data_len+2) & 0xff, f) < 0) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); goto errout; } /* Write EXIF data block */ if (fwrite(exif_data, exif_data_len, 1, f) != 1) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); goto errout; } /* Write JPEG image data, skipping the non-EXIF header */ if (fwrite(image_jpg+image_data_offset, image_data_len, 1, f) != 1) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); goto errout; } printf("Wrote file %s\n", FILE_NAME); rc = 0; errout: if (fclose(f)) { fprintf(stderr, "Error writing to file %s\n", FILE_NAME); rc = 1; } /* The allocator we're using for ExifData is the standard one, so use * it directly to free this pointer. */ free(exif_data); exif_data_unref(exif); return rc; } libexif-libexif-0_6_25-release/contrib/watcom/000077500000000000000000000000001474246475200213775ustar00rootroot00000000000000libexif-libexif-0_6_25-release/contrib/watcom/Makefile000066400000000000000000000134241474246475200230430ustar00rootroot00000000000000# This makefile is made for OpenWatcom/NT and runs on my system. # It should not be too hard to make it run on other systems, too. # # FIRST, move this makefile and _stdint.h to the libexif main # directory (the place where you find README and COPYING etc.) # # WARNING: I used another makefile as template, so some things might be # thrown away. Don't hesitate to improve this makefile! # # WARNING: This makefile has been made mainly for myself, I didn't # waste time to make it look "nice". # # LICENSE: no restrictions at all, but USE ON YOUR OWN RISK ONLY. # SPDX-License-Identifier: LicenseRef-Wrobel # # USAGE: Simply type "wmake" or "wmake -f " when # being in the libexif main directory. This makefile should # be in that directory, too, of course. # # Copyright 2004-2008 Angela Wrobel , et. al. # Uncomment line for desired system #SYSTEM=DOS #SYSTEM=OS2 SYSTEM=NT # The name of your C compiler: CC= wcl386 # We're using similar constants like wxWidgets !ifeq FINAL 1 OPTFLAGS= -5r -zp8 -otexan !else OPTFLAGS= -5r -od -d2 !endif LIBEXIFDIR=libexif TESTEXIFDIR=test IFLAGS= -i=. WINVERFLAGS= EXTRACPPFLAGS=-dEXIF_DONT_CHANGE_MAKER_NOTE DEBUGCFLAGS= EXTRACFLAGS= OUTPUTDIR=$(LIBEXIFDIR) CPPFLAGS = /dWIN32 /bm /fo=$(OUTPUTDIR)\ /fr -zq $(IFLAGS) $(OPTFLAGS) $(WINVERFLAGS) $(EXTRACPPFLAGS) # zm and zv as well as the linker options below are used to make the resulting # .exe smaller CFLAGS = $(CPPFLAGS) $(DEBUGCFLAGS) $(EXTRACFLAGS) /zm # Link-time cc options: !ifeq SYSTEM DOS LDFLAGS= -zq -l=dos4g !else ifeq SYSTEM OS2 LDFLAGS= -zq -l=os2v2 !else ifeq SYSTEM NT LDFLAGS= -zq -l=nt !endif # End of configurable options. LIBOBJECTS = & $(LIBEXIFDIR)\exif-byte-order.obj $(LIBEXIFDIR)\exif-content.obj & $(LIBEXIFDIR)\exif-data.obj $(LIBEXIFDIR)\exif-entry.obj & $(LIBEXIFDIR)\exif-format.obj $(LIBEXIFDIR)\exif-ifd.obj & $(LIBEXIFDIR)\exif-loader.obj $(LIBEXIFDIR)\exif-log.obj & $(LIBEXIFDIR)\exif-mem.obj & $(LIBEXIFDIR)\exif-mnote-data.obj $(LIBEXIFDIR)\exif-tag.obj & $(LIBEXIFDIR)\exif-utils.obj & $(LIBEXIFDIR)\exif-mnote-data-olympus.obj & $(LIBEXIFDIR)\mnote-olympus-entry.obj & $(LIBEXIFDIR)\mnote-olympus-tag.obj & $(LIBEXIFDIR)\exif-mnote-data-pentax.obj & $(LIBEXIFDIR)\mnote-pentax-entry.obj & $(LIBEXIFDIR)\mnote-pentax-tag.obj & $(LIBEXIFDIR)\exif-mnote-data-canon.obj & $(LIBEXIFDIR)\mnote-canon-entry.obj & $(LIBEXIFDIR)\mnote-canon-tag.obj & $(LIBEXIFDIR)\exif-mnote-data-fuji.obj & $(LIBEXIFDIR)\mnote-fuji-entry.obj & $(LIBEXIFDIR)\mnote-fuji-tag.obj #CFLAGS = /dWIN32 /bm /fr -zq -i=. -5r -od -d2 /d2 /zm /fo=$(LIBEXIFDIR)\ all : libexif.lib test-mem.exe test-mnote.exe test-value.exe # test-tree.exe libexif.lib: $(LIBOBJECTS) - del libexif.lib * wlib -n libexif.lib $(LIBOBJECTS) $(LIBEXIFDIR)\exif-byte-order.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-byte-order.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-content.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-content.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-data.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-data.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-entry.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-entry.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-format.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-format.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-ifd.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-ifd.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-loader.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-loader.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-log.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-log.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mem.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-mem.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mnote-data.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-mnote-data.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-tag.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-tag.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-utils.obj : .AUTODEPEND $(LIBEXIFDIR)\exif-utils.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mnote-data-olympus.obj : .AUTODEPEND $(LIBEXIFDIR)\olympus\exif-mnote-data-olympus.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-olympus-entry.obj : .AUTODEPEND $(LIBEXIFDIR)\olympus\mnote-olympus-entry.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-olympus-tag.obj : .AUTODEPEND $(LIBEXIFDIR)\olympus\mnote-olympus-tag.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mnote-data-pentax.obj : .AUTODEPEND $(LIBEXIFDIR)\pentax\exif-mnote-data-pentax.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-pentax-entry.obj : .AUTODEPEND $(LIBEXIFDIR)\pentax\mnote-pentax-entry.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-pentax-tag.obj : .AUTODEPEND $(LIBEXIFDIR)\pentax\mnote-pentax-tag.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mnote-data-canon.obj : .AUTODEPEND $(LIBEXIFDIR)\canon\exif-mnote-data-canon.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-canon-entry.obj : .AUTODEPEND $(LIBEXIFDIR)\canon\mnote-canon-entry.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-canon-tag.obj : .AUTODEPEND $(LIBEXIFDIR)\canon\mnote-canon-tag.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\exif-mnote-data-fuji.obj : .AUTODEPEND $(LIBEXIFDIR)\fuji\exif-mnote-data-fuji.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-fuji-entry.obj : .AUTODEPEND $(LIBEXIFDIR)\fuji\mnote-fuji-entry.c $(CC) -c $(CFLAGS) $[* $(LIBEXIFDIR)\mnote-fuji-tag.obj : .AUTODEPEND $(LIBEXIFDIR)\fuji\mnote-fuji-tag.c $(CC) -c $(CFLAGS) $[* test-mem.exe : .AUTODEPEND $(TESTEXIFDIR)\test-mem.c $(CC) $(CFLAGS) $(LDFRLAGS) $< libexif.lib test-mnote.exe : .AUTODEPEND $(TESTEXIFDIR)\test-mnote.c $(CC) $(CFLAGS) $(LDFRLAGS) $< libexif.lib test-tree.exe : .AUTODEPEND $(TESTEXIFDIR)\test-tree.c $(CC) $(CFLAGS) $(LDFRLAGS) $< libexif.lib test-value.exe : .AUTODEPEND $(TESTEXIFDIR)\test-value.c $(CC) $(CFLAGS) $(LDFRLAGS) $< libexif.lib clean: .SYMBOLIC - del $(LIBEXIFDIR)\*.obj - del *.exe - del libexif.lib libexif-libexif-0_6_25-release/contrib/watcom/_stdint.h000066400000000000000000000007221474246475200232150ustar00rootroot00000000000000/* LICENSE: no restrictions at all, but USE ON YOUR OWN RISK ONLY. * SPDX-License-Identifier: LicenseRef-Wrobel * Copyright 2004-2008 Angela Wrobel , et. al. */ #ifndef __STDINT_H #define __STDINT_H #include typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; typedef signed char int8_t; typedef signed short int16_t; typedef signed long int32_t; #endif libexif-libexif-0_6_25-release/doc/000077500000000000000000000000001474246475200172125ustar00rootroot00000000000000libexif-libexif-0_6_25-release/doc/.gitignore000066400000000000000000000001061474246475200211770ustar00rootroot00000000000000Makefile Makefile.in .libs .deps *.o *.lo Doxyfile Doxyfile-internals libexif-libexif-0_6_25-release/doc/Doxyfile-internals.in000066400000000000000000003211161474246475200233260ustar00rootroot00000000000000# Doxyfile 1.8.13 # Copyright (C) 1997-2015 by Dimitri van Heesch. # SPDX-License-Identifier: GPL-2.0-only # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # # All text after a single hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists, items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (\" \"). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all text # before the first occurrence of this tag. Doxygen uses libiconv (or the iconv # built into libc) for the transcoding. See http://www.gnu.org/software/libiconv # for the list of possible encodings. # The default value is: UTF-8. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by # double-quotes, unless you are using Doxywizard) that should identify the # project for which the documentation is generated. This name is used in the # title of most generated pages and in a few other places. # The default value is: My Project. PROJECT_NAME = "@PACKAGE_NAME@ (@PACKAGE_TARNAME@) Internals" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = "@PACKAGE_VERSION@" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path # into which the generated documentation will be written. If a relative path is # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. OUTPUT_DIRECTORY = @DOXYGEN_OUTPUT_DIR@ # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and # will distribute the generated files over these directories. Enabling this # option can be useful when feeding doxygen a huge amount of source files, where # putting all generated files in the same directory would otherwise causes # performance problems for the file system. # The default value is: NO. CREATE_SUBDIRS = NO # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII # characters to appear in the names of generated files. If set to NO, non-ASCII # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode # U+3044. # The default value is: NO. ALLOW_UNICODE_NAMES = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), # Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, # Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), # Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, # Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, # Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, # Ukrainian and Vietnamese. # The default value is: English. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member # descriptions after the members that are listed in the file and class # documentation (similar to Javadoc). Set to NO to disable this. # The default value is: YES. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief # description of a member or function before the detailed description # # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. # The default value is: YES. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator that is # used to form the text in various listings. Each string in this list, if found # as the leading text of the brief description, will be stripped from the text # and the result, after processing the whole list, is used as the annotated # text. Otherwise, the brief description is used as-is. If left blank, the # following values are used ($name is automatically replaced with the name of # the entity):The $name class, The $name widget, The $name file, is, provides, # specifies, contains, represents, a, an and the. ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # doxygen will generate a detailed section even if there is only a brief # description. # The default value is: NO. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. # The default value is: NO. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path # before files name in the file list and in the header files. If set to NO the # shortest path that makes the file name unique will be used # The default value is: YES. FULL_PATH_NAMES = YES # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. # Stripping is only done if one of the specified strings matches the left-hand # part of the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the path to # strip. # # Note that you can specify absolute paths here, but also relative paths, which # will be relative from the directory where doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. STRIP_FROM_PATH = @top_srcdir@ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which # header file to include in order to use a class. If left blank only the name of # the header file containing the class definition is used. Otherwise one should # specify the list of include paths that are normally passed to the compiler # using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but # less readable) file names. This can be useful is your file systems doesn't # support long names like on DOS, Mac, or CD-ROM. # The default value is: NO. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the # first line (until the first dot) of a Javadoc-style comment as the brief # description. If set to NO, the Javadoc-style will behave just like regular Qt- # style comments (thus requiring an explicit @brief command for a brief # description.) # The default value is: NO. JAVADOC_AUTOBRIEF = NO # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first # line (until the first dot) of a Qt-style comment as the brief description. If # set to NO, the Qt-style will behave just like regular Qt-style comments (thus # requiring an explicit \brief command for a brief description.) # The default value is: NO. QT_AUTOBRIEF = YES # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a # multi-line C++ special comment block (i.e. a block of //! or /// comments) as # a brief description. This used to be the default behavior. The new default is # to treat a multi-line C++ comment block as a detailed description. Set this # tag to YES if you prefer the old behavior instead. # # Note that setting this tag to YES also means that rational rose comments are # not recognized any more. # The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the # documentation from any documented member that it re-implements. # The default value is: YES. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new # page for each member. If set to NO, the documentation of a member will be part # of the file/class/namespace that contains it. # The default value is: NO. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen # uses this value to replace tabs by spaces in code fragments. # Minimum value: 1, maximum value: 16, default value: 4. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that act as commands in # the documentation. An alias has the form: # name=value # For example adding # "sideeffect=@par Side Effects:\n" # will allow you to put the command \sideeffect (or @sideeffect) in the # documentation, which will result in a user-defined paragraph with heading # "Side Effects:". You can put \n's in the value part of an alias to insert # newlines. ALIASES = # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding "class=itcl::class" # will allow you to use the command class in the itcl::class meaning. TCL_SUBST = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. For # instance, some of the names that are used will be different. The list of all # members will be omitted, etc. # The default value is: NO. OPTIMIZE_OUTPUT_FOR_C = YES # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or # Python sources only. Doxygen will then generate output that is more tailored # for that language. For instance, namespaces will be presented as packages, # qualified scopes will look different, etc. # The default value is: NO. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources. Doxygen will then generate output that is tailored for Fortran. # The default value is: NO. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for VHDL. # The default value is: NO. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given # extension. Doxygen has a built-in mapping, but you can override or extend it # using this tag. The format is ext=language, where ext is a file extension, and # language is one of the parsers supported by doxygen: IDL, Java, Javascript, # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: # FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: # Fortran. In the later case the parser tries to guess whether the code is fixed # or free formatted code, this is the default for Fortran type files), VHDL. For # instance to make doxygen treat .inc files as Fortran files (default is PHP), # and .f files as C (default is Fortran), use: inc=Fortran f=C. # # Note: For files without extension you can use no_extension as a placeholder. # # Note that for custom extensions you also need to set FILE_PATTERNS otherwise # the files are not read by doxygen. EXTENSION_MAPPING = # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments # according to the Markdown format, which allows for more readable # documentation. See http://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you can # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in # case of backward compatibilities issues. # The default value is: YES. MARKDOWN_SUPPORT = YES # When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up # to that level are automatically included in the table of contents, even if # they do not have an id attribute. # Note: This feature currently applies only to Markdown headings. # Minimum value: 0, maximum value: 99, default value: 0. # This tag requires that the tag MARKDOWN_SUPPORT is set to YES. TOC_INCLUDE_HEADINGS = 0 # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can # be prevented in individual cases by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. AUTOLINK_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should set this # tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); # versus func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. # The default value is: NO. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. # The default value is: NO. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen # will parse them like normal C++ but will assume all classes use public instead # of private inheritance when no explicit protection keyword is present. # The default value is: NO. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate # getter and setter methods for a property. Setting this option to YES will make # doxygen to replace the get and set methods by a property in the documentation. # This will only work if the methods are indeed getting or setting a simple # type. If this is not the case, or you want to show the methods anyway, you # should set this option to NO. # The default value is: YES. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. # The default value is: NO. DISTRIBUTE_GROUP_DOC = NO # If one adds a struct or class to a group and this option is enabled, then also # any nested class or struct is added to the same group. By default this option # is disabled and one has to add nested compounds explicitly via \ingroup. # The default value is: NO. GROUP_NESTED_COMPOUNDS = NO # Set the SUBGROUPING tag to YES to allow class member groups of the same type # (for instance a group of public functions) to be put as a subgroup of that # type (e.g. under the Public Functions section). Set it to NO to prevent # subgrouping. Alternatively, this can be done per class using the # \nosubgrouping command. # The default value is: YES. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions # are shown inside the group in which they are included (e.g. using \ingroup) # instead of on a separate page (for HTML and Man pages) or section (for LaTeX # and RTF). # # Note that this feature does not work in combination with # SEPARATE_MEMBER_PAGES. # The default value is: NO. INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions # with only public data fields or simple typedef fields will be shown inline in # the documentation of the scope in which they are defined (i.e. file, # namespace, or group documentation), provided this scope is documented. If set # to NO, structs, classes, and unions are shown on a separate page (for HTML and # Man pages) or section (for LaTeX and RTF). # The default value is: NO. INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or # enum is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically be # useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. # The default value is: NO. TYPEDEF_HIDES_STRUCT = NO # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This # cache is used to resolve symbols given their name and scope. Since this can be # an expensive process and often the same symbol appears multiple times in the # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small # doxygen will become slower. If the cache is too large, memory is wasted. The # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 # symbols. At the end of a run doxygen will report the cache usage and suggest # the optimal cache size from a speed point of view. # Minimum value: 0, maximum value: 9, default value: 0. LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in # documentation are documented, even if no documentation was available. Private # class members and static file members will be hidden unless the # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. # Note: This will also disable the warnings about undocumented members that are # normally produced when WARNINGS is set to YES. # The default value is: NO. EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will # be included in the documentation. # The default value is: NO. EXTRACT_PRIVATE = YES # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal # scope will be included in the documentation. # The default value is: NO. EXTRACT_PACKAGE = NO # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. # The default value is: NO. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, # only classes defined in header files are included. Does not have any effect # for Java sources. # The default value is: YES. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. If set to YES, local methods, # which are defined in the implementation section but not in the interface are # included in the documentation. If set to NO, only methods in the interface are # included. # The default value is: NO. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base name of # the file that contains the anonymous namespace. By default anonymous namespace # are hidden. # The default value is: NO. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all # undocumented members inside documented classes or files. If set to NO these # members will be included in the various overviews, but no documentation # section is generated. This option has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. If set # to NO, these classes will be included in the various overviews. This option # has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend # (class|struct|union) declarations. If set to NO, these declarations will be # included in the documentation. # The default value is: NO. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any # documentation blocks found inside the body of a function. If set to NO, these # blocks will be appended to the function's detailed documentation block. # The default value is: NO. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation that is typed after a # \internal command is included. If the tag is set to NO then the documentation # will be excluded. Set it to YES to include the internal documentation. # The default value is: NO. INTERNAL_DOCS = YES # If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file # names in lower-case letters. If set to YES, upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. # The default value is: system dependent. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with # their full class and namespace scopes in the documentation. If set to YES, the # scope will be hidden. # The default value is: NO. HIDE_SCOPE_NAMES = NO # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will # append additional text to a page's title, such as Class Reference. If set to # YES the compound reference will be hidden. # The default value is: NO. HIDE_COMPOUND_REFERENCE= NO # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of # the files that are included by a file in the documentation of that file. # The default value is: YES. SHOW_INCLUDE_FILES = YES # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each # grouped member an include statement to the documentation, telling the reader # which file to include in order to use the member. # The default value is: NO. SHOW_GROUPED_MEMB_INC = NO # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include # files with double quotes in the documentation rather than with sharp brackets. # The default value is: NO. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the # documentation for inline members. # The default value is: YES. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the # (detailed) documentation of file and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. # The default value is: YES. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief # descriptions of file, namespace and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. Note that # this will also influence the order of the classes in the class list. # The default value is: NO. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the # (brief and detailed) documentation of class members so that constructors and # destructors are listed first. If set to NO the constructors will appear in the # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief # member documentation. # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting # detailed member documentation. # The default value is: NO. SORT_MEMBERS_CTORS_1ST = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy # of group names into alphabetical order. If set to NO the group names will # appear in their defined order. # The default value is: NO. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by # fully-qualified names, including namespaces. If set to NO, the class list will # be sorted only by class name, not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the alphabetical # list. # The default value is: NO. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper # type resolution of all parameters of a function it will reject a match between # the prototype and the implementation of a member function even if there is # only one candidate or it is obvious which candidate to choose by doing a # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still # accept a match between prototype and implementation in such cases. # The default value is: NO. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo # list. This list is created by putting \todo commands in the documentation. # The default value is: YES. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test # list. This list is created by putting \test commands in the documentation. # The default value is: YES. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug # list. This list is created by putting \bug commands in the documentation. # The default value is: YES. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) # the deprecated list. This list is created by putting \deprecated commands in # the documentation. # The default value is: YES. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional documentation # sections, marked by \if ... \endif and \cond # ... \endcond blocks. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the # initial value of a variable or macro / define can have for it to appear in the # documentation. If the initializer consists of more lines than specified here # it will be hidden. Use a value of 0 to hide initializers completely. The # appearance of the value of individual variables and macros / defines can be # controlled using \showinitializer or \hideinitializer command in the # documentation regardless of this setting. # Minimum value: 0, maximum value: 10000, default value: 30. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at # the bottom of the documentation of classes and structs. If set to YES, the # list will mention the files that were used to generate the documentation. # The default value is: YES. SHOW_USED_FILES = YES # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This # will remove the Files entry from the Quick Index and from the Folder Tree View # (if specified). # The default value is: YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces # page. This will remove the Namespaces entry from the Quick Index and from the # Folder Tree View (if specified). # The default value is: YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. You can # optionally specify a file name after the option, if omitted DoxygenLayout.xml # will be used as the name of the layout file. # # Note that if you run doxygen from a directory containing a file called # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE # tag is left empty. LAYOUT_FILE = # The CITE_BIB_FILES tag can be used to specify one or more bib files containing # the reference definitions. This must be a list of .bib files. The .bib # extension is automatically appended if omitted. This requires the bibtex tool # to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. # For LaTeX the style of the bibliography can be controlled using # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the # search path. See also \cite for info how to create references. CITE_BIB_FILES = #--------------------------------------------------------------------------- # Configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated to # standard output by doxygen. If QUIET is set to YES this implies that the # messages are off. # The default value is: NO. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES # this implies that the warnings are on. # # Tip: Turn warnings on while writing the documentation. # The default value is: YES. WARNINGS = YES # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled. # The default value is: YES. WARN_IF_UNDOCUMENTED = YES # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some parameters # in a documented function, or documenting parameters that don't exist or using # markup commands wrongly. # The default value is: YES. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that # are documented, but have no documentation for their parameters or return # value. If set to NO, doxygen will only warn about wrong or incomplete # parameter documentation, but not about the absence of documentation. # The default value is: NO. WARN_NO_PARAMDOC = YES # If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when # a warning is encountered. # The default value is: NO. WARN_AS_ERROR = NO # The WARN_FORMAT tag determines the format of the warning messages that doxygen # can produce. The string should contain the $file, $line, and $text tags, which # will be replaced by the file and line number from which the warning originated # and the warning text. Optionally the format may contain $version, which will # be replaced by the version of the file (if it could be obtained via # FILE_VERSION_FILTER) # The default value is: $file:$line: $text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning and error # messages should be written. If left blank the output is written to standard # error (stderr). WARN_LOGFILE = #--------------------------------------------------------------------------- # Configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag is used to specify the files and/or directories that contain # documented source files. You may enter file names like myfile.cpp or # directories like /usr/src/myproject. Separate the files or directories with # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. INPUT = @top_srcdir@/libexif \ @top_srcdir@/test # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # libiconv (or the iconv built into libc) for the transcoding. See the libiconv # documentation (see: http://www.gnu.org/software/libiconv) for the list of # possible encodings. # The default value is: UTF-8. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and # *.h) to filter out the source-files in the directories. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # read by doxygen. # # If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp, # *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, # *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, # *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, # *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf. FILE_PATTERNS = *.h \ *.c # The RECURSIVE tag can be used to specify whether or not subdirectories should # be searched for input files as well. # The default value is: NO. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. # The default value is: NO. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories use the pattern */test/* EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or directories # that contain example code fragments that are included (see the \include # command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank all # files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude commands # irrespective of the value of the RECURSIVE tag. # The default value is: NO. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or directories # that contain images that are to be included in the documentation (see the # \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command: # # # # where is the value of the INPUT_FILTER tag, and is the # name of an input file. Doxygen will then use the output that the filter # program writes to standard output. If FILTER_PATTERNS is specified, this tag # will be ignored. # # Note that the filter must not add or remove lines; it is applied before the # code is scanned, but not when the output code is generated. If lines are added # or removed, the anchors will not be placed correctly. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # properly processed by doxygen. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: pattern=filter # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how # filters are used. If the FILTER_PATTERNS tag is empty or if none of the # patterns match the file name, INPUT_FILTER is applied. # # Note that for custom extensions or not directly supported extensions you also # need to set EXTENSION_MAPPING for the extension otherwise the files are not # properly processed by doxygen. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will also be used to filter the input files that are used for # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). # The default value is: NO. FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and # it is also possible to disable source filtering for a specific pattern using # *.ext= (so without naming a filter). # This tag requires that the tag FILTER_SOURCE_FILES is set to YES. FILTER_SOURCE_PATTERNS = # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that # is part of the input, its contents will be placed on the main page # (index.html). This can be useful if you have a project on for instance GitHub # and want to reuse the introduction page also for the doxygen output. USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will be # generated. Documented entities will be cross-referenced with these sources. # # Note: To get rid of all source code in the generated output, make sure that # also VERBATIM_HEADERS is set to NO. # The default value is: NO. SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body of functions, # classes and enums directly into the documentation. # The default value is: NO. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any # special comment blocks from generated source code fragments. Normal C, C++ and # Fortran comments will always remain visible. # The default value is: YES. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES then for each documented # function all documented functions referencing it will be listed. # The default value is: NO. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES then for each documented function # all documented entities called/used by that function will be listed. # The default value is: NO. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set # to YES then the hyperlinks from functions in REFERENCES_RELATION and # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will # link to the documentation. # The default value is: YES. REFERENCES_LINK_SOURCE = YES # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the # source code will show a tooltip with additional information such as prototype, # brief description and links to the definition and documentation. Since this # will make the HTML file larger and loading of large files a bit slower, you # can opt to disable this feature. # The default value is: YES. # This tag requires that the tag SOURCE_BROWSER is set to YES. SOURCE_TOOLTIPS = YES # If the USE_HTAGS tag is set to YES then the references to source code will # point to the HTML generated by the htags(1) tool instead of doxygen built-in # source browser. The htags tool is part of GNU's global source tagging system # (see http://www.gnu.org/software/global/global.html). You will need version # 4.8.6 or higher. # # To use it do the following: # - Install the latest version of global # - Enable SOURCE_BROWSER and USE_HTAGS in the config file # - Make sure the INPUT points to the root of the source tree # - Run doxygen as normal # # Doxygen will invoke htags (and that will in turn invoke gtags), so these # tools must be available from the command line (i.e. in the search path). # # The result: instead of the source browser generated by doxygen, the links to # source code will now point to the output of htags. # The default value is: NO. # This tag requires that the tag SOURCE_BROWSER is set to YES. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a # verbatim copy of the header file for each class for which an include is # specified. Set to NO to disable this. # See also: Section \class. # The default value is: YES. VERBATIM_HEADERS = YES # If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the # clang parser (see: http://clang.llvm.org/) for more accurate parsing at the # cost of reduced performance. This can be particularly helpful with template # rich C++ code for which doxygen's built-in parser lacks the necessary type # information. # Note: The availability of this option depends on whether or not doxygen was # generated with the -Duse-libclang=ON option for CMake. # The default value is: NO. CLANG_ASSISTED_PARSING = NO # If clang assisted parsing is enabled you can provide the compiler with command # line options that you would normally use when invoking the compiler. Note that # the include paths will already be set by doxygen for the files and directories # specified with INPUT and INCLUDE_PATH. # This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. CLANG_OPTIONS = #--------------------------------------------------------------------------- # Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all # compounds will be generated. Enable this if the project contains a lot of # classes, structs, unions or interfaces. # The default value is: YES. ALPHABETICAL_INDEX = YES # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in # which the alphabetical index list will be split. # Minimum value: 1, maximum value: 20, default value: 5. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all classes will # be put under the same header in the alphabetical index. The IGNORE_PREFIX tag # can be used to specify a prefix (or a list of prefixes) that should be ignored # while generating the index headers. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. IGNORE_PREFIX = _ #--------------------------------------------------------------------------- # Configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # The default value is: YES. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # it. # The default directory is: html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = @HTML_APIDOC_INTERNALS_DIR@ # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each # generated HTML page (for example: .htm, .php, .asp). # The default value is: .html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a user-defined HTML header file for # each generated HTML page. If the tag is left blank doxygen will generate a # standard header. # # To get valid HTML the header file that includes any scripts and style sheets # that doxygen needs, which is dependent on the configuration options used (e.g. # the setting GENERATE_TREEVIEW). It is highly recommended to start with a # default header using # doxygen -w html new_header.html new_footer.html new_stylesheet.css # YourConfigFile # and then modify the file new_header.html. See also section "Doxygen usage" # for information on how to generate the default header that doxygen normally # uses. # Note: The header is subject to change so you typically have to regenerate the # default header when upgrading to a newer version of doxygen. For a description # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard # footer. See HTML_HEADER for more information on how to generate a default # footer and what special commands can be used inside the footer. See also # section "Doxygen usage" for information on how to generate the default footer # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. @MAINTAINER_MODE_TRUE@HTML_FOOTER = @srcdir@/footer.html # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style # sheet that is used by each HTML page. It can be used to fine-tune the look of # the HTML output. If left blank doxygen will generate a default style sheet. # See also section "Doxygen usage" for information on how to generate the style # sheet that doxygen normally uses. # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as # it is more robust and this tag (HTML_STYLESHEET) will in the future become # obsolete. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra style sheet files is of importance (e.g. the last # style sheet in the list overrules the setting of the previous ones in the # list). For an example see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that the # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to # this color. Hue is specified as an angle on a colorwheel, see # http://en.wikipedia.org/wiki/Hue for more information. For instance the value # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 # purple, and 360 is red again. # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use grayscales only. A # value of 255 will produce the most vivid colors. # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 # gradually make the output lighter, whereas values above 100 make the output # darker. The value divided by 100 is the actual gamma applied, so 80 represents # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not # change the gamma. # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting this # to YES can help to show when doxygen was last run and thus if the # documentation is up to date. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_TIMESTAMP = NO # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = NO # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries # shown in the various tree structured indices initially; the user can expand # and collapse entries dynamically later on. Doxygen will expand the tree to # such a level that at most the specified number of entries are visible (unless # a fully collapsed tree already exceeds this amount). So setting the number of # entries 1 will produce a full collapsed tree by default. 0 is a special value # representing an infinite number of entries and will result in a full expanded # tree by default. # Minimum value: 0, maximum value: 9999, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files will be # generated that can be used as input for Apple's Xcode 3 integrated development # environment (see: http://developer.apple.com/tools/xcode/), introduced with # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a # Makefile in the HTML output directory. Running make will produce the docset in # that directory and running make install will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO # This tag determines the name of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # The default value is: Doxygen generated docs. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" # This tag specifies a string that should uniquely identify the documentation # set bundle. This should be a reverse domain-name style string, e.g. # com.mycompany.MyDocSet. Doxygen will append .docset to the name. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. # The default value is: org.doxygen.Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. # The default value is: Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three # additional HTML index files: index.hhp, index.hhc, and index.hhk. The # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on # Windows. # # The HTML Help Workshop contains a compiler that can convert all HTML output # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML # files are now used as the Windows 98 help format, and will replace the old # Windows help format (.hlp) on all Windows platforms in the future. Compressed # HTML files also contain an index, a table of contents, and you can search for # words in the documentation. The HTML workshop also contains a viewer for # compressed HTML files. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO # The CHM_FILE tag can be used to specify the file name of the resulting .chm # file. You can add a path in front of the file if the result should not be # written to the html output directory. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = # The HHC_LOCATION tag can be used to specify the location (absolute path # including file name) of the HTML help compiler (hhc.exe). If non-empty, # doxygen will try to run the HTML help compiler on the generated index.hhp. # The file has to be specified with full path. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated # (YES) or that it should be included in the master .chm file (NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) # and project file content. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = # The BINARY_TOC flag controls whether a binary table of contents is generated # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it # enables the Previous and Next buttons. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members to # the table of contents of the HTML help documentation and to the tree view. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help # (.qch) of the generated HTML documentation. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify # the file name of the resulting .qch file. The path specified is relative to # the HTML output folder. # This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help # Project output. For more information please see Qt Help Project / Namespace # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = org.doxygen.Project # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt # Help Project output. For more information please see Qt Help Project / Virtual # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- # folders). # The default value is: doc. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom # filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's filter section matches. Qt Help Project / Filter Attributes (see: # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_SECT_FILTER_ATTRS = # The QHG_LOCATION tag can be used to specify the location of Qt's # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the # generated .qhp file. # This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be # generated, together with the HTML files, they form an Eclipse help plugin. To # install this plugin and make it available under the help contents menu in # Eclipse, the contents of the directory containing the HTML and XML files needs # to be copied into the plugins directory of eclipse. The name of the directory # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. # After copying Eclipse needs to be restarted before the help appears. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO # A unique identifier for the Eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have this # name. Each documentation set should have its own identifier. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project # If you want full control over the layout of the generated HTML pages it might # be necessary to disable the index and replace it with your own. The # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. If the tag # value is set to YES, a side panel will be generated containing a tree-like # index structure (just like the one that is generated for HTML Help). For this # to work a browser that supports JavaScript, DHTML, CSS and frames is required # (i.e. any modern browser). Windows users are probably better off using the # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can # further fine-tune the look of the index. As an example, the default style # sheet generated by doxygen has an example that shows how to put an image at # the root of the tree instead of the PROJECT_NAME. Since the tree basically has # the same information as the tab index, you could consider setting # DISABLE_INDEX to YES when enabling this option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = YES # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that # doxygen will group on one line in the generated HTML documentation. # # Note that a value of 0 will completely suppress the enum values from appearing # in the overview section. # Minimum value: 0, maximum value: 20, default value: 4. # This tag requires that the tag GENERATE_HTML is set to YES. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used # to set the initial width (in pixels) of the frame in which the tree is shown. # Minimum value: 0, maximum value: 1500, default value: 250. # This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 250 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of LaTeX formulas included as images in # the HTML documentation. When you change the font size after a successful # doxygen run you need to manually remove any form_*.png images from the HTML # output directory to force them to be regenerated. # Minimum value: 8, maximum value: 50, default value: 10. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # # Note that when changing this option you need to delete any form_*.png files in # the HTML output directory before the changes have effect. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see # http://www.mathjax.org) which uses client side Javascript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path # to it using the MATHJAX_RELPATH option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. USE_MATHJAX = NO # When MathJax is enabled you can set the default output format to be used for # the MathJax output. See the MathJax site (see: # http://docs.mathjax.org/en/latest/output.html) for more details. # Possible values are: HTML-CSS (which is slower, but has the best # compatibility), NativeMML (i.e. MathML) and SVG. # The default value is: HTML-CSS. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML # output directory using the MATHJAX_RELPATH option. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax # Content Delivery Network so you can quickly see the result without installing # MathJax. However, it is strongly recommended to install a local copy of # MathJax from http://www.mathjax.org before deployment. # The default value is: http://cdn.mathjax.org/mathjax/latest. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # extension names that should be enabled during MathJax rendering. For example # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_EXTENSIONS = # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces # of code that will be used on startup of the MathJax code. See the MathJax site # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an # example see the documentation. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_CODEFILE = # When the SEARCHENGINE tag is enabled doxygen will generate a search box for # the HTML output. The underlying search engine uses javascript and DHTML and # should work on any modern browser. Note that when using HTML help # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) # there is already a search function so this one should typically be disabled. # For large projects the javascript based search engine can be slow, then # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically # , /