-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: configurable resolution for camera
* refactor: support sensor options * refactor: remove staled camera implementation for we2 * refactor: reimplement camera api for we2 * refactor: we2 camera driver memory layout * feat: shared base64 buffer from little core's sram * refactor: opts for esp camera * refactor: opts for we1 camera * refactor: reduce el heap size for we2, cleanup * feat: shared base64 buffer, sensor info includes opts * refactor: sensor api * refactor: update sensor api * docs: add sensor opts api docs
- Loading branch information
Showing
27 changed files
with
451 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef _DRV_COMMON_H_ | ||
#define _DRV_COMMON_H_ | ||
|
||
#include <core/el_debug.h> | ||
#include <core/el_types.h> | ||
#include <inttypes.h> | ||
|
||
el_res_t _drv_fit_res(uint16_t width, uint16_t height) { | ||
el_res_t res; | ||
|
||
if (width > 320 || height > 240) { | ||
res.width = 640; | ||
res.height = 480; | ||
} else if (width > 160 || height > 120) { | ||
res.width = 320; | ||
res.height = 240; | ||
} else { | ||
res.width = 160; | ||
res.height = 120; | ||
} | ||
|
||
EL_LOGD("fit width: %d height: %d", res.width, res.height); | ||
|
||
return res; | ||
} | ||
|
||
#endif |
Oops, something went wrong.