Commit Graph

93 Commits

Author SHA1 Message Date
Thomas Farstrike 3bc5151407 Fix colormode QR decoding
But somehow buffer size is 8 bytes...
2025-11-29 09:19:48 +01:00
Thomas Farstrike 8e0063c236 Camera app: cleanups 2025-11-28 21:18:18 +01:00
Thomas Farstrike 6b8b72a7a0 quirc_decode: back to memcpy for stability 2025-11-28 17:55:02 +01:00
Thomas Farstrike 8f4b3c5fbe quirc_decode.c: attempt zero-copy but crashes and black artifacts 2025-11-28 15:11:12 +01:00
Thomas Farstrike e42aa7d85b quirc.c: comments 2025-11-28 14:14:59 +01:00
Thomas Farstrike ef06b58ed6 Camera app: more resolutions, less memory use 2025-11-27 13:57:57 +01:00
Thomas Farstrike 7679db3607 Refactor camera code: DRY, fix memory leak, improve error handling
- Extract RGB conversion helper to eliminate duplication
  - Unify save functions
  - Fix buffer cleanup on error (memory leak)
  - Move retry logic into init_internal_cam()
  - Add error handling for failed camera reinitialization
  - Consolidate button sizing with class variables
  - Remove redundant initialization and unnecessary copies
2025-11-25 14:28:09 +01:00
Thomas Farstrike 01f7a1f84f Improve camera 2025-11-25 09:25:36 +01:00
Thomas Farstrike f8da36b630 camera: fix crash and other bugs 2025-11-25 09:05:56 +01:00
Thomas Farstrike 5bf790ed61 Simplify: no scaling 2025-11-25 08:19:11 +01:00
Thomas Farstrike 31e61e7d88 Improve camera 2025-11-25 07:59:48 +01:00
Thomas Farstrike 7e4585e91e Camera: support more resolutions
It's a bit unstable, as it crashes if the settings button is clicked after startup,
but not when closing and then re-opening. Seems to work for 640x480, including QR decoding.
2025-11-24 23:35:50 +01:00
Thomas Farstrike 1ab4970dc7 Work towards changing camera resolution 2025-11-24 22:54:26 +01:00
Thomas Farstrike eb342d3d3c Add custom font preparation 2025-11-21 18:48:27 +01:00
Thomas Farstrike e56f7f3d22 Remove unused hello_world.c 2025-10-25 19:19:25 +02:00
Thomas Farstrike 58220110ed Remove useless hello_world.c 2025-10-24 23:19:15 +02:00
Thomas Farstrike 5c81ae4340 Disable webcam stuff on macOS 2025-10-24 23:18:35 +02:00
Thomas Farstrike 8102a74084 Time QR decoding and add kdmukai's speedups
240x240 image decoding goes from 1800ms to 406ms. Thanks, @kdmukai!
2025-07-06 00:35:11 +02:00
Thomas Farstrike c2b3490657 Move from ~/sources to ~/projects 2025-06-15 10:25:38 +02:00
Thomas Farstrike 00f51afd79 Change PiggyOS to MicroPythonOS 2025-06-05 00:02:16 +02:00
Thomas Farstrike 2778c277d6 add c_mpos/micropython.cmake to fix qr decoding in ESP32 build 2025-06-02 17:20:45 +02:00
Thomas Farstrike e63c9d4040 cleanups 2025-05-19 08:56:26 +02:00
Thomas Farstrike b70202eabd QR decode: memory leak on ESP32 is fixed! 2025-05-15 16:48:05 +02:00
Thomas Farstrike 6432b650cc QR decode: memleak might be fixed 2025-05-15 16:38:53 +02:00
Thomas Farstrike 65fe0ba84a QR decode: try catching 2025-05-15 16:32:08 +02:00