Skip to content

Commit a531e11

Browse files
committed
disable clamping operation for debugging purposes
1 parent ac64e03 commit a531e11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/apps/others/ojph_img_io.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,8 @@ namespace ojph {
24362436

24372437
si16 convert_si32_to_si16(const si32 si32_value, bool convert_special_numbers_to_finite_numbers = false)
24382438
{
2439+
# pragma disabling_convert_si32_to_si16
2440+
#if 0
24392441
if (si32_value > INT16_MAX)
24402442
return INT16_MAX;
24412443
else if (si32_value < INT16_MIN)
@@ -2459,6 +2461,7 @@ namespace ojph {
24592461
return half_value.bits();
24602462
}
24612463
else
2464+
#endif
24622465
return (si16)si32_value;
24632466
}
24642467

0 commit comments

Comments
 (0)