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:
parent
5f1dd83ac2
commit
399aa4f2ea
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user