Skip to content

Commit

Permalink
Bump libjxl version to 0.10.3, bugfixes, speedup and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jul 14, 2024
1 parent ee84296 commit 44e2547
Show file tree
Hide file tree
Showing 26 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/awxkee/jxlcoder/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class MainActivity : ComponentActivity() {
largeImageSize.height / 4,
preferredColorConfig = PreferredColorConfig.RGBA_8888,
com.awxkee.jxlcoder.ScaleMode.FIT,
JxlResizeFilter.MITCHELL_NETRAVALI,
JxlResizeFilter.HERMITE,
toneMapper = JxlToneMapper.LOGARITHMIC,
)
lifecycleScope.launch {
Expand Down
4 changes: 2 additions & 2 deletions jxlcoder/src/main/cpp/SizeScaler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ bool RescaleImage(std::vector<uint8_t> &rgbaData,
imageWidth, imageHeight,
reinterpret_cast<uint16_t *>(newImageData.data()),
imdStride,
scaledWidth, scaledHeight, ScalingFunction::BSpline /*static_cast<ScalingFunction>(sparkSampler)*/);
scaledWidth, scaledHeight, static_cast<ScalingFunction>(sparkSampler));
} else {
weave_scale_u8(reinterpret_cast<const uint8_t *>(rgbaData.data()),
(int) imageWidth * 4 * (int) sizeof(uint8_t),
imageWidth, imageHeight,
reinterpret_cast<uint8_t *>(newImageData.data()),
imdStride,
scaledWidth, scaledHeight, ScalingFunction::BSpline /*static_cast<ScalingFunction>(sparkSampler)*/);
scaledWidth, scaledHeight, static_cast<ScalingFunction>(sparkSampler));

}

Expand Down
Loading

0 comments on commit 44e2547

Please sign in to comment.