supported_types.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // Copyright 2007-2008 Christian Henning, Andreas Pokorny, Lubomir Bourdev
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #ifndef BOOST_GIL_EXTENSION_IO_TIFF_DETAIL_SUPPORTED_TYPES_HPP
  9. #define BOOST_GIL_EXTENSION_IO_TIFF_DETAIL_SUPPORTED_TYPES_HPP
  10. #include <boost/gil/extension/io/tiff/tags.hpp>
  11. #include <boost/gil/channel.hpp>
  12. #include <boost/gil/color_base.hpp>
  13. #include <boost/gil/io/base.hpp>
  14. #include <type_traits>
  15. namespace boost{ namespace gil {
  16. namespace detail {
  17. // Read support
  18. // TIFF virtually supports everything
  19. struct tiff_read_support : read_support_true
  20. {};
  21. // Write support
  22. struct tiff_write_support : write_support_true
  23. {};
  24. } // namespace detail
  25. template<typename Pixel>
  26. struct is_read_supported<Pixel, tiff_tag>
  27. : std::integral_constant<bool, detail::tiff_read_support::is_supported>
  28. {};
  29. template<typename Pixel>
  30. struct is_write_supported<Pixel, tiff_tag>
  31. : std::integral_constant<bool, detail::tiff_write_support::is_supported>
  32. {};
  33. }} // namespace boost::gil
  34. #endif