Lines Matching refs:vfmt
400 struct sh_veu_vfmt *vfmt; in sh_veu_g_fmt() local
402 vfmt = sh_veu_get_vfmt(veu, f->type); in sh_veu_g_fmt()
404 pix->width = vfmt->frame.width; in sh_veu_g_fmt()
405 pix->height = vfmt->frame.height; in sh_veu_g_fmt()
407 pix->pixelformat = vfmt->fmt->fourcc; in sh_veu_g_fmt()
409 pix->bytesperline = vfmt->bytesperline; in sh_veu_g_fmt()
410 pix->sizeimage = vfmt->bytesperline * pix->height * in sh_veu_g_fmt()
411 vfmt->fmt->depth / vfmt->fmt->ydepth; in sh_veu_g_fmt()
519 static void sh_veu_colour_offset(struct sh_veu_dev *veu, struct sh_veu_vfmt *vfmt) in sh_veu_colour_offset() argument
522 unsigned int left = vfmt->frame.left & ~0x03; in sh_veu_colour_offset()
523 unsigned int top = vfmt->frame.top; in sh_veu_colour_offset()
528 vfmt->offset_y = offset; in sh_veu_colour_offset()
530 switch (vfmt->fmt->fourcc) { in sh_veu_colour_offset()
534 y_line = ALIGN(vfmt->frame.width, 16); in sh_veu_colour_offset()
535 vfmt->offset_c = offset + y_line * vfmt->frame.height; in sh_veu_colour_offset()
542 vfmt->offset_c = 0; in sh_veu_colour_offset()
553 struct sh_veu_vfmt *vfmt; in sh_veu_s_fmt() local
568 vfmt = sh_veu_get_vfmt(veu, f->type); in sh_veu_s_fmt()
571 vfmt->fmt = sh_veu_find_fmt(f); in sh_veu_s_fmt()
573 vfmt->frame.width = pix->width; in sh_veu_s_fmt()
574 vfmt->frame.height = pix->height; in sh_veu_s_fmt()
575 vfmt->bytesperline = pix->bytesperline; in sh_veu_s_fmt()
577 sh_veu_colour_offset(veu, vfmt); in sh_veu_s_fmt()
588 f->type, pix->width, pix->height, vfmt->fmt->fourcc); in sh_veu_s_fmt()
874 struct sh_veu_vfmt *vfmt; in sh_veu_queue_setup() local
891 vfmt = sh_veu_get_vfmt(veu, vq->type); in sh_veu_queue_setup()
892 size = vfmt->bytesperline * vfmt->frame.height * vfmt->fmt->depth / vfmt->fmt->ydepth; in sh_veu_queue_setup()
915 struct sh_veu_vfmt *vfmt; in sh_veu_buf_prepare() local
918 vfmt = sh_veu_get_vfmt(veu, vb->vb2_queue->type); in sh_veu_buf_prepare()
919 sizeimage = vfmt->bytesperline * vfmt->frame.height * in sh_veu_buf_prepare()
920 vfmt->fmt->depth / vfmt->fmt->ydepth; in sh_veu_buf_prepare()