18 #define NEXTBYTE() getc(infile) 46 #ifdef DONT_USE_B_MODE 47 #define READ_BINARY "r" 50 #define READ_BINARY "rb", "ctx=stm" 52 #define READ_BINARY "rb" 154 if (c1 != 0xFF || c2 !=
M_SOI)
175 int discarded_bytes = 0;
225 *res = (((
unsigned int) c1) << 8) + ((
unsigned int) c2);
264 unsigned int image_height, image_width;
273 width = (int) image_width;
274 height = (int) image_height;
bool next_marker(int *res)
bool read_1_byte(int *res)
bool first_marker(int *res)
bool read_2_bytes(unsigned int *res)
bool getJPEGSize(const char *filename, int &width, int &height)
bool process_SOFn(int &width, int &height)