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;
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
init_source(j_decompress_ptr cinfo)
jpeg_memio_src(j_decompress_ptr cinfo, JOCTET *buf, long size)
struct jpeg_source_mgr pub
term_source(j_decompress_ptr cinfo)
my_source_mgr * my_src_ptr
static char buf[CHAR_SIZE]
fill_input_buffer(j_decompress_ptr cinfo)