Skip to content

Getting ready for Arduino IDE Library Manager#29

Merged
ozan956 merged 7 commits into
mainfrom
feature/arduino-ide-preps
Apr 27, 2026
Merged

Getting ready for Arduino IDE Library Manager#29
ozan956 merged 7 commits into
mainfrom
feature/arduino-ide-preps

Conversation

@ozan956
Copy link
Copy Markdown
Contributor

@ozan956 ozan956 commented Apr 25, 2026

No description provided.

Select frame buffer location by pixel format: keep raw RGB/GRAY in DRAM,
keep JPEG in PSRAM.

Check sensor set_pixformat/set_framesize return values during init.

Re-apply pixel format after framesize setup to preserve
requested RGB565/GRAY.

Validate captured framebuffer format against requested image format.

Remove RGB565->BGR565 post-copy swap and silence unused capture mode
params.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
@ozan956 ozan956 self-assigned this Apr 25, 2026
@ozan956 ozan956 added the enhancement New feature or request label Apr 25, 2026
ozan956 added 3 commits April 26, 2026 16:21
Add ESP32-native JPEG compression backend in compress.c. Detect
img_converters.h and enable fmt2jpg path when libjpeg is absent.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
Implement serial_send_jpeg() for ESP32 UART transport.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
Improve out-of-the-box Arduino builds by inferring EMBED_DIP target
macros when explicit defines are not provided.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
@ozan956 ozan956 force-pushed the feature/arduino-ide-preps branch from 94c958d to d96bf58 Compare April 26, 2026 14:22
ozan956 added 3 commits April 26, 2026 16:25
Use pixel count as the iteration bound instead of inImg->size.

inImg->size is byte-based for RGB888, but the loop indexes pixels with i*3.
Using size as the bound can overrun input/output buffers and produce invalid
grayscale conversion results.

This aligns iteration with pixel indexing and prevents out-of-bounds access.

Fixes: 7eb82eb ("embedDIP: initial public release")
Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
Add RGB565 byte swapping in serial_send() for ESP32 UART output.

When image format is RGB565, payload bytes are now swapped in chunks
using a static transmit buffer before Serial.write(). This keeps the
wire format compatible with host-side decoders expecting RGB565 byte order.

Non-RGB565 formats keep the existing block-based transmission path.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
Track camera init state and deinit before reinit.

Uninstall GPIO ISR service to avoid re-install failures.

Route stop/setRes through full reinit.

Signed-off-by: Ozan Durgut <ozandurgut.2001@hotmail.com>
@ozan956 ozan956 force-pushed the feature/arduino-ide-preps branch from d96bf58 to 7f345b9 Compare April 26, 2026 14:26
@ozan956 ozan956 merged commit 712e29b into main Apr 27, 2026
1 check passed
@ozan956 ozan956 deleted the feature/arduino-ide-preps branch April 27, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESP JPEG Support ESP Camera Driver to be fixed esp camera not works now + supported version add

1 participant