Lines Matching refs:src

567 	my_src_ptr src = (my_src_ptr) cinfo->src;  in init_source()  local
573 src->start_of_file = TRUE; in init_source()
614 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
620 memset(src->buffer, 0, INPUT_BUF_SIZE); in fill_input_buffer()
623 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
636 if (src->start_of_file) { /* Treat empty input file as fatal error */ in fill_input_buffer()
641 src->buffer[0] = (unsigned char) 0xFF; in fill_input_buffer()
642 src->buffer[1] = (unsigned char) JPEG_EOI; in fill_input_buffer()
646 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
647 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
648 src->start_of_file = FALSE; in fill_input_buffer()
668 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
674 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data()
675 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data()
681 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data()
682 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
709 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
722 my_src_ptr src; in jpeg_gdIOCtx_src() local
731 if (cinfo->src == NULL) { /* first time for this JPEG object? */ in jpeg_gdIOCtx_src()
732 cinfo->src = (struct jpeg_source_mgr *) in jpeg_gdIOCtx_src()
734 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
735src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src()
739 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
740 src->pub.init_source = init_source; in jpeg_gdIOCtx_src()
741 src->pub.fill_input_buffer = fill_input_buffer; in jpeg_gdIOCtx_src()
742 src->pub.skip_input_data = skip_input_data; in jpeg_gdIOCtx_src()
743 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */ in jpeg_gdIOCtx_src()
744 src->pub.term_source = term_source; in jpeg_gdIOCtx_src()
745 src->infile = infile; in jpeg_gdIOCtx_src()
746 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ in jpeg_gdIOCtx_src()
747 src->pub.next_input_byte = NULL; /* until buffer loaded */ in jpeg_gdIOCtx_src()