SmoothWifi
SmoothWifi
Hello, I try to load jpg img from memory too but with no success: #include "img1.h" //converted JPG into c array memcpy(disp_buffer, (unsigned char *)img1, sizeof(img1)); TFT_jpg_image(CENTER, CENTER, 0, NULL,...
Hello, thanks for you answer! the whole project is great and works fine (also with file name), however I am trying to load other img after an OTA (the device...
Thanks for the link sukeshak! I changed the code: int sz=sizeof(img); uint8_t *buffer = (uint8_t*) malloc(sz); if (buffer == NULL) printf("stop\r\n"); else { printf("start\r\n"); memcpy(buffer, (unsigned char *)img, sz); TFT_jpg_image(CENTER,...
Ok I have found it, I am going to study it :)
Well I get JDR_FMT1 as result what means the format is wrong. I have seen in rom/tjpgd.h format is RGB888 3bytes/pixel what I have chosen. Then I have seen another...
Well I won't give up with JPG :) ! I have also tried with his sample bot no success. int sz=sizeof(img); printf("size of img:%d\n\r",sz); uint8_t *buffer=(uint8_t*) malloc(sz); if (buffer) {...
well that is indeed the code I am trying to debug. I am stucked into the static UINT tjd_buf_input ( JDEC* jd, // Decompression object BYTE* buff, // Pointer to...
when I take jpg from SPIFFS it shows the right size: static UINT tjd_buf_input ( JDEC* jd, // Decompression object BYTE* buff, // Pointer to the read buffer (NULL:skip) UINT...