31 #include "tests/datasets/ConvertPolicyDataset.h" 32 #include "tests/datasets/ShapeDatasets.h" 37 #include "tests/validation/fixtures/ChannelCombineFixture.h" 52 CLMultiImage
dst = create_multi_image<CLMultiImage>(
shape, format);
53 std::vector<CLTensor> ref_src = create_tensor_planes<CLTensor>(
shape, format);
60 const CLTensor *tensor_extra = ((
Format::RGBA8888 == format) ? &ref_src[3] :
nullptr);
62 channel_combine.configure(&ref_src[0], &ref_src[1], &ref_src[2], tensor_extra, dst.cl_plane(0));
66 channel_combine.configure(&ref_src[0], &ref_src[1], &ref_src[2], &dst);
100 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
108 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
119 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
127 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
138 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
146 for(
unsigned int plane_idx = 0; plane_idx < _num_planes; ++plane_idx)
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
template std::vector< SimpleTensor< uint8_t > > channel_combine(const TensorShape &shape, const std::vector< SimpleTensor< uint8_t >> &image_planes, Format format)
ChannelCombineValidationFixture< CLMultiImage, CLTensor, CLAccessor, CLChannelCombine, T > CLChannelCombineFixture
size_t num_planes_from_format(Format format)
Return the number of planes for a given format.
A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling.
This file contains all available output stages for GEMMLowp on OpenCL.
#define TEST_SUITE(SUITE_NAME)
3 channels, 1 U8 per channel
void validate_configuration(const CLTensor &src, TensorShape shape)
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsoluteDifferenceFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), AbsoluteDifferenceU8Dataset))
validate(dst.info() ->valid_region(), dst_valid_region)
DatasetMode
Possible dataset modes.
Format
Image colour formats.
Accessor implementation for CLTensor objects.
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
DATA_TEST_CASE(Configuration, framework::DatasetMode::ALL, combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), AbsoluteDifferenceU8Dataset), shape, data_type0, data_type1, output_data_type)
A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes.
4 channels, 1 U8 per channel
Basic implementation of the CL multi-planar image interface.
TEST_SUITE_END() DATA_TEST_CASE(Configuration
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
JoinDataset< T, U > concat(T &&dataset1, U &&dataset2)
Helper function to create a JoinDataset.
A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes.
Basic function to run CLChannelCombineKernel to perform channel combination.
Basic implementation of the OpenCL tensor interface.