Parcourir la source

Remove obsolete JPEG-to-HTTP callback path

SybexXx il y a 1 jour
Parent
commit
17911e3275
1 fichiers modifiés avec 0 ajouts et 25 suppressions
  1. 0 25
      code/components/jomjol_controlcamera/ClassControllCamera.cpp

+ 0 - 25
code/components/jomjol_controlcamera/ClassControllCamera.cpp

@@ -131,12 +131,6 @@ static camera_config_t camera_config = {
     .sccb_i2c_port = 0,               // unused when the SCCB pins are configured above
     .sccb_i2c_port = 0,               // unused when the SCCB pins are configured above
 };
 };
 
 
-typedef struct
-{
-    httpd_req_t *req;
-    size_t len;
-} jpg_chunking_t;
-
 // The camera driver and sensor register access are not safe to use concurrently.
 // The camera driver and sensor register access are not safe to use concurrently.
 // Recursive locking allows public methods to safely call other locked methods.
 // Recursive locking allows public methods to safely call other locked methods.
 class ScopedCameraLock
 class ScopedCameraLock
@@ -906,25 +900,6 @@ void CCamera::SetCamWindow(sensor_t *s, int frameSizeX, int frameSizeY, int xOff
     }
     }
 }
 }
 
 
-static size_t jpg_encode_stream(void *arg, size_t index, const void *data, size_t len)
-{
-    jpg_chunking_t *j = (jpg_chunking_t *)arg;
-
-    if (!index)
-    {
-        j->len = 0;
-    }
-
-    if (httpd_resp_send_chunk(j->req, (const char *)data, len) != ESP_OK)
-    {
-        return 0;
-    }
-
-    j->len += len;
-
-    return len;
-}
-
 esp_err_t CCamera::CaptureToBasisImage(CImageBasis *_Image, int delay)
 esp_err_t CCamera::CaptureToBasisImage(CImageBasis *_Image, int delay)
 {
 {
     ScopedCameraOperationLock operationLock(m_cameraOperationMutex);
     ScopedCameraOperationLock operationLock(m_cameraOperationMutex);