Commit Graph
581 Commits
Author SHA1 Message Date
jpirnay 1bfc3534aa Merge branch 'refactor-arc' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-30 18:35:57 +02:00
jpirnay 770e2f207c Fix 1 pixel regression 2026-03-30 18:32:00 +02:00
jpirnay d23dd8e8dc Updates 2026-03-30 18:26:25 +02:00
jpirnay c8b166606e Stage scripts 2026-03-30 18:12:52 +02:00
jpirnay 474dfe5490 Merge branch 'refactor-arc' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-30 18:09:55 +02:00
martin brook aa085425af perf: Eliminate per-pixel overheads in image rendering (#1293)
## Summary

Replace per-pixel getRenderMode() + rotateCoordinates() + bounds checks
with a DirectPixelWriter struct that pre-computes orientation and render
mode state once per row. Use bitwise ops instead of division/modulo for
cache pixel packing. Skip PNG cache allocation when buffer exceeds 48KB
(framebuffer size) since PNG decode is fast enough that caching provides
minimal benefit, and the large buffer competes with the 44KB PNG decoder
for heap.

## Additional Context
Measured improvements on ESP32-C3 @ 160MHz:
- JPEG decode: 5-7% faster (1:1 scale)
- PNG decode: 15-20% faster (1:1 scale)
- Cache renders: 3-6% faster across both formats
- Eliminates "Failed to allocate cache buffer" errors for large PNGs

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**<  PARTIALLY >**_
2026-03-30 11:03:49 -05:00
jpirnay ea00584aa5 Optimize GfxRenderer drawArc/fillArc and drawRoundedRect stroke performance 2026-03-30 17:58:36 +02:00
Bas van der Ploeg d12f0666d4 chore: update Dutch translations (#1503)
## Summary

* **What is the goal of this PR?** (e.g., Implements the new feature for
file uploading.)
Added new Dutch translations
* **What changes are included?**
New Dutch translations

## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
  specific areas to focus on).

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**PARTIALLY**_
2026-03-30 10:49:14 -05:00
jpirnay f764d9c6a0 Merge remote-tracking branch 'pablohc/refactor/pr-1258-cover-overlay' into mybuild
# Conflicts:
#	lib/I18n/translations/english.yaml
#	scripts/gen_i18n.py
#	src/CrossPointSettings.h
#	src/SettingsList.h
#	src/activities/boot_sleep/SleepActivity.cpp
#	src/activities/boot_sleep/SleepActivity.h
2026-03-30 16:12:00 +02:00
jpirnay 7b12b0f27e Merge branch 'fix-css-pre' into mybuild
# Conflicts:
#	lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp
2026-03-30 15:15:46 +02:00
jpirnay 55de10124c Add missing flush on block changes 2026-03-30 14:38:09 +02:00
jpirnay 2111bc2fdb Fix unwanted nbsp payload of empty paragraphs 2026-03-30 14:25:04 +02:00
jpirnay ba07a6666d Fix br alignment reset behaviour 2026-03-30 13:38:46 +02:00
jpirnay b1c3b9d768 Fix unwanted br alignment reset 2026-03-30 13:35:11 +02:00
jpirnay 53f93b2857 Fix br count carry over regression 2026-03-30 13:26:41 +02:00
jpirnay d7c4471864 yaclf 2026-03-30 10:07:10 +02:00
jpirnay 4afce54c69 Merge branch 'feat-additional-compensation' of https://github.com/jpirnay/crosspoint-reader into mybuild
# Conflicts:
#	lib/hal/HalClock.cpp
#	src/CrossPointSettings.h
#	src/activities/reader/KOReaderSyncActivity.cpp
#	src/activities/settings/SettingsActivity.cpp
#	src/activities/settings/SettingsActivity.h
2026-03-30 09:17:29 +02:00
jpirnay 174bdf1f3d Fix correction direction 2026-03-30 09:10:04 +02:00
pablohc 4e4fcd278a fix: gen_i18n.py wraps comment lines to avoid clang-format reflow 2026-03-29 22:48:15 +02:00
pablohc 4699ff0b88 fix: wrap long language comment in gen_i18n.py output 2026-03-29 22:44:43 +02:00
pablohc 81d992d254 fix: add 'read' suffix to chapter page overlay format 2026-03-29 22:39:13 +02:00
pablohc fbeaf48e32 refactor: pass precomputed BookOverlayInfo to renderBitmapSleepScreen 2026-03-29 22:14:21 +02:00
pablohc 0f1d3ef31d fix: localize sleep overlay strings, validate TXT cache header, migrate overlay enum 2026-03-29 21:55:51 +02:00
pablohc 389ed7266b Refactor sleep cover overlay: BookOverlayInfo struct, multi-line layout, 4 color modes (White/Gray/Black/Off) 2026-03-29 20:51:56 +02:00
jpirnay 0bdfc6e816 Merge branch 'feat-additional-compensation' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-29 18:35:36 +02:00
jpirnay 4f92a9935e Adding experimental RTC temperature compensation 2026-03-29 18:19:35 +02:00
jpirnay 360e04f61c Merge branch 'perf-htmlslim-parser' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-29 09:42:40 +02:00
jpirnay 9d0316d7f1 Review comment 2026-03-29 09:23:56 +02:00
jpirnay 834c7b7712 Merge branch 'perf-htmlslim-parser' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 20:54:14 +01:00
jpirnay 6daf3fd1bb Add css cache 2026-03-28 20:49:03 +01:00
jpirnay 1b0c5fec28 Integration hell 2026-03-28 18:21:53 +01:00
jpirnay a2aee4f4ae Merge branch 'fix-css-pre' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 18:16:11 +01:00
jpirnay be430c781e Fix <pre> treatment 2026-03-28 17:44:10 +01:00
jpirnay 7f6933ab22 Recognize css pre elements 2026-03-28 16:47:55 +01:00
jpirnay ab03fe3ab7 Merge branch 'feat-koysnc-xpath' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 16:23:11 +01:00
jpirnay 9d7aa4e5a8 Add method 2026-03-28 12:15:47 +01:00
jpirnay 08f05b7a5b Fix br.0 indexing issue 2026-03-28 11:04:01 +01:00
jpirnay 420110b733 Fix index issue 2026-03-28 11:01:22 +01:00
jpirnay f0c8760a37 Merge branch 'feat-invalid-toc-fallback' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 10:41:24 +01:00
jpirnay 27ae5503c3 Merge branch 'refactor-remove-picojpeg' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 10:41:10 +01:00
jpirnay 348d00278d Merge branch 'fix-text-align' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-28 10:40:26 +01:00
jpirnay 69dbfa4b8a Fix discarded CSS text-align 2026-03-28 10:39:30 +01:00
jpirnay a403a8af39 Replace picojpeg by jpegdec 2026-03-27 22:05:42 +01:00
jpirnay 7f63ebbcf7 Use translated section string 2026-03-27 21:30:30 +01:00
jpirnay ba5b0b9191 Capitalize am / pm 2026-03-27 18:10:45 +01:00
jpirnay c71fb8c6af Merge branch 'feat-invalid-toc-fallback' of https://github.com/jpirnay/crosspoint-reader into mybuild 2026-03-27 17:29:45 +01:00
jpirnay 20d5cf96f7 Proper return code 2026-03-27 17:28:06 +01:00
jpirnay a51fd3953d Refactor to a more generic unobstrusive approach 2026-03-27 17:06:30 +01:00
jpirnay 3f8a87e907 Deal with invalid/incomplete toc.ncx files 2026-03-27 16:40:34 +01:00
jpirnay 316a1ac3ab Display drifitng stats 2026-03-27 11:49:13 +01:00