From 7d017572d331241d9957ecfae806d729d09bcb12 Mon Sep 17 00:00:00 2001 From: YFTree <159035550+YFTree@users.noreply.github.com> Date: Sat, 17 Oct 2026 20:19:21 +0800 Subject: [PATCH 1/2] Add new resolution for 1080P in image codec --- src/image_codec.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image_codec.rs b/src/image_codec.rs index 69b83e0..5add9f7 100644 --- a/src/image_codec.rs +++ b/src/image_codec.rs @@ -42,6 +42,7 @@ pub fn known_sizes() -> &'static [(usize, (u32, u32))] { (14_745_600, (1440, 2560)), // 1080P (FHD/FHD+) (10_886_400, (1080, 2520)), + (10_627_200, (1080, 2460)), (10_368_000, (1080, 2400)), (10_108_800, (1080, 2340)), (9_849_600, (1080, 2280)), @@ -234,4 +235,4 @@ pub fn zlib_compress(data: &[u8]) -> Vec { let mut encoder = ZlibEncoder::new(Vec::new(), Compression::best()); encoder.write_all(data).unwrap(); encoder.finish().unwrap() -} \ No newline at end of file +} From afc682ae0224e7e422bc0785a508d24b0af00906 Mon Sep 17 00:00:00 2001 From: YFTree <159035550+YFTree@users.noreply.github.com> Date: Sat, 17 Oct 2026 20:25:55 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + README_zh.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 806555e..20c882a 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ The CERT2 blob is an ASN.1 DER-encoded certificate containing image header hash | 16,588,800 | 1440×2880 | | 14,745,600 | 1440×2560 | | 10,886,400 | 1080×2520 | +| 10,627,200 | 1080×2460 | | 10,368,000 | 1080×2400 | | 10,108,800 | 1080×2340 | | 9,849,600 | 1080×2280 | diff --git a/README_zh.md b/README_zh.md index 34cfce5..7d71a9f 100644 --- a/README_zh.md +++ b/README_zh.md @@ -168,6 +168,7 @@ CERT2 blob 是一个 ASN.1 DER 编码的证书,包含镜像头哈希和镜像 | 16,588,800 | 1440×2880 | | 14,745,600 | 1440×2560 | | 10,886,400 | 1080×2520 | +| 10,627,200 | 1080×2460 | | 10,368,000 | 1080×2400 | | 10,108,800 | 1080×2340 | | 9,849,600 | 1080×2280 |