Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
3 changes: 2 additions & 1 deletion src/image_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down Expand Up @@ -234,4 +235,4 @@ pub fn zlib_compress(data: &[u8]) -> Vec<u8> {
let mut encoder = ZlibEncoder::new(Vec::new(), Compression::best());
encoder.write_all(data).unwrap();
encoder.finish().unwrap()
}
}