2
0
mirror of https://github.com/boostorg/gil.git synced 2026-01-20 16:42:13 +00:00

11 Commits

Author SHA1 Message Date
Mateusz Łoskot
2409be4bd6 test: Add more basic cases for image class (#423)
This hopefully will begin extensive test suite for the image class to
maintain decent coverage for this major class of GIL.
2022-06-29 23:00:03 +02:00
Samuel Debionne
4dbf35a510 Add pmr image typedefs (#529)
* Add pmr image typedefs

* Swap allocators only if it propagate on container

* Do not call propagate_on_container_swap for C++14

Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
2022-06-28 07:35:27 +01:00
Mateusz Łoskot
a0ac9fb4aa test: Case test_constructor_from_view was not called 2022-06-28 00:34:44 +02:00
Dirk Stolle
4f83beb735 style: Remove trailing space characters (#651) 2022-04-26 20:52:56 +02:00
theroyn
2e2764225f Support constructing a planar image from interleaved image (#552)
Fixes #478
2021-01-30 21:11:51 +01:00
Samuel Debionne
f374a672a0 Add image constructor from compatible view (#520)
* Use pixels_are_compatible instead of std::is_convertible
2020-10-11 21:38:36 +02:00
Samuel Debionne
05ee4c8cc6 Fix image constructor from other image (#477)
Add image constructor test for constructor from other image type
that exercises the template constructor.
2020-04-11 13:21:21 +02:00
Samuel Debionne
9b055f285b Add move semantics to image class (#457)
Since we do not require C++17 yet with its `if constexpr
that would discard instantiation of allocator's `operator=`
when the statement is not active, we have to use the tag
dispatching with appropriate used of
`propagate_on_container_move_assignment` and
rebound `allocator_type` to choose the POCMA.

Minor coding style fixes.
2020-04-06 23:50:01 +02:00
Mateusz Łoskot
f641190948 Replace BOOST_TEST with BOOST_TEST_EQ for streamable operands (#472)
Improve utilities sending channels, pixels and other GIL objects to
output stream for logging of test errors.

Fix missing namespace qualification in IO tests.

Comment TARGA test case with FIXME that was accidentally
uncommented in cc64bdd1a4
2020-04-01 01:54:12 +02:00
Mateusz Łoskot
dda885e5ff Replace Boost.Test with Boost.LightweightTest in test/ (#459)
Motivation is to:
- use on simpler and light test framework,
- eliminate dependency on libraries like Boost.MPL,
- achieve faster compilation times for CI builds (20% seems feasible)
- have test programs easy to run and debug
- avoid macros

Remove outdated FIXME-s for bugs that have been already fixed.
Fix off-by-one bug in test/core/test_fixture.hpp generators.
Minor corrections and tidying up.

Add missing test assertions to numeric extension tests.
Fixes #458
2020-03-21 22:53:09 +01:00
Mateusz Łoskot
5f3c00244b Fix missing alignment default value in image constructor (#429)
Fixes #424 blocking PR #423
2020-02-01 18:02:43 +01:00