Commit Graph

65 Commits

Author SHA1 Message Date
Luis Diaz Mas
6f8d8e3da6 cleanup header inclusions in API 2019-01-11 15:55:25 +01:00
Dan Čermák
962962a8e9 Port Iptc::printStructure & getUshort to slices API
This fixes #211, #210, #209
2018-10-11 14:06:16 +02:00
Dan Čermák
fec6535ae8 [binaryToString] Reimplement using Slices
- reimplement binaryToString:
  - it now accepts a Slice and nothing else
  - it does not return a std::string but instead a proxy object that implements
    operator<< (this should be more efficient, as we do not need to touch the
    heap in most cases)
- addapt unit tests
- replace all occurences with the new API
2018-10-11 14:06:16 +02:00
Luis Díaz Más
603692a1d8 Copyright to Exiv2 authors 2018-09-12 19:22:31 +02:00
Dan Čermák
67dc3e691f [IptcData::printStructure] clang-format function 2018-07-29 00:00:52 +02:00
Dan Čermák
b2c3b61abc [IptcData::printStructure] Remove buffer overrun
The loop condition will perform a range check correctly, but it will always
dereference bytes[i], even if i is too large and fails the second check.
=> move the bytes[i] == 0x1c check into a if, after the range check was
successfull
2018-07-28 23:50:33 +02:00
Dan Čermák
efe2ccdcb6 Replaced all hardcoded error codes with ker... constants 2018-02-18 09:28:57 +01:00
tbeu
5b5987a596 Remove obsolete EXIV2_RCSID 2017-11-19 11:17:12 +01:00
tbeu
5df8b01b77 Remove obsolete svn revision 2017-11-19 11:17:11 +01:00
Robin Mills
6d5c2c3256 Getting ready to release v0.26 2017-03-08 20:42:28 +00:00
Robin Mills
e7b804f3f5 #1108 Refactored static indent(depth) from png/tiff/jpeg to Internal::indent(depth) 2016-03-18 07:48:15 +00:00
Robin Mills
09c734fbcd #1108. Refactored the IPTC printStructure code from png/jpeg/tiff into iptc.cpp 2016-03-17 23:45:58 +00:00
Andreas Huggel
fd80993ab0 Updated copyright notice. 2015-05-02 11:55:40 +00:00
Robin Mills
4e530fbce0 Bumping the copyright notice again. (re-doing 3089 without breaking the build!) 2013-07-24 05:15:04 +00:00
Robin Mills
a297d2b69e Rollback 3089 - somehow it's broken the build! 2013-07-24 05:05:52 +00:00
Robin Mills
da1ed8c536 Bumping the copyright notice in src &samples from 2012 to 2013 2013-07-24 03:12:38 +00:00
Andreas Huggel
0d397b95c7 Updated copyright message for 2012. 2012-03-22 15:19:35 +00:00
Robin Mills
ebfb513a21 Removing the casts which were regrettably added with SVN: 2525. 2011-06-29 01:02:04 +00:00
Robin Mills
b960062f90 EPS: fixed a cast and removed a useless comment. 2011-06-28 05:44:42 +00:00
Robin Mills
67c98c21c4 Issue: 777
Added #include <iterator> to iptc.cpp
Added epsimage.{cpp|h} and version.{cpp|h} to the DevStudio build environments.
Some compilation issues remain in VS2010/64 bit build and those fixes will be submitted separately.
2011-06-28 04:27:18 +00:00
Andreas Huggel
3f478a2ca2 #775: Sort IPTC data by record number when encoding (Matthias Baas). 2011-06-17 02:51:58 +00:00
Andreas Huggel
7770151915 Updated Copyright message for 2011. 2011-02-13 14:08:44 +00:00
Andreas Huggel
dc264bc00d #476, #614: Introduced class LogMsg for enhanced logging, migrated all existing warnings and error messages (not the exceptions) to use the new logic. Every log message now has a type (debug, info, warning, error). Applications can set a logging level to determine which messages are processed and supply a custom log message handler at runtime. (Based on a contribution by Simson Garfinkel.) 2010-09-10 14:02:09 +00:00
Andreas Huggel
06ce0d18b6 - Introduced exiv2.hpp as a wrapper to include all Exiv2 objects. (Renamed existing exiv2.hpp to exiv2app.hpp)
- Changed Sony/Minolta pretty-print function to print EV value
- Renamed rcsid.hpp to rcsid_int.hpp, do not publish it anymore
2010-06-27 10:04:39 +00:00
Andreas Huggel
6d496a4888 Updated Copyright notice for 2010. 2010-04-03 07:53:30 +00:00
Andreas Huggel
763b4f7933 Removed trailing whitespace. 2009-12-28 14:47:58 +00:00
Andreas Huggel
370af5c8a3 Merged all changes from the unstable branch into the trunk. 2009-11-27 05:59:23 +00:00
Andreas Huggel
8a6d9dbc42 Updated Copyright notice for 2009. 2009-02-16 14:30:51 +00:00
Andreas Huggel
7a6907c10d Fixed conversion special case: do not add an empty Exif datum if the (std) conversion failed. 2008-11-23 13:23:53 +00:00
Andreas Huggel
7b6652a910 Added ExifData pointer to Metadatum::write et al, added CanonCs.LensType and pretty-print function, changed exiv2 tool to use the new methods to print interpreted values (which allows it to refer to other metadata). 2008-10-17 14:34:29 +00:00
Andreas Huggel
0d55992e2f Merged unstable branch to trunk. 2008-06-21 10:28:17 +00:00
Andreas Huggel
d8e6b51c69 Refactored op<< for Metadatum, introduced std::string Metadatum::print(). Fixes #474. 2008-02-16 18:08:44 +00:00
Andreas Huggel
3ac665a305 Added 2008 to Copyright notice. 2008-01-09 16:44:09 +00:00
Andreas Huggel
579bc91821 Minor changes. 2007-12-09 08:01:43 +00:00
Andreas Huggel
da6266da3b Copyright updates for 2007 2007-02-02 10:09:31 +00:00
Andreas Huggel
0b589cf159 Check size of IPTC dataset before decoding it. Fixes bug #503. 2007-01-07 11:03:28 +00:00
Andreas Huggel
2c82879afe Added second attempt to parse an IPTC field into a string value, if parsing the actual type fails. Fixes bug #501. 2006-12-18 12:44:03 +00:00
Andreas Huggel
5c7e414801 Documentation cleanup 2006-11-21 16:51:04 +00:00
Andreas Huggel
9daaaa3f6d Fixed compiler warnings 2006-06-21 09:16:36 +00:00
Andreas Huggel
920da80d70 Minor AutoPtr related cleanup 2006-06-11 04:28:54 +00:00
Andreas Huggel
c1a869d332 Rearranged code and isolated a function to set a Photoshop IPTC IRB from the Jpeg write code into class Photoshop. 2006-05-27 09:08:56 +00:00
Andreas Huggel
99b4e71459 Updated copyright and fsf address 2006-01-17 14:53:57 +00:00
Andreas Huggel
c32e706c36 Changed Value::read() to return an int indicating success instead of throwing. Added Support for HHMMSS and H:M:S formats to TimeValue (assumes timezone is UTC). Fixes bug #440. 2005-10-08 11:34:32 +00:00
Andreas Huggel
06e5c0719e Removed trailing whitespace from source files 2005-10-08 11:25:44 +00:00
Andreas Huggel
bcf10895aa Relaxed Iptc parsing to be able to read certain broken images 2005-09-25 06:03:07 +00:00
Andreas Huggel
043a4a348b Added #ifndef SUPPRESS_WARNINGS blocks around all output from the library: compile with -DSUPPRESS_WARNINGS for a quiet library 2005-07-09 10:38:09 +00:00
Andreas Huggel
7d3f50c244 Minor changes (moved inline functions which throw to *.cpp files) 2005-07-08 15:50:52 +00:00
Andreas Huggel
55aebc0686 Overhauled exception handling. The new class Error has a list of error messages, which is selected based on the error code provided in the constructor.
Image::read/writeMetadata and ImageFactory::open now throw Error in case of failure. Applications therefore now need an exception handler for the error handling of such function calls. This should result in shorter and simpler application code.
2005-04-17 11:51:32 +00:00
Andreas Huggel
92a162606c Merged revisions 554:555 from branches/Exiv2-0_6_041212. Fixes bug #426 in trunk 2005-04-06 11:07:12 +00:00
Andreas Huggel
8521dead83 Added 2005 to Copyright lines 2005-03-12 16:43:06 +00:00