14 struct jpeg_source_mgr pub;
82 src->
pub.bytes_in_buffer = nbytes;
110 if (num_bytes > (
long) src->
pub.bytes_in_buffer) {
111 fprintf(stderr,
"jpeg memory source: skip beyond end-of-data %ld\n", num_bytes);
113 src->
pub.next_input_byte += (size_t) num_bytes;
114 src->
pub.bytes_in_buffer -= (size_t) num_bytes;
162 if (cinfo->src ==
NULL) {
163 cinfo->src = (
struct jpeg_source_mgr *)
164 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
177 src->
pub.resync_to_restart = jpeg_resync_to_restart;
179 src->
pub.bytes_in_buffer = 0;
180 src->
pub.next_input_byte =
NULL;