Skip to content

Commit 06cb173

Browse files
committed
Update tests
1 parent b41193a commit 06cb173

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/coverage-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
required_flag=avx512_vnni
4646
if grep -qw "$required_flag" /proc/cpuinfo; then
4747
# Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
48+
# Intel(R) Xeon(R) Platinum 8573C
4849
# AMD EPYC 9V74 80-Core Processor
4950
echo "Found required CPU flag: $required_flag"
5051
echo "host_hit=true" >> "$GITHUB_OUTPUT"

tests/text_overlay/text_overlay_compare_test_helpers.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace avsut::test {
2424

2525
using TextOverlayCompareFunction = void (*)(std::uint32_t, int, const BYTE*, int, const BYTE*, int,
26-
int, int, int&, int&, int&, int&, double&);
26+
int, int, std::int64_t&, std::int64_t&, int&, int&, double&);
2727

2828
struct TextOverlayCompareCase {
2929
std::string format;
@@ -36,8 +36,8 @@ struct TextOverlayCompareCase {
3636
std::size_t other_pitch{};
3737
std::size_t source_alignment_offset{};
3838
std::size_t other_alignment_offset{};
39-
int initial_sad{};
40-
int initial_sd{};
39+
std::int64_t initial_sad{};
40+
std::int64_t initial_sd{};
4141
int initial_pos{};
4242
int initial_neg{};
4343
double initial_ssd{};
@@ -156,8 +156,8 @@ inline void fill_text_overlay_compare_inputs(const TextOverlayCompareCase& test_
156156
}
157157

158158
struct TextOverlayCompareMetrics {
159-
int sad{};
160-
int sd{};
159+
std::int64_t sad{};
160+
std::int64_t sd{};
161161
int pos{};
162162
int neg{};
163163
double ssd{};
@@ -199,8 +199,8 @@ inline void run_text_overlay_compare_case(const TextOverlayCompareCase& test_cas
199199
const auto expected =
200200
text_overlay_compare_reference(test_case, source.view().as_const(), other.view().as_const());
201201

202-
int actual_sad = test_case.initial_sad;
203-
int actual_sd = test_case.initial_sd;
202+
std::int64_t actual_sad = test_case.initial_sad;
203+
std::int64_t actual_sd = test_case.initial_sd;
204204
int actual_pos = test_case.initial_pos;
205205
int actual_neg = test_case.initial_neg;
206206
double actual_ssd = test_case.initial_ssd;

0 commit comments

Comments
 (0)