File: dynamic_step.cpp

package info (click to toggle)
boost1.88 1.88.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 576,932 kB
  • sloc: cpp: 4,149,234; xml: 136,789; ansic: 35,092; python: 33,910; asm: 5,698; sh: 4,604; ada: 1,681; makefile: 1,633; pascal: 1,139; perl: 1,124; sql: 640; yacc: 478; ruby: 271; java: 77; lisp: 24; csh: 6
file content (133 lines) | stat: -rw-r--r-- 4,183 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
//
// Copyright 2019 Mateusz Loskot <mateusz at loskot dot net>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/gil/dynamic_step.hpp>
#include <boost/gil/image_view.hpp>
#include <boost/gil/typedefs.hpp>

namespace gil = boost::gil;

template <typename View>
void test()
{
    static_assert(
        gil::view_is_basic
        <
            typename gil::dynamic_x_step_type<View>::type
        >::value, "view does not model HasDynamicXStepTypeConcept");

    static_assert(
        gil::view_is_basic
        <
            typename gil::dynamic_y_step_type<View>::type
        >::value, "view does not model HasDynamicYStepTypeConcept");
}

int main()
{
    test<gil::gray8_view_t>();
    test<gil::gray8_step_view_t>();
    test<gil::gray8c_view_t>();
    test<gil::gray8c_step_view_t>();
    test<gil::gray16_view_t>();
    test<gil::gray16_step_view_t>();
    test<gil::gray16c_view_t>();
    test<gil::gray16c_step_view_t>();
    test<gil::gray32_view_t>();
    test<gil::gray32_step_view_t>();
    test<gil::gray32c_view_t>();
    test<gil::gray32c_step_view_t>();
    test<gil::gray32f_view_t>();
    test<gil::gray32f_step_view_t>();

    test<gil::abgr8_view_t>();
    test<gil::abgr8_step_view_t>();
    test<gil::abgr16_view_t>();
    test<gil::abgr16_step_view_t>();
    test<gil::abgr32_view_t>();
    test<gil::abgr32_step_view_t>();
    test<gil::abgr32f_view_t>();
    test<gil::abgr32f_step_view_t>();

    test<gil::argb8_view_t>();
    test<gil::argb8_step_view_t>();
    test<gil::argb16_view_t>();
    test<gil::argb16_step_view_t>();
    test<gil::argb32_view_t>();
    test<gil::argb32_step_view_t>();
    test<gil::argb32f_view_t>();
    test<gil::argb32f_step_view_t>();

    test<gil::bgr8_view_t>();
    test<gil::bgr8_step_view_t>();
    test<gil::bgr16_view_t>();
    test<gil::bgr16_step_view_t>();
    test<gil::bgr32_view_t>();
    test<gil::bgr32_step_view_t>();
    test<gil::bgr32f_view_t>();
    test<gil::bgr32f_step_view_t>();

    test<gil::bgra8_view_t>();
    test<gil::bgra8_step_view_t>();
    test<gil::bgra16_view_t>();
    test<gil::bgra16_step_view_t>();
    test<gil::bgra32_view_t>();
    test<gil::bgra32_step_view_t>();
    test<gil::bgra32f_view_t>();
    test<gil::bgra32f_step_view_t>();

    test<gil::rgb8_view_t>();
    test<gil::rgb8_step_view_t>();
    test<gil::rgb8_planar_view_t>();
    test<gil::rgb8_planar_step_view_t>();
    test<gil::rgb16_view_t>();
    test<gil::rgb16_step_view_t>();
    test<gil::rgb16_planar_view_t>();
    test<gil::rgb16_planar_step_view_t>();
    test<gil::rgb32_view_t>();
    test<gil::rgb32_step_view_t>();
    test<gil::rgb32_planar_view_t>();
    test<gil::rgb32_planar_step_view_t>();
    test<gil::rgb32f_view_t>();
    test<gil::rgb32f_step_view_t>();
    test<gil::rgb32f_planar_view_t>();
    test<gil::rgb32f_planar_step_view_t>();

    test<gil::rgba8_view_t>();
    test<gil::rgba8_step_view_t>();
    test<gil::rgba8_planar_view_t>();
    test<gil::rgba8_planar_step_view_t>();
    test<gil::rgba16_view_t>();
    test<gil::rgba16_step_view_t>();
    test<gil::rgba16_planar_view_t>();
    test<gil::rgba16_planar_step_view_t>();
    test<gil::rgba32_view_t>();
    test<gil::rgba32_step_view_t>();
    test<gil::rgba32_planar_view_t>();
    test<gil::rgba32_planar_step_view_t>();
    test<gil::rgba32f_view_t>();
    test<gil::rgba32f_step_view_t>();
    test<gil::rgba32f_planar_view_t>();
    test<gil::rgba32f_planar_step_view_t>();

    test<gil::cmyk8_view_t>();
    test<gil::cmyk8_step_view_t>();
    test<gil::cmyk8_planar_view_t>();
    test<gil::cmyk8_planar_step_view_t>();
    test<gil::cmyk16_view_t>();
    test<gil::cmyk16_step_view_t>();
    test<gil::cmyk16_planar_view_t>();
    test<gil::cmyk16_planar_step_view_t>();
    test<gil::cmyk32_view_t>();
    test<gil::cmyk32_step_view_t>();
    test<gil::cmyk32_planar_view_t>();
    test<gil::cmyk32_planar_step_view_t>();
    test<gil::cmyk32f_view_t>();
    test<gil::cmyk32f_step_view_t>();
    test<gil::cmyk32f_planar_view_t>();
    test<gil::cmyk32f_planar_step_view_t>();
}