X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fgil%2Fextension%2Fnumeric%2Falgorithm.hpp;h=2fbd4b02455f624a873c4333882f60fd80a9e38e;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=bbe0eab3bf76e3502ed12c24f5bdeaa5d8d6e77b;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/gil/extension/numeric/algorithm.hpp b/ceph/src/boost/boost/gil/extension/numeric/algorithm.hpp index bbe0eab3b..2fbd4b024 100644 --- a/ceph/src/boost/boost/gil/extension/numeric/algorithm.hpp +++ b/ceph/src/boost/boost/gil/extension/numeric/algorithm.hpp @@ -267,7 +267,7 @@ namespace detail template void extend_row_impl( - SrcView src_view, + SrcView const& src_view, RltView result_view, std::size_t extend_count, boundary_option option) @@ -281,8 +281,8 @@ void extend_row_impl( if(i >= extend_count_ && i < extend_count_ + src_view.height()) { assign_pixels( - src_view.row_begin(i - extend_count_), - src_view.row_end(i - extend_count_), + src_view.row_begin(i - extend_count_), + src_view.row_end(i - extend_count_), result_view.row_begin(i) ); } @@ -293,12 +293,12 @@ void extend_row_impl( else { assign_pixels( - src_view.row_begin(src_view.height() - 1), - src_view.row_end(src_view.height() - 1), + src_view.row_begin(src_view.height() - 1), + src_view.row_end(src_view.height() - 1), result_view.row_begin(i) ); } - + } } else if (option == boundary_option::extend_zero) @@ -316,7 +316,7 @@ void extend_row_impl( result_view.row_begin(i) ); } - else + else { std::fill_n(result_view.row_begin(i), result_view.width(), acc_zero); } @@ -357,7 +357,7 @@ void extend_row_impl( /// \tparam option - TODO template auto extend_row( - SrcView src_view, + SrcView const& src_view, std::size_t extend_count, boundary_option option ) -> typename gil::image @@ -372,14 +372,14 @@ auto extend_row( /// \brief adds new column at left and right. -/// Image padding introduces new pixels around the edges of an image. +/// Image padding introduces new pixels around the edges of an image. /// The border provides space for annotations or acts as a boundary when using advanced filtering techniques. /// \tparam SrcView Models ImageViewConcept /// \tparam extend_count number of columns to be added each side /// \tparam option - TODO template auto extend_col( - SrcView src_view, + SrcView const& src_view, std::size_t extend_count, boundary_option option ) -> typename gil::image @@ -395,14 +395,14 @@ auto extend_col( } /// \brief adds new row and column at all sides. -/// Image padding introduces new pixels around the edges of an image. +/// Image padding introduces new pixels around the edges of an image. /// The border provides space for annotations or acts as a boundary when using advanced filtering techniques. /// \tparam SrcView Models ImageViewConcept /// \tparam extend_count number of rows/column to be added each side /// \tparam option - TODO template auto extend_boundary( - SrcView src_view, + SrcView const& src_view, std::size_t extend_count, boundary_option option ) -> typename gil::image