| 1 | /* This file is part of frei0r (https://frei0r.dyne.org) |
| 2 | * |
| 3 | * Copyright (C) 2024-2025 Dyne.org foundation |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU Affero General Public License as |
| 7 | * published by the Free Software Foundation, either version 3 of the |
| 8 | * License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU Affero General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Affero General Public License |
| 16 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | #ifndef TEST_PATTERN_H |
| 21 | #define TEST_PATTERN_Hcxx . . $ `test/test-pattern.h:21:9`! |
| 22 | |
| 23 | #include <stdint.h> |
| 24 | |
| 25 | /** |
| 26 | * Generate an animated test pattern for video filter testing |
| 27 | * |
| 28 | * This creates a comprehensive test pattern that includes: |
| 29 | * - Animated radial gradient background (tests color interpolation and smooth transitions) |
| 30 | * - Bouncing circle (tests circular features and motion) |
| 31 | * - Rotating square (tests corners, rotation, and sharp edges) |
| 32 | * - Moving horizontal bar (tests horizontal motion and rectangular shapes) |
| 33 | * - Zone plate patch (tests spatial frequency response and aliasing) |
| 34 | * - Frame counter (tests text/detail preservation) |
| 35 | * |
| 36 | * @param frame Output buffer (32-bit per pixel) |
| 37 | * @param width Frame width in pixels |
| 38 | * @param height Frame height in pixels |
| 39 | * @param frame_num Current frame number (for animation) |
| 40 | * @param color_model Color model (F0R_COLOR_MODEL_BGRA8888, F0R_COLOR_MODEL_RGBA8888, or F0R_COLOR_MODEL_PACKED32) |
| 41 | */ |
| 42 | void generate_animated_test_patterncxx . . $ generate_animated_test_pattern(d33c5f1e16ab2e16).(uint32_tcxx . . $ uint32_t#* frame, int width, int height, int frame_num, int color_model); |
| 43 | |
| 44 | #endif // TEST_PATTERN_H |