mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 07:22:04 +08:00
Add thumbnails to camera_frame_stream
This commit is contained in:
@@ -119,7 +119,10 @@ void cameras_close(MultiCameraState *s) {
|
||||
|
||||
// called by processing_thread
|
||||
void camera_process_rear(MultiCameraState *s, CameraState *c, int cnt) {
|
||||
// empty
|
||||
if (cnt % 100 == 3) {
|
||||
const CameraBuf *b = &c->buf;
|
||||
create_thumbnail(s, c, (uint8_t*)b->cur_rgb_buf->addr);
|
||||
}
|
||||
}
|
||||
|
||||
void cameras_run(MultiCameraState *s) {
|
||||
|
||||
Reference in New Issue
Block a user