@@ -10,48 +10,6 @@ const HEIGHT: usize = 480;
10
10
const WIDTH_NONZERO : NonZeroUsize = unsafe { NonZeroUsize :: new_unchecked ( WIDTH ) } ;
11
11
const HEIGHT_NONZERO : NonZeroUsize = unsafe { NonZeroUsize :: new_unchecked ( HEIGHT ) } ;
12
12
13
- #[ bench]
14
- #[ inline( never) ]
15
- fn blur_argb_16_vert ( bencher : & mut Bencher ) {
16
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
17
- bencher. iter ( || crate :: blur_vert_argb ( & mut buf. as_mut ( ) , 16 ) ) ;
18
- }
19
-
20
- #[ bench]
21
- #[ inline( never) ]
22
- fn blur_argb_128_vert ( bencher : & mut Bencher ) {
23
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
24
- bencher. iter ( || crate :: blur_vert_argb ( & mut buf. as_mut ( ) , 128 ) ) ;
25
- }
26
-
27
- #[ bench]
28
- #[ inline( never) ]
29
- fn blur_argb_1024_vert ( bencher : & mut Bencher ) {
30
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
31
- bencher. iter ( || crate :: blur_vert_argb ( & mut buf. as_mut ( ) , 1024 ) ) ;
32
- }
33
-
34
- #[ bench]
35
- #[ inline( never) ]
36
- fn blur_argb_16_horiz ( bencher : & mut Bencher ) {
37
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
38
- bencher. iter ( || crate :: blur_horiz_argb ( & mut buf. as_mut ( ) , 16 ) ) ;
39
- }
40
-
41
- #[ bench]
42
- #[ inline( never) ]
43
- fn blur_argb_128_horiz ( bencher : & mut Bencher ) {
44
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
45
- bencher. iter ( || crate :: blur_horiz_argb ( & mut buf. as_mut ( ) , 128 ) ) ;
46
- }
47
-
48
- #[ bench]
49
- #[ inline( never) ]
50
- fn blur_argb_1024_horiz ( bencher : & mut Bencher ) {
51
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
52
- bencher. iter ( || crate :: blur_horiz_argb ( & mut buf. as_mut ( ) , 1024 ) ) ;
53
- }
54
-
55
13
#[ bench]
56
14
#[ inline( never) ]
57
15
fn blur_argb_16 ( bencher : & mut Bencher ) {
@@ -73,54 +31,6 @@ fn blur_argb_1024(bencher: &mut Bencher) {
73
31
bencher. iter ( || crate :: blur_argb ( & mut buf. as_mut ( ) , 1024 ) ) ;
74
32
}
75
33
76
- #[ cfg( feature = "blend-srgb" ) ]
77
- #[ bench]
78
- #[ inline( never) ]
79
- fn blur_srgb_16_horiz ( bencher : & mut Bencher ) {
80
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
81
- bencher. iter ( || crate :: blur_horiz_srgb ( & mut buf. as_mut ( ) , 16 ) ) ;
82
- }
83
-
84
- #[ cfg( feature = "blend-srgb" ) ]
85
- #[ bench]
86
- #[ inline( never) ]
87
- fn blur_srgb_128_horiz ( bencher : & mut Bencher ) {
88
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
89
- bencher. iter ( || crate :: blur_horiz_srgb ( & mut buf. as_mut ( ) , 128 ) ) ;
90
- }
91
-
92
- #[ cfg( feature = "blend-srgb" ) ]
93
- #[ bench]
94
- #[ inline( never) ]
95
- fn blur_srgb_1024_horiz ( bencher : & mut Bencher ) {
96
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
97
- bencher. iter ( || crate :: blur_horiz_srgb ( & mut buf. as_mut ( ) , 1024 ) ) ;
98
- }
99
-
100
- #[ cfg( feature = "blend-srgb" ) ]
101
- #[ bench]
102
- #[ inline( never) ]
103
- fn blur_srgb_16_vert ( bencher : & mut Bencher ) {
104
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
105
- bencher. iter ( || crate :: blur_vert_srgb ( & mut buf. as_mut ( ) , 16 ) ) ;
106
- }
107
-
108
- #[ cfg( feature = "blend-srgb" ) ]
109
- #[ bench]
110
- #[ inline( never) ]
111
- fn blur_srgb_128_vert ( bencher : & mut Bencher ) {
112
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
113
- bencher. iter ( || crate :: blur_vert_srgb ( & mut buf. as_mut ( ) , 128 ) ) ;
114
- }
115
-
116
- #[ cfg( feature = "blend-srgb" ) ]
117
- #[ bench]
118
- #[ inline( never) ]
119
- fn blur_srgb_1024_vert ( bencher : & mut Bencher ) {
120
- let mut buf = ImgVec :: new ( vec ! [ 0 ; WIDTH * HEIGHT ] , WIDTH , HEIGHT ) ;
121
- bencher. iter ( || crate :: blur_vert_srgb ( & mut buf. as_mut ( ) , 1024 ) ) ;
122
- }
123
-
124
34
#[ cfg( feature = "blend-srgb" ) ]
125
35
#[ bench]
126
36
#[ inline( never) ]
0 commit comments