diff options
author | Sanghoon Lee <sanghoon.lee@arm.com> | 2018-04-05 10:57:57 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:52:54 +0000 |
commit | 1fad27af728ac73f0635994abf042b6d9e7075c6 (patch) | |
tree | cfd3ab5392d8fad50890a48b0abd4f12f15f42a0 /tests/validation/reference/ColorConvert.h | |
parent | bdff491b167120ebc91c83ecea420620c965dd8f (diff) | |
download | ComputeLibrary-1fad27af728ac73f0635994abf042b6d9e7075c6.tar.gz |
COMPMID-566: Implement reference and CL/NEON validation for ColorConvert (part 1)
- Image to MultiImage will be in part 2
Change-Id: Id2f22c39fb41a78a360d20d2c3bdecd57cdfd152
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128321
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/reference/ColorConvert.h')
-rw-r--r-- | tests/validation/reference/ColorConvert.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/validation/reference/ColorConvert.h b/tests/validation/reference/ColorConvert.h new file mode 100644 index 0000000000..2a8602e7ab --- /dev/null +++ b/tests/validation/reference/ColorConvert.h @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2017-2018 ARM Limited. + * + * SPDX-License-Identifier: MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ +#ifndef __ARM_COMPUTE_TEST_COLOR_CONVERT_H__ +#define __ARM_COMPUTE_TEST_COLOR_CONVERT_H__ + +#include "tests/SimpleTensor.h" + +namespace arm_compute +{ +namespace test +{ +namespace validation +{ +namespace reference +{ +template <typename T> +SimpleTensor<uint8_t> color_convert(const TensorShape &shape, const std::vector<SimpleTensor<T>> &tensor_planes, Format src_format, Format dst_format); +} // namespace reference +} // namespace validation +} // namespace test +} // namespace arm_compute +#endif /* __ARM_COMPUTE_TEST_COLOR_CONVERT_H__ */ |