| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2024 - 2025 Arm Limited and/or its affiliates <open-source-office@arm.com> | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: Apache-2.0 | ||
| 4 | |||
| 5 | #include "kleidicv/conversions/rgb_to_yuv.h" | ||
| 6 | #include "kleidicv/dispatch.h" | ||
| 7 | #include "kleidicv/kleidicv.h" | ||
| 8 | |||
| 9 | #define KLEIDICV_DEFINE_C_API(name, partialname) \ | ||
| 10 | KLEIDICV_MULTIVERSION_C_API( \ | ||
| 11 | name, &kleidicv::neon::partialname, \ | ||
| 12 | KLEIDICV_SVE2_IMPL_IF(&kleidicv::sve2::partialname), \ | ||
| 13 | &kleidicv::sme::partialname, nullptr) | ||
| 14 | |||
| 15 | #define KLEIDICV_DEFINE_C_API_WITH_SME2(name, partialname) \ | ||
| 16 | KLEIDICV_MULTIVERSION_C_API( \ | ||
| 17 | name, &kleidicv::neon::partialname, \ | ||
| 18 | KLEIDICV_SVE2_IMPL_IF(&kleidicv::sve2::partialname), \ | ||
| 19 | &kleidicv::sme::partialname, &kleidicv::sme2::partialname) | ||
| 20 | |||
| 21 |
4/4✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 times.
|
10 | KLEIDICV_DEFINE_C_API(kleidicv_rgb_to_yuv_u8, rgb_to_yuv_u8); |
| 22 |
4/4✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 times.
|
10 | KLEIDICV_DEFINE_C_API(kleidicv_bgr_to_yuv_u8, bgr_to_yuv_u8); |
| 23 |
6/6✓ Branch 0 taken 1 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 1 times.
|
10 | KLEIDICV_DEFINE_C_API_WITH_SME2(kleidicv_rgba_to_yuv_u8, rgba_to_yuv_u8); |
| 24 |
6/6✓ Branch 0 taken 1 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
✓ Branch 5 taken 1 times.
|
10 | KLEIDICV_DEFINE_C_API_WITH_SME2(kleidicv_bgra_to_yuv_u8, bgra_to_yuv_u8); |
| 25 |