| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <tuple> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace baldin_a_gauss_filter { | ||
| 10 | |||
| 11 |
4/9✓ Branch 0 taken 150 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 30 times.
✓ Branch 4 taken 120 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 120 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
|
1410 | struct ImageData { |
| 12 | int width = 0; | ||
| 13 | int height = 0; | ||
| 14 | int channels = 0; | ||
| 15 | std::vector<uint8_t> pixels; | ||
| 16 | |||
| 17 | bool operator==(const ImageData &other) const { | ||
| 18 |
2/4✓ Branch 0 taken 150 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 150 times.
✗ Branch 3 not taken.
|
150 | return width == other.width && height == other.height && channels == other.channels && pixels == other.pixels; |
| 19 | } | ||
| 20 | }; | ||
| 21 | |||
| 22 | using InType = ImageData; | ||
| 23 | using OutType = ImageData; | ||
| 24 | using TestType = std::tuple<int, int, int>; // width, height, channels | ||
| 25 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 26 | |||
| 27 | } // namespace baldin_a_gauss_filter | ||
| 28 |