Skip to content

Commit

Permalink
disable clamping operation for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Jan 22, 2025
1 parent ac64e03 commit a531e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/others/ojph_img_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,8 @@ namespace ojph {

si16 convert_si32_to_si16(const si32 si32_value, bool convert_special_numbers_to_finite_numbers = false)
{
# pragma disabling_convert_si32_to_si16
#if 0
if (si32_value > INT16_MAX)
return INT16_MAX;
else if (si32_value < INT16_MIN)
Expand All @@ -2459,6 +2461,7 @@ namespace ojph {
return half_value.bits();
}
else
#endif
return (si16)si32_value;
}

Expand Down

0 comments on commit a531e11

Please sign in to comment.