1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-07 05:02:38 +00:00

fix(core): adjust jpeg cache size to allow work on larger displays

[no changelog]
This commit is contained in:
tychovrahe 2025-01-28 10:29:31 +01:00 committed by TychoVrahe
parent 5f1dd83ac2
commit 399aa4f2ea

View File

@ -1,6 +1,7 @@
use crate::{
io::BinaryData,
ui::{
constant::WIDTH,
geometry::{Offset, Point, Rect},
shape::{BasicCanvas, Bitmap, BitmapFormat, BitmapView, Canvas, Rgb565Canvas},
},
@ -38,7 +39,7 @@ const JPEG_SCRATCHPAD_SIZE: usize = 10500; // the same const > 10336 as in origi
// Buffer for a cached row of JPEG MCUs (up to 240x16 RGB565 pixels)
const ALIGN_PAD: usize = 8;
const JPEG_BUFF_SIZE: usize = (240 * 2 * 16) + ALIGN_PAD;
const JPEG_BUFF_SIZE: usize = (WIDTH as usize * 2 * 16) + ALIGN_PAD;
pub struct JpegCache<'a> {
/// Reference to compressed data