23 boolean start_of_file;
28 #define INPUT_BUF_SIZE 4096 90 if (
src->start_of_file)
91 ERREXIT(cinfo, JERR_INPUT_EMPTY);
92 WARNMS(cinfo, JWRN_JPEG_EOF);
99 src->pub.next_input_byte =
src->buffer;
100 src->pub.bytes_in_buffer = nbytes;
129 while (num_bytes > (
long)
src->pub.bytes_in_buffer)
131 num_bytes -= (long)
src->
pub.bytes_in_buffer;
137 src->pub.next_input_byte += (size_t)num_bytes;
138 src->pub.bytes_in_buffer -= (size_t)num_bytes;
179 if (cinfo->src ==
nullptr)
184 src->buffer = (
JOCTET*)(*cinfo->mem->alloc_small)(
193 src->pub.resync_to_restart =
197 src->pub.bytes_in_buffer = 0;
198 src->pub.next_input_byte =
nullptr;
fill_input_buffer(j_decompress_ptr cinfo)
init_source(j_decompress_ptr cinfo)
my_source_mgr * my_src_ptr
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
term_source(j_decompress_ptr)
#define JFREAD(file, buf, sizeofbuf)
jpeg_resync_to_restart(j_decompress_ptr cinfo, int desired)
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
jpeg_stdio_src(j_decompress_ptr cinfo, FILE *infile)
#define WARNMS(cinfo, code)