Lines Matching defs:block
2111 /* set up the calibration data block */
2142 /* set up the input block raw struct */
2153 /* set up the input block image struct */
2519 /* reset block */
2551 /* the +8 on all the lengths is to makeup for potential block trailers */
2599 DBG (5, "setup_buffers: ERROR: failed to setup block image buffer\n");
2604 DBG (5, "setup_buffers: ERROR: failed to setup block raw data buffer\n");
3092 /*first unknown cal block*/
3133 /*second unknown cal block*/
3956 /* scan not finished, get more into block buffer */
3959 /* block buffer currently empty, clean up */
3962 /* block buffer bigger than remainder of scan, shrink block */
3966 DBG (15, "sane_read: shrinking block to %lu\n", (unsigned long)remainTotal);
4002 /* block filled, copy to front/back */
4005 DBG (15, "sane_read: block buffer full\n");
4079 DBG (15, "sane_read: last block\n");
4343 /* fills block buffer a little per pass */
4392 DBG(15,"read_from_scanner: block too big?\n");
4397 DBG(15,"read_from_scanner: block done, ignoring trailer\n");
4419 /* copies block buffer into front or back image buffer */
4428 struct transfer * block = &s->block_xfr;
4430 int image_height = block->total_bytes / block->line_stride;
4432 int block_page_stride = block->image->width_bytes * block->image->height;
4442 if (s->fullscan.rx_bytes + s->block_xfr.rx_bytes <= block->line_stride * page->image->y_skip_offset)
4447 else if (s->fullscan.rx_bytes < block->line_stride * page->image->y_skip_offset)
4449 k = page->image->y_skip_offset - s->fullscan.rx_bytes / block->line_stride;
4453 /* loop over all the lines in the block */
4473 unsigned char * p_in = block->image->buffer + (side * block_page_stride)
4474 + (i * block->image->width_bytes) + page->image->x_start_offset * 3;
4480 if (block->mode == MODE_COLOR){
4517 unsigned char * p_in = block->image->buffer + (side * block_page_stride)
4518 + (i * block->image->width_bytes) + page->image->x_start_offset;
4543 /* skip non-transfer pixels in block image buffer */