]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/gil/extension/numeric/resample.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / gil / extension / numeric / resample.hpp
index 5162ce5cf532a4f05b58daaf2747d3465d01eaeb..16f859113f73e17688b1d3bacde0aca18311be4f 100644 (file)
@@ -70,8 +70,8 @@ namespace detail {
 /// \brief resample_pixels when the source is run-time specified
 ///        If invoked on incompatible views, throws std::bad_cast()
 /// \ingroup ImageAlgorithms
-template <typename Sampler, typename Types1, typename V2, typename MapFn>
-void resample_pixels(const any_image_view<Types1>& src, const V2& dst, const MapFn& dst_to_src, Sampler sampler=Sampler())
+template <typename Sampler, typename ...Types1, typename V2, typename MapFn>
+void resample_pixels(const any_image_view<Types1...>& src, const V2& dst, const MapFn& dst_to_src, Sampler sampler=Sampler())
 {
     apply_operation(src, std::bind(
         detail::resample_pixels_fn<Sampler, MapFn>(dst_to_src, sampler),
@@ -82,8 +82,8 @@ void resample_pixels(const any_image_view<Types1>& src, const V2& dst, const Map
 /// \brief resample_pixels when the destination is run-time specified
 ///        If invoked on incompatible views, throws std::bad_cast()
 /// \ingroup ImageAlgorithms
-template <typename Sampler, typename V1, typename Types2, typename MapFn>
-void resample_pixels(const V1& src, const any_image_view<Types2>& dst, const MapFn& dst_to_src, Sampler sampler=Sampler())
+template <typename Sampler, typename V1, typename ...Types2, typename MapFn>
+void resample_pixels(const V1& src, const any_image_view<Types2...>& dst, const MapFn& dst_to_src, Sampler sampler=Sampler())
 {
     using namespace std::placeholders;
     apply_operation(dst, std::bind(
@@ -95,8 +95,8 @@ void resample_pixels(const V1& src, const any_image_view<Types2>& dst, const Map
 /// \brief resample_pixels when both the source and the destination are run-time specified
 ///        If invoked on incompatible views, throws std::bad_cast()
 /// \ingroup ImageAlgorithms
-template <typename Sampler, typename SrcTypes, typename DstTypes, typename MapFn>
-void resample_pixels(const any_image_view<SrcTypes>& src, const any_image_view<DstTypes>& dst, const MapFn& dst_to_src, Sampler sampler=Sampler()) {
+template <typename Sampler, typename ...SrcTypes, typename ...DstTypes, typename MapFn>
+void resample_pixels(const any_image_view<SrcTypes...>& src, const any_image_view<DstTypes...>& dst, const MapFn& dst_to_src, Sampler sampler=Sampler()) {
     apply_operation(src,dst,detail::resample_pixels_fn<Sampler,MapFn>(dst_to_src,sampler));
 }