Lines Matching full:pitch

391 	saa7146_write(dev, where+0x0c,	vdma->pitch);  in saa7146_write_out_dma()
402 printk("vdma%d.pitch: 0x%08x\n", which,vdma->pitch); in saa7146_write_out_dma()
425 vdma1.pitch = bytesperline*2; in calculate_video_dma_grab_packed()
427 vdma1.pitch = (width*depth*2)/8; in calculate_video_dma_grab_packed()
434 vdma1.base_even = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed()
435 vdma1.base_odd = vdma1.base_even - (vdma1.pitch/2); in calculate_video_dma_grab_packed()
438 vdma1.base_odd = vdma1.base_even + (vdma1.pitch/2); in calculate_video_dma_grab_packed()
439 vdma1.prot_addr = buf->pt[0].offset+(vdma1.pitch/2)*height; in calculate_video_dma_grab_packed()
447 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
451 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
455 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
459 vdma1.pitch /= 2; in calculate_video_dma_grab_packed()
463 vdma1.pitch *= -1; in calculate_video_dma_grab_packed()
476 vdma2->pitch = width; in calc_planar_422()
477 vdma3->pitch = width; in calc_planar_422()
483 vdma2->base_even = ((vdma2->pitch/2)*height)+buf->pt[1].offset; in calc_planar_422()
484 vdma2->base_odd = vdma2->base_even - (vdma2->pitch/2); in calc_planar_422()
487 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[2].offset; in calc_planar_422()
488 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); in calc_planar_422()
491 vdma3->base_odd = vdma3->base_even + (vdma3->pitch/2); in calc_planar_422()
492 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; in calc_planar_422()
495 vdma2->base_odd = vdma2->base_even + (vdma2->pitch/2); in calc_planar_422()
496 vdma2->prot_addr = (vdma2->pitch/2)*height+buf->pt[1].offset; in calc_planar_422()
508 vdma2->pitch = width/2; in calc_planar_420()
509 vdma3->pitch = width/2; in calc_planar_420()
513 vdma2->base_even = ((vdma2->pitch/2)*height)+buf->pt[2].offset; in calc_planar_420()
514 vdma2->base_odd = vdma2->base_even - (vdma2->pitch/2); in calc_planar_420()
517 vdma3->base_even = ((vdma3->pitch/2)*height)+buf->pt[1].offset; in calc_planar_420()
518 vdma3->base_odd = vdma3->base_even - (vdma3->pitch/2); in calc_planar_420()
522 vdma3->base_odd = vdma3->base_even + (vdma3->pitch); in calc_planar_420()
523 vdma3->prot_addr = (vdma3->pitch/2)*height+buf->pt[2].offset; in calc_planar_420()
526 vdma2->base_odd = vdma2->base_even + (vdma2->pitch); in calc_planar_420()
527 vdma2->prot_addr = (vdma2->pitch/2)*height+buf->pt[1].offset; in calc_planar_420()
559 vdma1.pitch = width*2; in calculate_video_dma_grab_planar()
565 vdma1.base_even = ((vdma1.pitch/2)*height)+buf->pt[0].offset; in calculate_video_dma_grab_planar()
566 vdma1.base_odd = vdma1.base_even - (vdma1.pitch/2); in calculate_video_dma_grab_planar()
569 vdma1.base_odd = vdma1.base_even + (vdma1.pitch/2); in calculate_video_dma_grab_planar()
570 vdma1.prot_addr = (vdma1.pitch/2)*height+buf->pt[0].offset; in calculate_video_dma_grab_planar()
597 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
599 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
601 vdma3.pitch /= 2; in calculate_video_dma_grab_planar()
604 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
606 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
608 vdma3.pitch /= 2; in calculate_video_dma_grab_planar()
612 vdma1.pitch /= 2; in calculate_video_dma_grab_planar()
615 vdma2.pitch /= 2; in calculate_video_dma_grab_planar()
618 vdma3.pitch /= 2; in calculate_video_dma_grab_planar()
622 vdma1.pitch *= -1; in calculate_video_dma_grab_planar()
623 vdma2.pitch *= -1; in calculate_video_dma_grab_planar()
624 vdma3.pitch *= -1; in calculate_video_dma_grab_planar()
761 printk("vdma%d.pitch: 0x%08x\n", 1,saa7146_read(dev,PITCH1)); in saa7146_set_capture()