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

35 Commits

Author SHA1 Message Date
Mateusz Łoskot
e99db3d0c4 [cmake] Tidy up [ci skip] 2018-12-12 14:00:13 +01:00
Mateusz Łoskot
92cddb3f71 [cmake] Bundle all Boost and IO libraries in gil_dependencies target
Simplify generating of IO tests targets, remove lots of duplicate cruft.
Tidy up CMake scripts.
2018-12-08 23:20:54 +01:00
Mateusz Łoskot
63c450c2a9 Modernize CMake configuration
Replace global compile options and definitions with interface targets.
Remove globing for headers.
Set project version based on GIL version.
Remove GIL_BUILD_TESTS option as redundant - there is no point in
using CMake for development of header-only library if no tests
are to be built.
2018-12-08 01:05:47 +01:00
Mateusz Loskot
63e2a1a98a Fix compile-time bugs subchroma_image.hpp definions (#164)
Add missing typename in mpl::if_ condition result.
Restore BOOST_CXX14_CONSTEXPR in boost::algorithm::clamp function
- apparently, GCC 5.5.0 does not compile it with C++11 constexpr.
Still not adding subchroma_image.cpp to toolbox test target
input sources due to run-time failure.

Depends on #176
2018-12-07 23:55:13 +01:00
Mateusz Łoskot
5fd0f7878c [cmake] Prefix status messages with Boost.GIL for source clarity [ci skip]
Remove GIL_USE_BOOST_STAGE as unnecessary.
Download FindBoost.cmake for <3.13 - this module in CMake 3.13
received some important updates.
2018-10-29 14:01:48 +01:00
Mateusz Loskot
4bd51cdba5 Fix undefined behaviour due to unsequenced side effects of same scalar (#163) 2018-10-25 13:38:22 +02:00
Mateusz Łoskot
1faab668e2 [toolbox] Fix warning due to implicit int to uint8_t conversion 2018-10-24 18:12:16 +02:00
Mateusz Łoskot
4284d2d4dd [toolbox] Fix warning due to implicit int to uint8_t conversion 2018-10-24 17:59:24 +02:00
Mateusz Łoskot
32fec9f05b Refactor library includes to #include <boost/gil/...>
Group include directives, sort within group:
* In headers of GIL core and extensions:
  1. boost/gil/extension/*
  2. boost/gil/*
  3. boost/*
  4. C++ standard library headers
* In programs:
  1. boost/gil/*
  2. boost/*
  3. C++ standard library headers
  4. "xxx.hpp" for local headers
Add basic guidelines to CONTRIBUTING.md.
Add/Remove #include <boost/config.hpp> or std headers un/necessary.
Rename gil_concept.hpp to concepts.hpp.
Remove gil_all.hpp - we already have all-in-one boost/gil.hpp.
Tidy up and unify copyright and license header.
Tidy up formatting and excessive whitespaces in some comments.
Remove Doxygen block with file description, author, date, etc.
Remove dead or commented pragmas and directives.
Trim trailing whitespaces.
2018-09-28 16:26:34 +02:00
Mateusz Łoskot
ecc19de7c9 Simplify and clean up Jamfiles
Rename Jamfile.v2 to Jamfile - BBV1 is dead.
Remove numeric/test/test.cpp as redundant.
2018-09-21 18:02:37 +02:00
Mateusz Łoskot
bfb0c15323 [cmake] Update FindBoost.cmake auto-download instructions [ci skip]
Add GIL_DISABLE_FINDBOOST_DOWNLAOD option (default=OFF).
Output values of Boost_INCLUDE_DIRS and BOOST_LIBRARY_DIRS
  - should help to know which Boost we are building GIL against.
Fix add_executable with empty sources list.
2018-06-27 00:02:27 -04:00
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
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
Christian Henning
f82c0ccc85 toolbox doc corrections 2018-06-27 00:02:27 -04:00
Christian Henning
d881a3c8db Fixed issues raised by reviewer 2018-06-27 00:02:27 -04:00
Christian Henning
9a7bfe8f71 generate indexed_image_view from two views 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
Stefan Seefeld
2ae1c629a1 Add more build options. 2018-06-27 00:02:27 -04:00
Stefan Seefeld
b5098d802a Add fabscripts for IO and Toolbox tests. 2018-06-27 00:02:27 -04:00
Stefan Seefeld
0232add43c Add toolbox tests. 2018-06-27 00:02:27 -04:00
Christian Henning
e388f8bfa2 More tests for subchroma image.
[SVN r84091]
2018-06-27 00:02:27 -04:00
Christian Henning
ac53ba14d6 Renamed test suite.
[SVN r84080]
2018-06-27 00:02:27 -04:00
Christian Henning
671625f4e4 Added support for different kinds of subchroma image types.
[SVN r84079]
2018-06-27 00:02:27 -04:00
Christian Henning
8c2b315fd8 Added sub-image factors as template parameters.
[SVN r83883]
2018-06-27 00:02:27 -04:00
Christian Henning
c9267d3ffe Change to more appropriate image type name.
[SVN r83876]
2018-06-27 00:02:27 -04:00
Christian Henning
3ec46ced05 Test cases for subsampled_image and ycbcr color space.
[SVN r83606]
2018-06-27 00:02:27 -04:00
Christian Henning
b1d81008e0 Some subsampled_image tests.
[SVN r83502]
2018-06-27 00:02:27 -04:00
Christian Henning
fc6b74a8e3 Added Missing Copyright and License notices.
[SVN r83194]
2018-06-27 00:02:27 -04:00
Christian Henning
75342fedd2 Added more specializations for get_num_bits.
[SVN r82882]
2018-06-27 00:02:27 -04:00
Christian Henning
f0f63aa242 Updated some tests to reflect recent changes.
[SVN r82856]
2018-06-27 00:02:27 -04:00
Christian Henning
d5ac812333 Fixed compiler errors for gcc and clang.
[SVN r82775]
2018-06-27 00:02:27 -04:00
Christian Henning
b884d1e755 Toolbox tests and documentation.
[SVN r82768]
2018-06-27 00:02:27 -04:00
Christian Henning
a674663915 The tests and documentations for toolbox extension.
[SVN r82767]
2018-06-27 00:02:27 -04:00