Lines Matching defs:page
99 - add working page-height control
117 - change page length autodetection condition
133 - set default page width
180 . . loop may continue with sane_start which may return a 2nd page
181 . . when doing duplex scans, or load the next page from the ADF)
1220 /* page width */
1247 /* page height */
2242 /* set up the pointers to the page images in the page structs */
2395 * Called by SANE when a page acquisition operation is to be started.
2407 /* set side marker on first page */
2435 /* first page requires buffers, etc */
2438 DBG(15,"sane_start: first page\n");
2499 /*should this be between each page*/
2522 /* reset front and back page counters */
3916 struct page * page;
3928 page = &s->pages[s->side];
3931 if(s->fullscan.done && page->done){
4085 *len = page->bytes_scanned - page->bytes_read;
4090 page->bytes_scanned, page->bytes_read, page->bytes_total,*len);
4092 memcpy(buf, page->image->buffer + page->bytes_read, *len);
4093 page->bytes_read += *len;
4097 if(page->bytes_read == page->bytes_scanned && s->fullscan.done){
4099 page->done = 1;
4163 for (i = 0; i < 2; i++){ /* page, front/back */
4429 struct page * page = &s->pages[side];
4431 int page_width = page->image->width_pix;
4437 int last_out_row = (page->bytes_scanned / page->image->width_bytes) - 1;
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;
4458 int this_out_row = (this_in_row - page->image->y_skip_offset) * page->image->y_res / s->fullscan.y_res;
4460 DBG (15, "copy_block_to_page: bs %d wb %d\n", page->bytes_scanned, page->image->width_bytes);
4463 if(this_out_row >= page->image->height || this_out_row < 0){
4466 page->bytes_scanned, page->bytes_read, page->bytes_total,page->image->width_bytes);
4474 + (i * block->image->width_bytes) + page->image->x_start_offset * 3;
4475 unsigned char * p_out = page->image->buffer + this_out_row * page->image->width_bytes;
4518 + (i * block->image->width_bytes) + page->image->x_start_offset;
4524 //memcpy(p_out,p_in,page->image->width_bytes);
4545 p_in -= page->image->x_offset_bytes;
4547 p_in += page->image->x_offset_bytes;
4554 page->bytes_scanned += page->image->width_bytes;