2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-19 14:32:10 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
Mateusz Loskot
ed67f9a571 Replace bitsN[s] aliases with C++11 fixed width integer types
Import the selection of integer types into boost::gil namespace,
  and move from channel.hpp to typedefs.hpp for easier access.
Replace bits32f with float32_t and bits64f with float64_t
  - kept as alias of scoped_channel_value.
Move float64_t (bits64f) to typedefs.hpp.
Replace the four {float|double}_{zero|one} min/max channel values
  with float_point_zero and float_point_one templates.
Replace <boost/cstdint,hpp> with C++11 <cstdint>.

Introduce preference of using declaration instead of typedef.
Reformat typedefs.hpp to take advantage of the using declaration
  - works much better for left-to-right reading, alias name as
    most important detail comes first.
Add some of missing #include typedefs.hpp, sort some headers.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
1e89c764b2 [cmake] Replicate GCC/clang compile flags from Jamfile
Add headers to target sources, so they are included in generate
makefiles, scanned and inspected as regular sources.

[ci skip]
2018-06-27 00:02:27 -04:00
Mateusz Loskot
eee3c526fc Add missing #include <stdexcept>
Fix GCC 4.7 error: 'runtime_error' is not a member of 'std'
2018-06-27 00:02:27 -04:00
Mateusz Loskot
9f028e67ad Replace C++11 std::string::front with indexing operator 2018-06-27 00:02:27 -04:00
Mateusz Loskot
3e612232c2 Restore root Jamfile lost during merge of PR #13 2018-06-27 00:02:27 -04:00
Niklas Angare
acf760719c Take input filename on the command line to test/image.
This enables test runners to copy the file to the target. It also makes
the code that looks for the file in a different path unnecessary since
Boost.Build will pass the proper relative path.
2018-06-27 00:02:27 -04:00
Stefan Seefeld
1f0bc35012 Introduce top-level gil.hpp header. (#70)
Introduce top-level boost/gil.hpp header.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
a37469e3ad Extend GCC and clang cxxflags for detailed warnings
Bump MSVC warning level to W4
Preparing for detailed warnings clean up based on:
https://svn.boost.org/trac10/wiki/Guidelines/WarningsGuidelines
Group compilation flags and defines in common top-level Jamfile
- relies on Boost.Build feature of referring parent Jamfile-s.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
d754d41373 Fix MSVC warning: C4100 unreferenced formal parameter 2018-06-27 00:02:27 -04:00
Mateusz Loskot
862539f6c4 Add AppVeyor jobs for b2 variant=release (#46)
Add AppVeyor jobs for b2 variant=release
2018-06-27 00:02:27 -04:00
Mateusz Loskot
f7d83feb83 Sync gil_reference_checksums.txt with version in master 2018-06-27 00:02:27 -04:00
Mateusz Loskot
bd44e406c2 Revert: Temporarily comment the four checksum cases failing image tests
Reverts commit SHA-1:e80f9d2f4b2c688b3f7a77b9845e28793e4f5d0b

Preparing to verify if fix for overflowing bit-shift operation (UB)
suggested by Andrey Semashev via Boost ML will fix the checksum bug too.
See discussions for #46 and #50 for details.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
fe67000f7e Temporarily comment the four checksum cases failing image tests.
This is to decrease noise of CI builds failures
until #49 issue has been resolved.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
fab99207f2 Add basic CMake configuration for Boost.GIL
First stab at collection of CMakeLists.txt for Boost.GIL
  - Allow building and testing boostorg/gil against Boost from
    cloned superproject or installed distribution.
Add CMakeSettings.json config file for VS2017 integration with CMake
  - Defines build configurations for VS and Ninja generators.
  - Can be used as is or as a template ready to customise.
Add conanfile.txt for Conan package manager (eg. for cmake -DGIL_USE_CONAN=ON).
Add .editignore file to with basic encoding of CMake and CI scripts.
Update .appveyor.yml with two extra CMake-based builds (allowed to fail).
2018-06-27 00:02:27 -04:00
Mateusz Loskot
5a67de8875 Allow test/image.cpp accept checksums file via command line argument
Print calculate checksum in test output and print expected
checksum too in case of test case failure.
2018-06-27 00:02:27 -04:00
Mateusz Loskot
6068807868 Catch std::exception in main of test programs
Refines #37
2018-06-27 00:02:27 -04:00
Mateusz Loskot
2c1af1d420 Remove unused define BOOST_GIL_NO_IO 2018-06-27 00:02:27 -04:00
Mateusz Loskot
93d99f4964 Add try-catch to avoid std::terminate on test program failure 2018-06-27 00:02:27 -04:00
Stefan Seefeld
2ae1c629a1 Add more build options. 2018-06-27 00:02:27 -04:00
Stefan Seefeld
e2c423bb8f Fix file lookup error. 2018-06-27 00:02:27 -04:00
Stefan Seefeld
986f3b999f Add faber support. 2018-06-27 00:02:27 -04:00
Stefan Seefeld
31879b85cb Stop using boost::test 2018-06-27 00:02:27 -04:00
Christian Henning
833e73459b there is no resize() for images. Changing to recreate() 2018-06-27 00:02:27 -04:00
Christian Henning
2b46211992 Added test code to make sure cross byte pixel values work correctly. See comments.
[SVN r65173]
2018-06-27 00:02:27 -04:00
Christian Henning
d595713754 Tests for recreating images.
[SVN r84020]
2018-06-27 00:02:27 -04:00
Christian Henning
edeee14d4d Commented out some cout's when running test cases.
[SVN r83576]
2018-06-27 00:02:27 -04:00
Christian Henning
7944bdd397 Changed gil's test suite to use boost::test.
[SVN r83575]
2018-06-27 00:02:27 -04:00
Christian Henning
b7109dd3a7 #4517
[SVN r83107]
2018-06-27 00:02:27 -04:00
Christian Henning
6631602f89 Added test code to make sure cross byte pixel values work correctly. See comments.
[SVN r65173]
2018-06-27 00:02:27 -04:00
Edward Diener
85fb44d6eb Removed executable attribute from files. 2017-11-05 02:58:03 +02:00
Christian Henning
d14d22caf7 Updated gil release from boost trunk.
[SVN r58300]
2009-12-11 21:40:24 +00:00
Troy D. Straszheim
6c4bc7af41 rm cmake from the release branch before it goes out broken. Policy dictates that you never commit to release, you commit to trunk and merge to release.
[SVN r56941]
2009-10-17 01:10:45 +00:00
Troy D. Straszheim
4cc46fd8f6 Add basic copyright/license to keep cmake out of the inspection report
[SVN r55095]
2009-07-22 21:51:01 +00:00
Daniel James
f15809f257 Update the gil documentation.
Merged revisions 52726-52731 via svnmerge from 
https://svn.boost.org/svn/boost/trunk

........
  r52726 | danieljames | 2009-05-02 13:38:39 +0100 (Sat, 02 May 2009) | 3 lines
  
  Check in the doxygen files for building standalone gil docs.
  
  They are mostly unchanged. I've just changed some of the paths.
........
  r52727 | danieljames | 2009-05-02 13:39:02 +0100 (Sat, 02 May 2009) | 16 lines
  
  Make the gil doxygen docs a litte more boost friendly and a bit to build.
  
  * Add a shell script to make building easier.
  * Merge the two different versions of adobe_source.css.
  * `shorten_file_name.sh`:
    * Add copyright.
    * Use GNU sed and expr in shorten_file_name.sh.
    * Optimise it slightly by using xargs instead of a loop.
    * Only shorten file names in html files.
  * `header.html`:
    * Add copyright notice to doxygen header.
    * Remove google analytics tags.
    * Remove adobe RSS feed.
    * Remove the link to `globals.html` as it isn't generated.
    * Rename to `header_html.txt` to stop inspect complaining about it.
  * Remove `insert_boost_licence.sh` as the copyright is already in the header.
........
  r52728 | danieljames | 2009-05-02 13:43:21 +0100 (Sat, 02 May 2009) | 1 line
  
  Regenerate gil documentation.
........
  r52729 | danieljames | 2009-05-02 13:45:17 +0100 (Sat, 02 May 2009) | 1 line
  
  Redirect to the correct page for the adobe docs.
........
  r52730 | danieljames | 2009-05-02 13:45:51 +0100 (Sat, 02 May 2009) | 1 line
  
  Detab a few files.
........
  r52731 | danieljames | 2009-05-02 13:58:46 +0100 (Sat, 02 May 2009) | 3 lines
  
  Generate GIL documentation again.
  
  Something went wrong checking it in last time.
........


[SVN r53046]
2009-05-16 14:11:54 +00:00
Douglas Gregor
afcd17e92f Fix GIL image test for CMake
[SVN r52893]
2009-05-11 03:11:03 +00:00
Daniel James
a587183076 Detab a few files.
[SVN r52730]
2009-05-02 12:45:51 +00:00
Troy D. Straszheim
44871518f5 merge of cmake build files from trunk per beman
[SVN r50756]
2009-01-24 18:57:20 +00:00
Michael A. Jackson
7057c05685 Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00
Michael A. Jackson
143f65c464 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Beman Dawes
8fed7d4a1e Merge gil changes from trunk per Lubomir Bourdev
[SVN r47246]
2008-07-08 18:56:09 +00:00
John Maddock
3412889eed Merged licence/copyright fixes from Trunk.
[SVN r43649]
2008-03-16 10:26:10 +00:00
Hailin Jin
c11bd9beeb Added copyright notice and Boost license
[SVN r43643]
2008-03-15 23:45:25 +00:00
Hailin Jin
bc6f1f7d89 GIL: fixed the problem with std::hex by adding #include <ios>
[SVN r42917]
2008-01-22 22:10:48 +00:00
Lubomir Bourdev
40f057b910 GIL: Fixed Intel compiler errors.
[SVN r42023]
2007-12-14 05:32:21 +00:00
Hailin Jin
4631b9a4f4 GIL: fixed the Makefile along with a minor fix
[SVN r42001]
2007-12-13 01:28:15 +00:00
Beman Dawes
2a7dcebb2b Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41370]
2007-11-25 18:38:02 +00:00
Beman Dawes
6e2ae34489 Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41369]
2007-11-25 18:07:19 +00:00
Hailin Jin
ed397659f0 GIL: broke the main test into small tests
[SVN r41241]
2007-11-19 18:34:59 +00:00
Lubomir Bourdev
77b9620a8b Updated to version 2.1.2
Added support for more compilers.
Added new flag GIL_NONWORD_POINTER_ALIGNMENT_SUPPORTED to indicate whether dereferencing on non-word
boundary is supported. Enabling this flag improves performance.
Fixed two bugs related to non-byte-aligned images. The image alignment parameter is now specified in
bytes, and has a default of 0, which means "packed" alignment. In particular, for non-byte-aligned
images alignment of 0 means there are no padding bits at the ends of rows.
Added the allocator as an optional parameter to image constructors and image recreate methods.



[SVN r41165]
2007-11-17 03:38:25 +00:00
Hailin Jin
0bdf433b19 GIL: added namespace prefix to avoid confusion
[SVN r40937]
2007-11-08 17:35:37 +00:00