/third_party/boost/libs/gil/test/extension/numeric/ |
D | channel_numeric_operations.cpp | 27 using channel_t = Channel; in operator ()() typedef 28 gil::channel_plus_t<channel_t, channel_t, channel_t> f; in operator ()() 29 BOOST_TEST_EQ(f(0, 0), channel_t(0)); in operator ()() 30 BOOST_TEST_EQ(f(100, 27), channel_t(127)); in operator ()() 43 using channel_t = Channel; in operator ()() typedef 45 using channel1_t = channel_t; in operator ()() 49 BOOST_TEST_EQ(f(100, 27), channel_t(127)); in operator ()() 53 using channel2_t = channel_t; in operator ()() 56 BOOST_TEST_EQ(f(100, 27), channel_t(127)); in operator ()() 70 using channel_t = Channel; in operator ()() typedef [all …]
|
D | pixel_numeric_operations.cpp | 29 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 33 gil::static_fill(p0, static_cast<channel_t>(0)); in operator ()() 38 gil::static_fill(p1, static_cast<channel_t>(1)); in operator ()() 40 gil::static_fill(r2, static_cast<channel_t>(2)); in operator ()() 45 fixture::consecutive_value<channel_t> g(1); in operator ()() 65 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 69 gil::static_fill(p0, static_cast<channel_t>(0)); in operator ()() 73 gil::static_fill(p1, static_cast<channel_t>(1)); in operator ()() 74 gil::static_fill(p2, static_cast<channel_t>(2)); in operator ()() 76 gil::static_fill(r1, static_cast<channel_t>(1)); in operator ()() [all …]
|
D | convolve.cpp | 33 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 34 auto const kernel = fixture::create_kernel<channel_t>({1}); in operator ()() 56 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 57 auto const kernel = fixture::create_kernel<channel_t>({0, 0, 0, 0, 1, 0, 0, 0, 0}); in operator ()() 75 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 76 auto const img = fixture::generate_image<image_t>(3, 3, fixture::random_value<channel_t>{}); in operator ()() 79 auto const kernel = fixture::create_kernel<channel_t>({0, 0, 0, 0, 1, 0, 0, 0, 0}); in operator ()() 97 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 98 auto const img = fixture::generate_image<image_t>(5, 5, fixture::random_value<channel_t>{}); in operator ()() 101 auto const kernel = fixture::create_kernel<channel_t>({0, 0, 0, 0, 1, 0, 0, 0, 0}); in operator ()()
|
D | convolve_cols.cpp | 32 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 33 auto const kernel = fixture::create_kernel<channel_t>({1}); in operator ()() 55 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 56 auto const kernel = fixture::create_kernel<channel_t>({0, 0, 0, 0, 1, 0, 0, 0, 0}); in operator ()()
|
D | convolve_rows.cpp | 32 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 33 auto const kernel = fixture::create_kernel<channel_t>({1}); in operator ()() 55 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 56 auto const kernel = fixture::create_kernel<channel_t>({0, 0, 0, 0, 1, 0, 0, 0, 0}); in operator ()()
|
/third_party/boost/libs/gil/test/core/channel/ |
D | algorithm_channel_convert.cpp | 23 using channel_t = typename fixture::channel<ChannelFixtureBase>::channel_t; typedef 29 channel_value_t min_v = gil::channel_convert<channel_t>(src_min_v); in from() 30 channel_value_t max_v = gil::channel_convert<channel_t>(src_max_v); in from() 43 using channel_t = TargetChannel; in test_channel_value_convert_from_integral() typedef 45 test_convert_to<fixture::channel_value<channel_t>>::from(f.min_v_, f.max_v_); in test_channel_value_convert_from_integral() 46 test_convert_to<fixture::channel_reference<channel_t&>>::from(f.min_v_, f.max_v_); in test_channel_value_convert_from_integral() 47 test_convert_to<fixture::channel_reference<channel_t const&>>::from(f.min_v_, f.max_v_); in test_channel_value_convert_from_integral() 69 using channel_t = Channel; in operator ()() typedef 70 test_channel_value_convert_from_integral<std::uint8_t, channel_t>(); in operator ()() 83 using channel_t = Channel; in operator ()() typedef [all …]
|
D | test_fixture.hpp | 93 using channel_t = typename ChannelFixtureBase::channel_t; typedef 94 using channel_value_t = typename gil::channel_traits<channel_t>::value_type; 98 BOOST_TEST_EQ(this->min_v_, gil::channel_traits<channel_t>::min_value()); in channel() 99 BOOST_TEST_EQ(this->max_v_, gil::channel_traits<channel_t>::max_value()); in channel() 114 using channel_t = ChannelValue; typedef 115 channel_t min_v_; 116 channel_t max_v_; 132 using channel_t = ChannelRef; typedef 133 channel_t min_v_; 134 channel_t max_v_; [all …]
|
D | test_fixture.cpp | 21 using channel_t = Channel; in operator ()() typedef 22 fixture::channel_minmax_value<channel_t> fix; in operator ()() 23 fixture::channel_minmax_value<channel_t> exp; in operator ()() 38 using channel_t = Channel; in operator ()() typedef 39 fixture::channel_value<channel_t> fix; in operator ()() 40 fixture::channel_minmax_value<channel_t> exp; in operator ()() 55 using channel_t = Channel; in operator ()() typedef 56 fixture::channel_reference<channel_t &> fix; in operator ()() 57 fixture::channel_minmax_value<channel_t> exp; in operator ()() 72 using channel_t = Channel; in operator ()() typedef [all …]
|
D | algorithm_channel_invert.cpp | 33 using channel_t = Channel; in operator ()() typedef 34 using fixture_t = fixture::channel_value<channel_t>; in operator ()() 48 using channel_t = Channel; in operator ()() typedef 49 using fixture_t = fixture::channel_reference<channel_t&>; in operator ()() 63 using channel_t = Channel; in operator ()() typedef 64 using fixture_t = fixture::channel_reference<channel_t const&>; in operator ()()
|
D | algorithm_channel_multiply.cpp | 34 using channel_t = Channel; in operator ()() typedef 35 using fixture_t = fixture::channel_value<channel_t>; in operator ()() 49 using channel_t = Channel; in operator ()() typedef 50 using fixture_t = fixture::channel_reference<channel_t&>; in operator ()() 64 using channel_t = Channel; in operator ()() typedef 65 using fixture_t = fixture::channel_reference<channel_t const&>; in operator ()()
|
D | algorithm_channel_relation.cpp | 42 using channel_t = Channel; in operator ()() typedef 43 using fixture_t = fixture::channel_value<channel_t>; in operator ()() 57 using channel_t = Channel; in operator ()() typedef 58 using fixture_t = fixture::channel_reference<channel_t&>; in operator ()() 72 using channel_t = Channel; in operator ()() typedef 73 using fixture_t = fixture::channel_reference<channel_t const&>; in operator ()()
|
D | algorithm_channel_arithmetic.cpp | 77 gil::channel_traits<typename fixture_t::channel_t>::is_mutable in test_channel_arithmetic() 87 using channel_t = Channel; in operator ()() typedef 88 using fixture_t = fixture::channel_value<channel_t>; in operator ()() 102 using channel_t = Channel; in operator ()() typedef 103 using fixture_t = fixture::channel_reference<channel_t &>; in operator ()() 117 using channel_t = Channel; in operator ()() typedef 118 using fixture_t = fixture::channel_reference<channel_t const &>; in operator ()()
|
/third_party/boost/boost/gil/ |
D | pixel.hpp | 108 using channel_t = ChannelValue; typedef 119 static constexpr bool is_mutable = channel_traits<channel_t>::is_mutable; 122 explicit pixel(channel_t v) : parent_t(v) {} // sets all channels to v in pixel() 123 pixel(channel_t v0, channel_t v1) : parent_t(v0, v1) {} in pixel() 124 pixel(channel_t v0, channel_t v1, channel_t v2) : parent_t(v0, v1, v2) {} in pixel() 126 pixel(channel_t v0, channel_t v1, channel_t v2, channel_t v3) in pixel() 130 pixel(channel_t v0, channel_t v1, channel_t v2, channel_t v3, channel_t v4) in pixel() 134 pixel(channel_t v0, channel_t v1, channel_t v2, channel_t v3, channel_t v4, channel_t v5) in pixel() 170 -> typename channel_traits<channel_t>::reference in operator []() 176 -> typename channel_traits<channel_t>::const_reference in operator []() [all …]
|
D | image_view_factory.hpp | 366 using channel_t = typename channel_type<src_pixel_t>::type; typedef 368 using ref_t = typename pixel_reference_type<channel_t,gray_layout_t,false,is_mutable>::type; 371 using value_type = typename pixel_value_type<channel_t,gray_layout_t>::type; 372 … using const_reference = typename pixel_reference_type<channel_t,gray_layout_t,false,false>::type; 440 using channel_t = typename kth_element_type<typename View::value_type,K>::type; typedef 442 …using type = typename view_type<channel_t, gray_layout_t, false, true, view_is_mutable<View>::valu… 457 using channel_t = typename kth_element_type<typename View::value_type, K>::type; typedef 459 …using type = typename view_type<channel_t, gray_layout_t, false, false, view_is_mutable<View>::val… 502 using channel_t = typename kth_element_type<src_pixel_t, K>::type; typedef 504 using ref_t = typename pixel_reference_type<channel_t,gray_layout_t,false,is_mutable>::type; [all …]
|
/third_party/boost/libs/gil/test/legacy/ |
D | channel.cpp | 51 using channel_t = typename ChannelTestCore::channel_t; typedef 52 using channel_value_t = typename channel_traits<channel_t>::value_type; 55 error_if(this->_min_v != channel_traits<channel_t>::min_value()); in do_test() 56 error_if(this->_max_v != channel_traits<channel_t>::max_value()); in do_test() 111 test_mutable(std::integral_constant<bool, channel_traits<channel_t>::is_mutable>()); in test_channel_math() 129 v_min=channel_convert<channel_t>(c8_min); in test_channel_convert() 130 v_max=channel_convert<channel_t>(c8_max); in test_channel_convert() 133 v_min=channel_convert<channel_t>(c8s_min); in test_channel_convert() 134 v_max=channel_convert<channel_t>(c8s_max); in test_channel_convert() 137 v_min=channel_convert<channel_t>(c16_min); in test_channel_convert() [all …]
|
/third_party/boost/boost/gil/extension/io/tiff/detail/ |
D | scanline_read.hpp | 112 … using channel_t = channel_type<get_pixel_type<gray1_image_t::view_t>::type>::type; in initialize() typedef 114 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() 131 … using channel_t = channel_type<get_pixel_type<gray2_image_t::view_t>::type>::type; in initialize() typedef 133 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() 149 … using channel_t = channel_type<get_pixel_type<gray4_image_t::view_t>::type>::type; in initialize() typedef 151 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() 168 … using channel_t = channel_type<get_pixel_type<gray8_image_t::view_t>::type>::type; in initialize() typedef 170 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() 187 … using channel_t = channel_type<get_pixel_type<gray16_image_t::view_t>::type>::type; in initialize() typedef 189 int num_colors = channel_traits< channel_t >::max_value() + 1; in initialize() [all …]
|
D | is_allowed.hpp | 145 using channel_t = typename channel_traits<typename element_type<pixel_t>::type>::value_type; in compare_channel_sizes() typedef 147 unsigned int s = detail::unsigned_integral_num_bits< channel_t >::value; in compare_channel_sizes() 160 using channel_t = typename channel_traits<typename element_type<ref_t>::type>::value_type; in compare_channel_sizes() typedef 162 unsigned int s = detail::unsigned_integral_num_bits< channel_t >::value; in compare_channel_sizes() 222 using channel_t = typename channel_traits<typename element_type<pixel_t>::type>::value_type; in is_allowed() typedef 229 const num_channel_t dst_sample_format = Format_Type<View, channel_t>::value; in is_allowed()
|
D | writer_backend.hpp | 52 using channel_t = typename channel_traits<typename element_type<pixel_t>::type>::value_type; in write_header() typedef 90 …tiff_bits_per_sample::type bits_per_sample = detail::unsigned_integral_num_bits< channel_t >::valu… in write_header() 94 tiff_sample_format::type sampl_format = detail::sample_format< channel_t >::value; in write_header()
|
/third_party/boost/boost/gil/image_processing/ |
D | scaling.hpp | 51 using channel_t = typename std::remove_reference in lanczos_at() typedef 57 static_transform(result_pixel, result_pixel, [](channel_t) { in lanczos_at() argument 58 return static_cast<channel_t>(0); in lanczos_at() 74 auto op = [lanczos_response](channel_t prev, channel_t next) in lanczos_at() 76 return static_cast<channel_t>(prev + next * lanczos_response); in lanczos_at()
|
D | hessian.hpp | 39 using channel_t = typename std::remove_reference in compute_hessian_responses() typedef 50 auto ddxx_i = channel_t(); in compute_hessian_responses() 51 auto ddyy_i = channel_t(); in compute_hessian_responses() 52 auto dxdy_i = channel_t(); in compute_hessian_responses()
|
/third_party/boost/libs/fiber/examples/ |
D | range_for.cpp | 14 typedef boost::fibers::unbuffered_channel< unsigned int > channel_t; typedef 16 void foo( channel_t & chan) { in foo() 27 void bar( channel_t & chan) { in bar() 36 channel_t chan; in main()
|
/third_party/boost/boost/gil/extension/io/raw/detail/ |
D | is_allowed.hpp | 25 …using channel_t = typename channel_traits<typename element_type<typename View::value_type>::type>:… in is_allowed() typedef 28 … constexpr unsigned int dst_bits_per_pixel = detail::unsigned_integral_num_bits<channel_t>::value; in is_allowed() 29 constexpr bool is_type_signed = std::is_signed<channel_t>::value; in is_allowed()
|
/third_party/boost/libs/gil/test/core/pixel/ |
D | test_fixture.cpp | 55 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 57 channel_t const sample_channel = 2; in operator ()() 91 using channel_t = typename gil::channel_type<pixel_t>::type; in operator ()() typedef 93 channel_t const sample_channel = 3; in operator ()()
|
/third_party/boost/libs/gil/test/core/image/ |
D | test_fixture.hpp | 71 using channel_t = typename gil::channel_type<pixel_t>::type; in create_image() typedef 72 static_assert(std::is_integral<channel_t>::value, "channel must be integral type"); in create_image() 76 gil::static_fill(p, static_cast<channel_t>(channel_value)); in create_image()
|
/third_party/boost/libs/gil/test/extension/toolbox/ |
D | channel_type.cpp | 36 using channel_t = gil::channel_type<image_t::view_t::reference>::type; in test_channel_type() typedef 37 static_assert(gil::detail::is_channel_integral<channel_t>::value, ""); in test_channel_type()
|