-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support: jpeg decoder on esp32c2 #525
Support: jpeg decoder on esp32c2 #525
Conversation
cc @igrr @me-no-dev |
LGTM as an interim solution, just one comment about the target check. Long term, it would be best to move the image processing functions into a separate component so that they could be included without the actual camera driver. |
fc3c843
to
a8839de
Compare
My issue with this PR is that it's specific to just one unsupported chip. Or am I missing something? What would happen on C3/C6/H2, etc? |
@me-no-dev you're right. For C3 it's supported in ROM but for the other chips not. How about we do this change (software jpeg decoder) for all the unsupported chips? |
Regarding other chips, i would recommend using |
@me-no-dev @igrr We also started with esp_jpeg component https://github.com/espressif/idf-extra-components/tree/master/esp_jpeg This component will automatically use 'soft' implementation, if the target does not contain the decoder in ROM. |
Yes. This is the way forward, but let's have it for next version, where more things will change. |
We could always build the source, but ifdef inside everything to be compiled only if IDF version is equal or more than 4.3 and |
28790a2
to
3dda235
Compare
@me-no-dev |
35320c5
to
0e2315b
Compare
Also, disabled camera_init and capture from example for chips not supporting camera Signed-off-by: Vikram <vikram.dattu@espressif.com>
Signed-off-by: Vikram <vikram.dattu@espressif.com>
0e2315b
to
b93a1d7
Compare
Previous PR tried fixing this by just including tjpegd.h rom header. However this is not true for all chip versions of esp32c2. #524
Also, disabled camera function calls for ESP32C2 from example as this is not supported. This helps to run the CI without linking errors.
PR #524 will be closed in favour of this.