ESP32 Camera example sketch

So im looking at the example sketch for the esp32-cam, and the function that gets each frame for the live-stream video is esp_camera_fb_get(). Only problem is I cannot find it defined anywhere. I found it being declared in esp_camera.h, but I'm just wondering, where the hell is this function? I want to know how it works

It's in one of the library files. Have fun.

which one? where?

I did the research, you can to.

Tools -> Board: -> ESP32 Arduino -> AI Thinker ESP32-CAM

File -> Examples -> ESP32 -> Camera -> CameraWebServer

The file "app_httpd.cpp" has the web server and it handles a bunch of pages:

 "/" -> index_handler()
"/status" -> status_handler()
"/control" -> cmd_handler()
"/capture" -> capture_handler()
"/stream" -> stream_handler()
"/bmp" -> bmp_handler()
 "/xclk" -> xclk_handler()
"/reg" -> reg_handler()
"/greg" -> greg_handler()
"/pll" -> pll_handler()
"/resolution" -> win_handler()

If you want to get frames for a stream, I would look at the stream_handler().

That is possibly one of the worst and most useless replies to a question I have ever seen on this website. Why even say anything? Just dont reply lmao

I appreciate the reply, but I am looking specifically for the definition of the esp_camera_fb_get() function, and I looked through app_httpd.cpp earlier, I didn't find it

It is not clear that the source code is available. There are references to that symbol in several precompiled library files.

esp_camera.h:

/**
 * @brief Obtain pointer to a frame buffer.
 *
 * @return pointer to the frame buffer
 */
camera_fb_t* esp_camera_fb_get();

Here: