Lines Matching refs:src
564 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local
570 src->start_of_file = TRUE; in init_source()
611 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
617 memset(src->buffer, 0, INPUT_BUF_SIZE); in fill_input_buffer()
620 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
633 if (src->start_of_file) { /* Treat empty input file as fatal error */ in fill_input_buffer()
638 src->buffer[0] = (unsigned char) 0xFF; in fill_input_buffer()
639 src->buffer[1] = (unsigned char) JPEG_EOI; in fill_input_buffer()
643 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
644 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
645 src->start_of_file = FALSE; in fill_input_buffer()
665 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
671 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data()
672 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data()
678 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data()
679 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
706 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
719 my_src_ptr src; in jpeg_gdIOCtx_src() local
728 if (cinfo->src == NULL) { /* first time for this JPEG object? */ in jpeg_gdIOCtx_src()
729 cinfo->src = (struct jpeg_source_mgr *) in jpeg_gdIOCtx_src()
731 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
732 …src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src()
736 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
737 src->pub.init_source = init_source; in jpeg_gdIOCtx_src()
738 src->pub.fill_input_buffer = fill_input_buffer; in jpeg_gdIOCtx_src()
739 src->pub.skip_input_data = skip_input_data; in jpeg_gdIOCtx_src()
740 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */ in jpeg_gdIOCtx_src()
741 src->pub.term_source = term_source; in jpeg_gdIOCtx_src()
742 src->infile = infile; in jpeg_gdIOCtx_src()
743 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ in jpeg_gdIOCtx_src()
744 src->pub.next_input_byte = NULL; /* until buffer loaded */ in jpeg_gdIOCtx_src()