ignore jpeg encoder error, get next image

pull/78/head^2
XiaochaoGONG 2019-06-18 11:29:01 +08:00
parent 413bc90443
commit 0acba9569c
2 changed files with 0 additions and 2 deletions

View File

@ -424,7 +424,6 @@ static esp_err_t stream_handler(httpd_req_t *req){
} }
if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len)){ if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len)){
ESP_LOGE(TAG, "fmt2jpg failed"); ESP_LOGE(TAG, "fmt2jpg failed");
res = ESP_FAIL;
} }
esp_camera_fb_return(fb); esp_camera_fb_return(fb);
fb = NULL; fb = NULL;

View File

@ -292,7 +292,6 @@ esp_err_t facenet_stream_handler(httpd_req_t *req)
if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len)) if(!fmt2jpg(image_matrix->item, fb->width*fb->height*3, fb->width, fb->height, PIXFORMAT_RGB888, 90, &_jpg_buf, &_jpg_buf_len))
{ {
ESP_LOGE(TAG, "fmt2jpg failed"); ESP_LOGE(TAG, "fmt2jpg failed");
res = ESP_FAIL;
} }
esp_camera_fb_return(fb); esp_camera_fb_return(fb);
fb = NULL; fb = NULL;