2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-26 16:52:10 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
Mateusz Łoskot
45ca507ca3 Replace some uses of boost::is_same with std::is_same (#225)
Those are places boost::is_same can be replaced in non-intrusive way.
Remaining are types derived from boost::is_same, where the replacing
would affect all their uses - effectively switching from boost::true_/false_ types
to std::true_type and std::false_type.
Such change needs to come along with Boost.MPL to MP11 migration.
2019-01-27 10:54:05 +00:00
Mateusz Łoskot
e3ef52bb80 Correct order of constexpr and type specifier
The constexpr belongs to the declaration specifiers (like static) and
not just the type specifiers (like cv-qualifiers), so it binds to
the declaration (like static), not the type (like const).

Refines #211
2019-01-15 00:42:20 +01:00
Mateusz Loskot
78b7dcfeca Remove uses of Boost.Bind and Boost.Lambda (#212)
Replace with std::bind and C++11 lambda functions.
The two Boost libraries should no longer be a direct
dependency of Boost.GIL.
2019-01-13 02:03:25 +01:00
Mateusz Loskot
a2b2ca977a Replace BOOST_STATIC_CONSTANT with constexpr (#211)
Tidy up formatting of refactored parts of code.
2019-01-12 23:57:35 +01:00
Mateusz Loskot
6e3ccc00b1 Remove dependency on Boost.StaticAssert (#207)
Replaced BOOST_STATIC_ASSERT with C++11 binary static_assert,
with empty message.

In future, this should make it possible to automatically refactor
into C++17 unary static_assert using clang-tidy and
its modernize-unary-static-assert check.

Closes #106
2019-01-11 10:33:09 +01:00
Mateusz Loskot
bf67e796c6 Apply clang-tidy modernize-use-using to all tests (#199)
Run clang-tidy 7.0 with `-checks='-*,modernize-use-using' -fix`
against TU-s of all tests.

Manually refactor numerous typedef-s
- where missed by modernize-use-using check, not uncommon
- in code snippets in comments

Outcome is that searching for lower-case whole word typedef
in sources of all the tests should return no matches.
2018-12-18 00:13:39 +01:00
Mateusz Loskot
78110fc89c Apply clang-tidy modernize-use-override (#182)
Used clang-tidy 7.0 with the command:

run-clang-tidy.py \
    -header-filter='boost\/gil\/.*'
    -checks='-*,modernize-use-override' -fix
2018-12-10 23:10:22 +01:00
Mateusz Łoskot
28df5bc482 Clean up several warnings about unreferenced formal parameters
Add comment to premultiply.hpp:
- FIXME: Is c input paramater not used intentionally?
2018-10-29 15:26:53 +01:00
Mateusz Loskot
ce82941fa2 Rename point2<T> to point<T> (#155)
Add point2<T> alias template for backward compatibility with Boost <=1.68.
Replace multiple point_t aliases of point<ptrdiff_t> with single defined
in point.hpp. The point_t is common used to represent dimensions.
Replace many uses of point<ptrdiff_t> with point_t.

Apply reformatting around point2 changes to respect the line length limit.

Follows up discussion in #154
2018-10-19 09:32:23 +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 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
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
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
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
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
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
93d99f4964 Add try-catch to avoid std::terminate on test program failure 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
31879b85cb Stop using boost::test 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
d14d22caf7 Updated gil release from boost trunk.
[SVN r58300]
2009-12-11 21:40:24 +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
Beman Dawes
8fed7d4a1e Merge gil changes from trunk per Lubomir Bourdev
[SVN r47246]
2008-07-08 18:56:09 +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
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
Hailin Jin
d3a8a4103f GIL: fixed the test files to the new bit_aligned_pixel_reference interface
[SVN r39510]
2007-09-24 18:20:56 +00:00
Hailin Jin
db55fd2347 GIL: fixed the C4503 warnings under VC
[SVN r39392]
2007-09-19 18:41:47 +00:00
Lubomir Bourdev
2ad6747dd0 GIL 2.0 to 2.1 (see http://opensource.adobe.com/gil/gil2.1_changes.pdf). GIL 2.1 to 2.1.1 (see http://sourceforge.net/forum/forum.php?thread_id=1824588&forum_id=648138)
[SVN r39339]
2007-09-17 08:12:19 +00:00
Lubomir Bourdev
560f17c1d1 Hooked up GIL regression tests to run from boost/status
Added kth_channel_view (like nth_channel_view but operates on heterogeneous views)


[SVN r37659]
2007-05-10 22:39:02 +00:00
Lubomir Bourdev
bde62ada6b Fixed headers to refer to the Boost license.
[SVN r37610]
2007-05-07 07:33:33 +00:00
Lubomir Bourdev
9311679cb0 Initial version of boost/libs/gil
[SVN r37496]
2007-04-24 01:58:42 +00:00