bitbank2 / JPEGDEC

An optimized JPEG decoder for Arduino
Apache License 2.0
365 stars 47 forks source link

Wiki don't match with struc #48

Closed FroggyCorp closed 1 year ago

FroggyCorp commented 1 year ago

Hi,

In the JPEGDRAW structur is defined as :

typedef struct jpeg_draw_tag
{
  int x, y; // corner offset of this block of pixels
  int iWidth, iHeight; // size of this pixel block
  **uint8_t *pPixels; // RGB565 pixels**
} JPEGDRAW;

but is :

typedef struct jpeg_draw_tag
{
    int x, y; // upper left corner of current MCU
    int iWidth, iHeight; // size of this MCU
    **int iBpp; // bit depth of the pixels (8 or 16)**
    **uint16_t *pPixels; // 16-bit pixels**
    void *pUser;
} JPEGDRAW; 

That change may make some trouble for old prog.

Thanks in advance,

(great job, it save me 30ms for better result than the ESP32-cam library)

bitbank2 commented 1 year ago

Thanks for pointing out the discrepancy. I've been lagging on documentation for everything. I fixed it.