Here is a line of code in C++.
the pic is an ESP32CAM image of type camera_fb_t so I suppose the buf is the buffer of the image taken.
The question is what is the jpeg_buf? Is it a conversion of all the buf[ii] to uint8_t? So jpeg_buf is an array of uint8_t numbers or am I wrong?
If it is an array of uint8_t numbers, how can I convert it to a B4R byte array?
C++:
uint8_t *jpeg_buf = (uint8_t*) pic->buf;
the pic is an ESP32CAM image of type camera_fb_t so I suppose the buf is the buffer of the image taken.
The question is what is the jpeg_buf? Is it a conversion of all the buf[ii] to uint8_t? So jpeg_buf is an array of uint8_t numbers or am I wrong?
If it is an array of uint8_t numbers, how can I convert it to a B4R byte array?