Skip to content

Commit 9b155f7

Browse files
committed
Decoding improvements
1 parent 47c1cb4 commit 9b155f7

File tree

8 files changed

+11
-14
lines changed

8 files changed

+11
-14
lines changed

app/src/main/java/com/radzivon/bartoshyk/avif/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class MainActivity : AppCompatActivity() {
122122
// allFiles = allFiles.take(5).toMutableList()
123123
// allFiles = allFiles.filter { it.contains("hato-wide-gamut-8bit.avif") || it.contains("wide_gamut.avif") || it.contains("IMG_0199_rr.avif") || it.contains("bt_2020_pq.avif") }.toMutableList()
124124
// allFiles = allFiles.filter { it.contains("bbb_alpha_inverted.avif") }.toMutableList()
125-
// allFiles = allFiles.filter { it.contains("hdr_cosmos07296_12bit.avif") }.toMutableList()
125+
allFiles = allFiles.filter { it.contains("result.heic") }.toMutableList()
126126
for (file in allFiles) {
127127
try {
128128
Log.d("AVIF", "start processing $file")
Binary file not shown.
Binary file not shown.
74.7 KB
Binary file not shown.
Binary file not shown.

avifpixart/Cargo.lock

+4-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

avifpixart/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ edition = "2021"
55

66
[dependencies]
77
num-traits = "0.2"
8-
pic-scale = { version = "0.5.3", default-features = false, features = ["nightly_f16"] }
8+
pic-scale = { version = "0.5.4", default-features = false, features = ["nightly_f16"] }
99
yuvutils-rs = { path = "../../../RustroverProjects/yuvutils-rs", features = ["nightly_f16"], default-features = false }
1010
bytemuck = { version = "1.22", features = ["nightly_float"] }
11-
moxcms = "0.4"
12-
gainforge = "0.3"
11+
moxcms = {path = "../../../RustroverProjects/moxcms"}
12+
gainforge = {path = "../../../RustroverProjects/gainforge"}
1313

1414
[features]
1515
rdm = ["yuvutils-rs/rdm", "pic-scale/rdm"]

avifpixart/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ pub extern "C" fn weave_scale_u8(
933933
ResamplingFunction::Bilinear
934934
});
935935

936-
scaler.set_threading_policy(ThreadingPolicy::Adaptive);
936+
scaler.set_threading_policy(ThreadingPolicy::Single);
937+
// scaler.set_workload_strategy(WorkloadStrategy::PreferQuality);
937938

938939
let mut dst_store = ImageStoreMut::<u8, 4> {
939940
buffer: BufferStore::Borrowed(dst_slice),
@@ -1005,7 +1006,7 @@ pub extern "C" fn weave_scale_u16(
10051006
} else {
10061007
ResamplingFunction::Bilinear
10071008
});
1008-
scaler.set_threading_policy(ThreadingPolicy::Adaptive);
1009+
scaler.set_threading_policy(ThreadingPolicy::Single);
10091010
scaler.set_workload_strategy(WorkloadStrategy::PreferQuality);
10101011

10111012
if dst as usize % 2 != 0 {

0 commit comments

Comments
 (0)