From e06d980a9692c8ef0641bd09b7e14e35f332260f Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 8 Aug 2024 14:48:48 +0300 Subject: [PATCH] [sao] Use correct pixel type in sao_edge_ddistortion_generic --- src/strategies/generic/sao_shared_generics.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/strategies/generic/sao_shared_generics.h b/src/strategies/generic/sao_shared_generics.h index ca6ccfd6..c86a25b7 100644 --- a/src/strategies/generic/sao_shared_generics.h +++ b/src/strategies/generic/sao_shared_generics.h @@ -67,10 +67,10 @@ static int sao_edge_ddistortion_generic(const uvg_pixel *orig_data, uint32_t a_pos = (y + a_ofs.y) * block_width + x + a_ofs.x; uint32_t b_pos = (y + b_ofs.y) * block_width + x + b_ofs.x; - uint8_t a = rec_data[a_pos]; - uint8_t b = rec_data[b_pos]; - uint8_t c = rec_data[c_pos]; - uint8_t orig = orig_data[c_pos]; + uvg_pixel a = rec_data[a_pos]; + uvg_pixel b = rec_data[b_pos]; + uvg_pixel c = rec_data[c_pos]; + uvg_pixel orig = orig_data[c_pos]; int32_t eo_cat = sao_calc_eo_cat(a, b, c); int32_t offset = offsets[eo_cat];