Lines Matching refs:src
46 my_src_ptr src = (my_src_ptr) cinfo->src;
52 src->start_of_file = TRUE;
92 my_src_ptr src = (my_src_ptr) cinfo->src;
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
98 if (src->start_of_file) /* Treat empty input file as fatal error */
102 src->buffer[0] = (JOCTET) 0xFF;
103 src->buffer[1] = (JOCTET) JPEG_EOI;
107 src->pub.next_input_byte = src->buffer;
108 src->pub.bytes_in_buffer = nbytes;
109 src->start_of_file = FALSE;
130 my_src_ptr src = (my_src_ptr) cinfo->src;
137 while (num_bytes > (long) src->pub.bytes_in_buffer) {
138 num_bytes -= (long) src->pub.bytes_in_buffer;
144 src->pub.next_input_byte += (size_t) num_bytes;
145 src->pub.bytes_in_buffer -= (size_t) num_bytes;
184 my_src_ptr src;
193 if (cinfo->src == NULL) { /* first time for this JPEG object? */
194 cinfo->src = (struct jpeg_source_mgr *)
197 src = (my_src_ptr) cinfo->src;
198 src->buffer = (JOCTET *)
203 src = (my_src_ptr) cinfo->src;
204 src->pub.init_source = init_source;
205 src->pub.fill_input_buffer = fill_input_buffer;
206 src->pub.skip_input_data = skip_input_data;
207 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
208 src->pub.term_source = term_source;
209 src->infile = infile;
210 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */
211 src->pub.next_input_byte = NULL; /* until buffer loaded */