blob: f8844eef8b21a1c1d9a2db20f4073ba961383ef5 [file] [log] [blame]
Geza Lorebfa59b42016-07-11 12:43:47 +01001/*
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Geza Lorebfa59b42016-07-11 12:43:47 +01003 *
Yaowu Xu2ab7ff02016-09-02 12:04:54 -07004 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Geza Lorebfa59b42016-07-11 12:43:47 +010010 */
11
12#include <math.h>
13#include <stdlib.h>
14#include <string.h>
15
Tom Finegan7a07ece2017-02-07 17:14:05 -080016#include "third_party/googletest/src/googletest/include/gtest/gtest.h"
Geza Lorebfa59b42016-07-11 12:43:47 +010017#include "test/register_state_check.h"
Geza Lorebfa59b42016-07-11 12:43:47 +010018#include "test/function_equivalence_test.h"
19
Tom Finegan60e653d2018-05-22 11:34:58 -070020#include "config/aom_config.h"
Tom Finegan44702c82018-05-22 13:00:39 -070021#include "config/aom_dsp_rtcd.h"
22#include "config/av1_rtcd.h"
Tom Finegan60e653d2018-05-22 11:34:58 -070023
Yaowu Xuf883b422016-08-30 14:01:10 -070024#include "aom/aom_integer.h"
Geza Lorebfa59b42016-07-11 12:43:47 +010025
Yaowu Xuc27fc142016-08-22 16:08:15 -070026#include "av1/common/enums.h"
Geza Lorebfa59b42016-07-11 12:43:47 +010027
Yaowu Xuc27fc142016-08-22 16:08:15 -070028#include "aom_dsp/blend.h"
Geza Lorebfa59b42016-07-11 12:43:47 +010029
Yaowu Xuc27fc142016-08-22 16:08:15 -070030using libaom_test::FunctionEquivalenceTest;
Geza Lorebfa59b42016-07-11 12:43:47 +010031
32namespace {
33
clang-format3a826f12016-08-11 17:46:05 -070034template <typename F, typename T>
Geza Lorebfa59b42016-07-11 12:43:47 +010035class BlendA64Mask1DTest : public FunctionEquivalenceTest<F> {
36 public:
37 static const int kIterations = 10000;
38 static const int kMaxWidth = MAX_SB_SIZE * 5; // * 5 to cover longer strides
39 static const int kMaxHeight = MAX_SB_SIZE;
40 static const int kBufSize = kMaxWidth * kMaxHeight;
41 static const int kMaxMaskWidth = 2 * MAX_SB_SIZE;
42 static const int kMaxMaskSize = kMaxMaskWidth;
43
Geza Lorebfa59b42016-07-11 12:43:47 +010044 virtual ~BlendA64Mask1DTest() {}
45
Geza Lorea3f7ddc2016-07-12 15:26:36 +010046 virtual void Execute(const T *p_src0, const T *p_src1) = 0;
Geza Lorebfa59b42016-07-11 12:43:47 +010047
48 void Common() {
Sachin Kumar Garg6c5d4a32018-06-20 14:24:49 +053049 w_ = 2 << this->rng_(MAX_SB_SIZE_LOG2);
50 h_ = 2 << this->rng_(MAX_SB_SIZE_LOG2);
Geza Lorebfa59b42016-07-11 12:43:47 +010051
Geza Lorea3f7ddc2016-07-12 15:26:36 +010052 dst_offset_ = this->rng_(33);
53 dst_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_;
Geza Lorebfa59b42016-07-11 12:43:47 +010054
Geza Lorea3f7ddc2016-07-12 15:26:36 +010055 src0_offset_ = this->rng_(33);
56 src0_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_;
Geza Lorebfa59b42016-07-11 12:43:47 +010057
Geza Lorea3f7ddc2016-07-12 15:26:36 +010058 src1_offset_ = this->rng_(33);
59 src1_stride_ = this->rng_(kMaxWidth + 1 - w_) + w_;
Geza Lorebfa59b42016-07-11 12:43:47 +010060
61 T *p_src0;
62 T *p_src1;
63
Geza Lorea3f7ddc2016-07-12 15:26:36 +010064 switch (this->rng_(3)) {
clang-format3a826f12016-08-11 17:46:05 -070065 case 0: // Separate sources
Geza Lorebfa59b42016-07-11 12:43:47 +010066 p_src0 = src0_;
67 p_src1 = src1_;
68 break;
clang-format3a826f12016-08-11 17:46:05 -070069 case 1: // src0 == dst
Geza Lorebfa59b42016-07-11 12:43:47 +010070 p_src0 = dst_tst_;
71 src0_stride_ = dst_stride_;
72 src0_offset_ = dst_offset_;
73 p_src1 = src1_;
74 break;
clang-format3a826f12016-08-11 17:46:05 -070075 case 2: // src1 == dst
Geza Lorebfa59b42016-07-11 12:43:47 +010076 p_src0 = src0_;
77 p_src1 = dst_tst_;
78 src1_stride_ = dst_stride_;
79 src1_offset_ = dst_offset_;
80 break;
clang-format3a826f12016-08-11 17:46:05 -070081 default: FAIL();
Geza Lorebfa59b42016-07-11 12:43:47 +010082 }
83
84 Execute(p_src0, p_src1);
85
clang-format3a826f12016-08-11 17:46:05 -070086 for (int r = 0; r < h_; ++r) {
87 for (int c = 0; c < w_; ++c) {
Geza Lorebfa59b42016-07-11 12:43:47 +010088 ASSERT_EQ(dst_ref_[dst_offset_ + r * dst_stride_ + c],
89 dst_tst_[dst_offset_ + r * dst_stride_ + c]);
90 }
91 }
92 }
93
Geza Lorebfa59b42016-07-11 12:43:47 +010094 T dst_ref_[kBufSize];
95 T dst_tst_[kBufSize];
Pascal Massimino04ed7ad2016-08-29 09:09:09 +020096 uint32_t dst_stride_;
97 uint32_t dst_offset_;
Geza Lorebfa59b42016-07-11 12:43:47 +010098
99 T src0_[kBufSize];
Pascal Massimino04ed7ad2016-08-29 09:09:09 +0200100 uint32_t src0_stride_;
101 uint32_t src0_offset_;
Geza Lorebfa59b42016-07-11 12:43:47 +0100102
103 T src1_[kBufSize];
Pascal Massimino04ed7ad2016-08-29 09:09:09 +0200104 uint32_t src1_stride_;
105 uint32_t src1_offset_;
Geza Lorebfa59b42016-07-11 12:43:47 +0100106
107 uint8_t mask_[kMaxMaskSize];
108
109 int w_;
110 int h_;
111};
112
113//////////////////////////////////////////////////////////////////////////////
114// 8 bit version
115//////////////////////////////////////////////////////////////////////////////
116
clang-format3a826f12016-08-11 17:46:05 -0700117typedef void (*F8B)(uint8_t *dst, uint32_t dst_stride, const uint8_t *src0,
118 uint32_t src0_stride, const uint8_t *src1,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700119 uint32_t src1_stride, const uint8_t *mask, int w, int h);
Yaowu Xuc27fc142016-08-22 16:08:15 -0700120typedef libaom_test::FuncParam<F8B> TestFuncs;
Geza Lorebfa59b42016-07-11 12:43:47 +0100121
122class BlendA64Mask1DTest8B : public BlendA64Mask1DTest<F8B, uint8_t> {
123 protected:
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100124 void Execute(const uint8_t *p_src0, const uint8_t *p_src1) {
clang-format3a826f12016-08-11 17:46:05 -0700125 params_.ref_func(dst_ref_ + dst_offset_, dst_stride_, p_src0 + src0_offset_,
126 src0_stride_, p_src1 + src1_offset_, src1_stride_, mask_,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700127 w_, h_);
clang-format3a826f12016-08-11 17:46:05 -0700128 ASM_REGISTER_STATE_CHECK(params_.tst_func(
129 dst_tst_ + dst_offset_, dst_stride_, p_src0 + src0_offset_,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700130 src0_stride_, p_src1 + src1_offset_, src1_stride_, mask_, w_, h_));
Geza Lorebfa59b42016-07-11 12:43:47 +0100131 }
132};
133
134TEST_P(BlendA64Mask1DTest8B, RandomValues) {
clang-format3a826f12016-08-11 17:46:05 -0700135 for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) {
136 for (int i = 0; i < kBufSize; ++i) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100137 dst_ref_[i] = rng_.Rand8();
138 dst_tst_[i] = rng_.Rand8();
139
140 src0_[i] = rng_.Rand8();
141 src1_[i] = rng_.Rand8();
142 }
143
clang-format3a826f12016-08-11 17:46:05 -0700144 for (int i = 0; i < kMaxMaskSize; ++i)
Yaowu Xuf883b422016-08-30 14:01:10 -0700145 mask_[i] = rng_(AOM_BLEND_A64_MAX_ALPHA + 1);
Geza Lorebfa59b42016-07-11 12:43:47 +0100146
147 Common();
148 }
149}
150
151TEST_P(BlendA64Mask1DTest8B, ExtremeValues) {
clang-format3a826f12016-08-11 17:46:05 -0700152 for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) {
153 for (int i = 0; i < kBufSize; ++i) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100154 dst_ref_[i] = rng_(2) + 254;
155 dst_tst_[i] = rng_(2) + 254;
156 src0_[i] = rng_(2) + 254;
157 src1_[i] = rng_(2) + 254;
158 }
159
clang-format3a826f12016-08-11 17:46:05 -0700160 for (int i = 0; i < kMaxMaskSize; ++i)
Yaowu Xuf883b422016-08-30 14:01:10 -0700161 mask_[i] = rng_(2) + AOM_BLEND_A64_MAX_ALPHA - 1;
Geza Lorebfa59b42016-07-11 12:43:47 +0100162
163 Common();
164 }
165}
166
clang-format3a826f12016-08-11 17:46:05 -0700167static void blend_a64_hmask_ref(uint8_t *dst, uint32_t dst_stride,
168 const uint8_t *src0, uint32_t src0_stride,
169 const uint8_t *src1, uint32_t src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700170 const uint8_t *mask, int w, int h) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100171 uint8_t mask2d[BlendA64Mask1DTest8B::kMaxMaskSize]
172 [BlendA64Mask1DTest8B::kMaxMaskSize];
173
clang-format3a826f12016-08-11 17:46:05 -0700174 for (int row = 0; row < h; ++row)
175 for (int col = 0; col < w; ++col) mask2d[row][col] = mask[col];
Geza Lorebfa59b42016-07-11 12:43:47 +0100176
Yaowu Xuf883b422016-08-30 14:01:10 -0700177 aom_blend_a64_mask_c(dst, dst_stride, src0, src0_stride, src1, src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700178 &mask2d[0][0], BlendA64Mask1DTest8B::kMaxMaskSize, w, h,
clang-format3a826f12016-08-11 17:46:05 -0700179 0, 0);
Geza Lorebfa59b42016-07-11 12:43:47 +0100180}
181
clang-format3a826f12016-08-11 17:46:05 -0700182static void blend_a64_vmask_ref(uint8_t *dst, uint32_t dst_stride,
183 const uint8_t *src0, uint32_t src0_stride,
184 const uint8_t *src1, uint32_t src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700185 const uint8_t *mask, int w, int h) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100186 uint8_t mask2d[BlendA64Mask1DTest8B::kMaxMaskSize]
187 [BlendA64Mask1DTest8B::kMaxMaskSize];
188
clang-format3a826f12016-08-11 17:46:05 -0700189 for (int row = 0; row < h; ++row)
190 for (int col = 0; col < w; ++col) mask2d[row][col] = mask[row];
Geza Lorebfa59b42016-07-11 12:43:47 +0100191
Yaowu Xuf883b422016-08-30 14:01:10 -0700192 aom_blend_a64_mask_c(dst, dst_stride, src0, src0_stride, src1, src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700193 &mask2d[0][0], BlendA64Mask1DTest8B::kMaxMaskSize, w, h,
clang-format3a826f12016-08-11 17:46:05 -0700194 0, 0);
Geza Lorebfa59b42016-07-11 12:43:47 +0100195}
196
197INSTANTIATE_TEST_CASE_P(
clang-format3a826f12016-08-11 17:46:05 -0700198 C, BlendA64Mask1DTest8B,
Yaowu Xuf883b422016-08-30 14:01:10 -0700199 ::testing::Values(TestFuncs(blend_a64_hmask_ref, aom_blend_a64_hmask_c),
200 TestFuncs(blend_a64_vmask_ref, aom_blend_a64_vmask_c)));
Geza Lorebfa59b42016-07-11 12:43:47 +0100201
202#if HAVE_SSE4_1
203INSTANTIATE_TEST_CASE_P(
clang-format3a826f12016-08-11 17:46:05 -0700204 SSE4_1, BlendA64Mask1DTest8B,
205 ::testing::Values(
Yaowu Xuf883b422016-08-30 14:01:10 -0700206 TestFuncs(blend_a64_hmask_ref, aom_blend_a64_hmask_sse4_1),
207 TestFuncs(blend_a64_vmask_ref, aom_blend_a64_vmask_sse4_1)));
Geza Lorebfa59b42016-07-11 12:43:47 +0100208#endif // HAVE_SSE4_1
209
Sachin Kumar Garg6c5d4a32018-06-20 14:24:49 +0530210#if HAVE_NEON
211INSTANTIATE_TEST_CASE_P(NEON, BlendA64Mask1DTest8B,
212 ::testing::Values(TestFuncs(blend_a64_hmask_ref,
213 aom_blend_a64_hmask_neon),
214 TestFuncs(blend_a64_vmask_ref,
215 aom_blend_a64_vmask_neon)));
216#endif // HAVE_NEON
217
Geza Lorebfa59b42016-07-11 12:43:47 +0100218//////////////////////////////////////////////////////////////////////////////
219// High bit-depth version
220//////////////////////////////////////////////////////////////////////////////
221
clang-format3a826f12016-08-11 17:46:05 -0700222typedef void (*FHBD)(uint8_t *dst, uint32_t dst_stride, const uint8_t *src0,
223 uint32_t src0_stride, const uint8_t *src1,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700224 uint32_t src1_stride, const uint8_t *mask, int w, int h,
clang-format3a826f12016-08-11 17:46:05 -0700225 int bd);
Yaowu Xuc27fc142016-08-22 16:08:15 -0700226typedef libaom_test::FuncParam<FHBD> TestFuncsHBD;
Geza Lorebfa59b42016-07-11 12:43:47 +0100227
228class BlendA64Mask1DTestHBD : public BlendA64Mask1DTest<FHBD, uint16_t> {
229 protected:
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100230 void Execute(const uint16_t *p_src0, const uint16_t *p_src1) {
231 params_.ref_func(CONVERT_TO_BYTEPTR(dst_ref_ + dst_offset_), dst_stride_,
232 CONVERT_TO_BYTEPTR(p_src0 + src0_offset_), src0_stride_,
233 CONVERT_TO_BYTEPTR(p_src1 + src1_offset_), src1_stride_,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700234 mask_, w_, h_, bit_depth_);
Geza Lorea3f7ddc2016-07-12 15:26:36 +0100235 ASM_REGISTER_STATE_CHECK(params_.tst_func(
236 CONVERT_TO_BYTEPTR(dst_tst_ + dst_offset_), dst_stride_,
237 CONVERT_TO_BYTEPTR(p_src0 + src0_offset_), src0_stride_,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700238 CONVERT_TO_BYTEPTR(p_src1 + src1_offset_), src1_stride_, mask_, w_, h_,
clang-format3a826f12016-08-11 17:46:05 -0700239 bit_depth_));
Geza Lorebfa59b42016-07-11 12:43:47 +0100240 }
241
242 int bit_depth_;
243};
244
245TEST_P(BlendA64Mask1DTestHBD, RandomValues) {
clang-format3a826f12016-08-11 17:46:05 -0700246 for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100247 switch (rng_(3)) {
clang-format3a826f12016-08-11 17:46:05 -0700248 case 0: bit_depth_ = 8; break;
249 case 1: bit_depth_ = 10; break;
250 default: bit_depth_ = 12; break;
Geza Lorebfa59b42016-07-11 12:43:47 +0100251 }
252
253 const int hi = 1 << bit_depth_;
254
clang-format3a826f12016-08-11 17:46:05 -0700255 for (int i = 0; i < kBufSize; ++i) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100256 dst_ref_[i] = rng_(hi);
257 dst_tst_[i] = rng_(hi);
258 src0_[i] = rng_(hi);
259 src1_[i] = rng_(hi);
260 }
261
clang-format3a826f12016-08-11 17:46:05 -0700262 for (int i = 0; i < kMaxMaskSize; ++i)
Yaowu Xuf883b422016-08-30 14:01:10 -0700263 mask_[i] = rng_(AOM_BLEND_A64_MAX_ALPHA + 1);
Geza Lorebfa59b42016-07-11 12:43:47 +0100264
265 Common();
266 }
267}
268
269TEST_P(BlendA64Mask1DTestHBD, ExtremeValues) {
clang-format3a826f12016-08-11 17:46:05 -0700270 for (int iter = 0; iter < 1000 && !HasFatalFailure(); ++iter) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100271 switch (rng_(3)) {
clang-format3a826f12016-08-11 17:46:05 -0700272 case 0: bit_depth_ = 8; break;
273 case 1: bit_depth_ = 10; break;
274 default: bit_depth_ = 12; break;
Geza Lorebfa59b42016-07-11 12:43:47 +0100275 }
276
277 const int hi = 1 << bit_depth_;
278 const int lo = hi - 2;
279
clang-format3a826f12016-08-11 17:46:05 -0700280 for (int i = 0; i < kBufSize; ++i) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100281 dst_ref_[i] = rng_(hi - lo) + lo;
282 dst_tst_[i] = rng_(hi - lo) + lo;
283 src0_[i] = rng_(hi - lo) + lo;
284 src1_[i] = rng_(hi - lo) + lo;
285 }
286
clang-format3a826f12016-08-11 17:46:05 -0700287 for (int i = 0; i < kMaxMaskSize; ++i)
Yaowu Xuf883b422016-08-30 14:01:10 -0700288 mask_[i] = rng_(2) + AOM_BLEND_A64_MAX_ALPHA - 1;
Geza Lorebfa59b42016-07-11 12:43:47 +0100289
290 Common();
291 }
292}
293
294static void highbd_blend_a64_hmask_ref(
clang-format3a826f12016-08-11 17:46:05 -0700295 uint8_t *dst, uint32_t dst_stride, const uint8_t *src0,
296 uint32_t src0_stride, const uint8_t *src1, uint32_t src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700297 const uint8_t *mask, int w, int h, int bd) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100298 uint8_t mask2d[BlendA64Mask1DTestHBD::kMaxMaskSize]
299 [BlendA64Mask1DTestHBD::kMaxMaskSize];
300
clang-format3a826f12016-08-11 17:46:05 -0700301 for (int row = 0; row < h; ++row)
302 for (int col = 0; col < w; ++col) mask2d[row][col] = mask[col];
Geza Lorebfa59b42016-07-11 12:43:47 +0100303
Yaowu Xuf883b422016-08-30 14:01:10 -0700304 aom_highbd_blend_a64_mask_c(
clang-format3a826f12016-08-11 17:46:05 -0700305 dst, dst_stride, src0, src0_stride, src1, src1_stride, &mask2d[0][0],
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700306 BlendA64Mask1DTestHBD::kMaxMaskSize, w, h, 0, 0, bd);
Geza Lorebfa59b42016-07-11 12:43:47 +0100307}
308
309static void highbd_blend_a64_vmask_ref(
clang-format3a826f12016-08-11 17:46:05 -0700310 uint8_t *dst, uint32_t dst_stride, const uint8_t *src0,
311 uint32_t src0_stride, const uint8_t *src1, uint32_t src1_stride,
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700312 const uint8_t *mask, int w, int h, int bd) {
Geza Lorebfa59b42016-07-11 12:43:47 +0100313 uint8_t mask2d[BlendA64Mask1DTestHBD::kMaxMaskSize]
314 [BlendA64Mask1DTestHBD::kMaxMaskSize];
315
clang-format3a826f12016-08-11 17:46:05 -0700316 for (int row = 0; row < h; ++row)
317 for (int col = 0; col < w; ++col) mask2d[row][col] = mask[row];
Geza Lorebfa59b42016-07-11 12:43:47 +0100318
Yaowu Xuf883b422016-08-30 14:01:10 -0700319 aom_highbd_blend_a64_mask_c(
clang-format3a826f12016-08-11 17:46:05 -0700320 dst, dst_stride, src0, src0_stride, src1, src1_stride, &mask2d[0][0],
Scott LaVarnway589b7a12018-06-06 06:29:16 -0700321 BlendA64Mask1DTestHBD::kMaxMaskSize, w, h, 0, 0, bd);
Geza Lorebfa59b42016-07-11 12:43:47 +0100322}
323
324INSTANTIATE_TEST_CASE_P(
clang-format3a826f12016-08-11 17:46:05 -0700325 C, BlendA64Mask1DTestHBD,
326 ::testing::Values(TestFuncsHBD(highbd_blend_a64_hmask_ref,
Yaowu Xuf883b422016-08-30 14:01:10 -0700327 aom_highbd_blend_a64_hmask_c),
clang-format3a826f12016-08-11 17:46:05 -0700328 TestFuncsHBD(highbd_blend_a64_vmask_ref,
Yaowu Xuf883b422016-08-30 14:01:10 -0700329 aom_highbd_blend_a64_vmask_c)));
Geza Lorebfa59b42016-07-11 12:43:47 +0100330
331#if HAVE_SSE4_1
332INSTANTIATE_TEST_CASE_P(
clang-format3a826f12016-08-11 17:46:05 -0700333 SSE4_1, BlendA64Mask1DTestHBD,
334 ::testing::Values(TestFuncsHBD(highbd_blend_a64_hmask_ref,
Yaowu Xuf883b422016-08-30 14:01:10 -0700335 aom_highbd_blend_a64_hmask_sse4_1),
clang-format3a826f12016-08-11 17:46:05 -0700336 TestFuncsHBD(highbd_blend_a64_vmask_ref,
Yaowu Xuf883b422016-08-30 14:01:10 -0700337 aom_highbd_blend_a64_vmask_sse4_1)));
Geza Lorebfa59b42016-07-11 12:43:47 +0100338#endif // HAVE_SSE4_1
Geza Lorebfa59b42016-07-11 12:43:47 +0100339} // namespace