31 #include "tests/datasets/ConvertPolicyDataset.h" 32 #include "tests/datasets/ShapeDatasets.h" 37 #include "tests/validation/fixtures/ChannelExtractFixture.h" 63 MultiImage ref_src = create_multi_image<MultiImage>(
shape, format);
71 const Tensor *plane_src = ref_src.plane(0);
73 channel_extract.configure(plane_src, channel, &dst);
77 channel_extract.configure(&ref_src, channel, &dst);
90 shape, format, channel)
95 shape, format, channel)
101 shape, format, channel)
A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte.
TensorShape calculate_subsampled_shape(const TensorShape &shape, Format format, Channel channel=Channel::UNKNOWN)
Calculate subsampled shape for a given format and channel.
size_t num_planes_from_format(Format format)
Return the number of planes for a given format.
1 channel, 1 U8 per channel
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)
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)
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
Channel
Available channels.
Format
Image colour formats.
A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes.
Basic implementation of the tensor interface.
ChannelExtractValidationFixture< MultiImage, Tensor, Accessor, NEChannelExtract, T > NEChannelExtractFixture
TensorShape adjust_odd_shape(const TensorShape &shape, Format format)
Adjust tensor shape size if width or height are odd for a given multi-planar format.
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
TEST_SUITE_END() DATA_TEST_CASE(Configuration
template SimpleTensor< uint8_t > channel_extract(const TensorShape &shape, const std::vector< SimpleTensor< uint8_t >> &tensor_planes, Format format, Channel channel)
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 implementation of the multi-planar image interface.