Lines Matching refs:src
551 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local
557 src->start_of_file = TRUE; in init_source()
598 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
604 memset(src->buffer, 0, INPUT_BUF_SIZE); in fill_input_buffer()
607 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
620 if (src->start_of_file) { /* Treat empty input file as fatal error */ in fill_input_buffer()
625 src->buffer[0] = (unsigned char) 0xFF; in fill_input_buffer()
626 src->buffer[1] = (unsigned char) JPEG_EOI; in fill_input_buffer()
630 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
631 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
632 src->start_of_file = FALSE; in fill_input_buffer()
652 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
658 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data()
659 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data()
665 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data()
666 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
693 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
706 my_src_ptr src; in jpeg_gdIOCtx_src() local
715 if (cinfo->src == NULL) { /* first time for this JPEG object? */ in jpeg_gdIOCtx_src()
716 cinfo->src = (struct jpeg_source_mgr *) in jpeg_gdIOCtx_src()
718 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
719 …src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src()
723 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
724 src->pub.init_source = init_source; in jpeg_gdIOCtx_src()
725 src->pub.fill_input_buffer = fill_input_buffer; in jpeg_gdIOCtx_src()
726 src->pub.skip_input_data = skip_input_data; in jpeg_gdIOCtx_src()
727 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */ in jpeg_gdIOCtx_src()
728 src->pub.term_source = term_source; in jpeg_gdIOCtx_src()
729 src->infile = infile; in jpeg_gdIOCtx_src()
730 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ in jpeg_gdIOCtx_src()
731 src->pub.next_input_byte = NULL; /* until buffer loaded */ in jpeg_gdIOCtx_src()