Lines Matching refs:src
532 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local
538 src->start_of_file = TRUE; in init_source()
579 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
585 memset(src->buffer, 0, INPUT_BUF_SIZE); in fill_input_buffer()
588 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
601 if (src->start_of_file) { /* Treat empty input file as fatal error */ in fill_input_buffer()
606 src->buffer[0] = (unsigned char) 0xFF; in fill_input_buffer()
607 src->buffer[1] = (unsigned char) JPEG_EOI; in fill_input_buffer()
611 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
612 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
613 src->start_of_file = FALSE; in fill_input_buffer()
633 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
639 while (num_bytes > (long) src->pub.bytes_in_buffer) { in skip_input_data()
640 num_bytes -= (long) src->pub.bytes_in_buffer; in skip_input_data()
646 src->pub.next_input_byte += (size_t) num_bytes; in skip_input_data()
647 src->pub.bytes_in_buffer -= (size_t) num_bytes; in skip_input_data()
674 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
687 my_src_ptr src; in jpeg_gdIOCtx_src() local
696 if (cinfo->src == NULL) { /* first time for this JPEG object? */ in jpeg_gdIOCtx_src()
697 cinfo->src = (struct jpeg_source_mgr *) in jpeg_gdIOCtx_src()
699 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
700 …src->buffer = (unsigned char *) (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,… in jpeg_gdIOCtx_src()
704 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
705 src->pub.init_source = init_source; in jpeg_gdIOCtx_src()
706 src->pub.fill_input_buffer = fill_input_buffer; in jpeg_gdIOCtx_src()
707 src->pub.skip_input_data = skip_input_data; in jpeg_gdIOCtx_src()
708 src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */ in jpeg_gdIOCtx_src()
709 src->pub.term_source = term_source; in jpeg_gdIOCtx_src()
710 src->infile = infile; in jpeg_gdIOCtx_src()
711 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ in jpeg_gdIOCtx_src()
712 src->pub.next_input_byte = NULL; /* until buffer loaded */ in jpeg_gdIOCtx_src()