| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | #include <stb/stb_image.h> | ||
| 3 | |||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <utility> | ||
| 7 | #include <vector> | ||
| 8 | |||
| 9 | #include "task/include/task.hpp" | ||
| 10 | |||
| 11 | namespace papulina_y_gauss_filter_block { | ||
| 12 | |||
| 13 |
5/12✓ Branch 0 taken 62 times.
✓ Branch 1 taken 558 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 620 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✓ Branch 6 taken 310 times.
✓ Branch 7 taken 620 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
|
4929 | struct Picture { |
| 14 | int width = 0; // ширина картинки в пикселях | ||
| 15 | int height = 0; // высота картинки в пикселях | ||
| 16 | int channels = STBI_rgb; // цветная(3 канала) или черно-белая(1 канал) | ||
| 17 | std::vector<unsigned char> pixels; | ||
| 18 | bool operator==(const Picture &other) const { | ||
| 19 | return (other.width == width && other.height == height && other.channels == channels && other.pixels == pixels); | ||
| 20 | } | ||
| 21 |
1/2✓ Branch 1 taken 620 times.
✗ Branch 2 not taken.
|
930 | Picture() = default; |
| 22 | |||
| 23 | 930 | Picture(int w, int h, int c, std::vector<unsigned char> p) : width(w), height(h), channels(c), pixels(std::move(p)) {} | |
| 24 | }; | ||
| 25 | |||
| 26 | using InType = Picture; | ||
| 27 | using OutType = Picture; | ||
| 28 | using TestType = std::tuple<std::string, int, int, int>; | ||
| 29 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 30 | |||
| 31 | } // namespace papulina_y_gauss_filter_block | ||
| 32 |