| 68 | } |
| 69 | |
| 70 | static int tget(const uint8_t **p, int type, int le){ |
| 71 | switch(type){ |
| 72 | case TIFF_BYTE : return *(*p)++; |
| 73 | case TIFF_SHORT: return tget_short(p, le); |
| 74 | case TIFF_LONG : return tget_long (p, le); |
| 75 | default : return -1; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | #if CONFIG_ZLIB |
| 80 | static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src, int size) |
no test coverage detected