Lines Matching refs:pix

429 	struct v4l2_pix_format *pix = &f->fmt.pix;  in delta_g_fmt_stream()  local
439 pix->pixelformat = streaminfo->streamformat; in delta_g_fmt_stream()
440 pix->width = streaminfo->width; in delta_g_fmt_stream()
441 pix->height = streaminfo->height; in delta_g_fmt_stream()
442 pix->field = streaminfo->field; in delta_g_fmt_stream()
443 pix->bytesperline = 0; in delta_g_fmt_stream()
444 pix->sizeimage = ctx->max_au_size; in delta_g_fmt_stream()
445 pix->colorspace = streaminfo->colorspace; in delta_g_fmt_stream()
446 pix->xfer_func = streaminfo->xfer_func; in delta_g_fmt_stream()
447 pix->ycbcr_enc = streaminfo->ycbcr_enc; in delta_g_fmt_stream()
448 pix->quantization = streaminfo->quantization; in delta_g_fmt_stream()
457 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_g_fmt_frame() local
468 pix->pixelformat = frameinfo->pixelformat; in delta_g_fmt_frame()
469 pix->width = frameinfo->aligned_width; in delta_g_fmt_frame()
470 pix->height = frameinfo->aligned_height; in delta_g_fmt_frame()
471 pix->field = frameinfo->field; in delta_g_fmt_frame()
472 pix->bytesperline = frame_stride(frameinfo->aligned_width, in delta_g_fmt_frame()
474 pix->sizeimage = frameinfo->size; in delta_g_fmt_frame()
483 pix->colorspace = frameinfo->colorspace; in delta_g_fmt_frame()
484 pix->xfer_func = frameinfo->xfer_func; in delta_g_fmt_frame()
485 pix->ycbcr_enc = frameinfo->ycbcr_enc; in delta_g_fmt_frame()
486 pix->quantization = frameinfo->quantization; in delta_g_fmt_frame()
496 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_try_fmt_stream() local
497 u32 streamformat = pix->pixelformat; in delta_try_fmt_stream()
506 ctx->name, (char *)&pix->pixelformat); in delta_try_fmt_stream()
511 width = pix->width; in delta_try_fmt_stream()
512 height = pix->height; in delta_try_fmt_stream()
514 (&pix->width, in delta_try_fmt_stream()
518 &pix->height, in delta_try_fmt_stream()
523 if ((pix->width != width) || (pix->height != height)) in delta_try_fmt_stream()
527 pix->width, pix->height); in delta_try_fmt_stream()
529 au_size = estimated_au_size(pix->width, pix->height); in delta_try_fmt_stream()
530 if (pix->sizeimage < au_size) { in delta_try_fmt_stream()
533 ctx->name, pix->sizeimage, au_size); in delta_try_fmt_stream()
534 pix->sizeimage = au_size; in delta_try_fmt_stream()
537 pix->bytesperline = 0; in delta_try_fmt_stream()
539 if (pix->field == V4L2_FIELD_ANY) in delta_try_fmt_stream()
540 pix->field = V4L2_FIELD_NONE; in delta_try_fmt_stream()
550 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_try_fmt_frame() local
551 u32 pixelformat = pix->pixelformat; in delta_try_fmt_frame()
565 width = pix->width; in delta_try_fmt_frame()
566 height = pix->height; in delta_try_fmt_frame()
567 v4l_bound_align_image(&pix->width, in delta_try_fmt_frame()
570 &pix->height, in delta_try_fmt_frame()
574 if ((pix->width != width) || (pix->height != height)) in delta_try_fmt_frame()
577 ctx->name, width, height, pix->width, pix->height); in delta_try_fmt_frame()
580 width = ALIGN(pix->width, DELTA_WIDTH_ALIGNMENT); in delta_try_fmt_frame()
581 height = ALIGN(pix->height, DELTA_HEIGHT_ALIGNMENT); in delta_try_fmt_frame()
582 if ((pix->width != width) || (pix->height != height)) in delta_try_fmt_frame()
585 ctx->name, width, height, pix->width, pix->height); in delta_try_fmt_frame()
587 if (!pix->colorspace) { in delta_try_fmt_frame()
588 pix->colorspace = V4L2_COLORSPACE_REC709; in delta_try_fmt_frame()
589 pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; in delta_try_fmt_frame()
590 pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in delta_try_fmt_frame()
591 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in delta_try_fmt_frame()
594 pix->width = width; in delta_try_fmt_frame()
595 pix->height = height; in delta_try_fmt_frame()
596 pix->bytesperline = frame_stride(pix->width, pixelformat); in delta_try_fmt_frame()
597 pix->sizeimage = frame_size(pix->width, pix->height, pixelformat); in delta_try_fmt_frame()
599 if (pix->field == V4L2_FIELD_ANY) in delta_try_fmt_frame()
600 pix->field = V4L2_FIELD_NONE; in delta_try_fmt_frame()
611 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_s_fmt_stream() local
618 ctx->name, (char *)&pix->pixelformat); in delta_s_fmt_stream()
629 ctx->max_au_size = pix->sizeimage; in delta_s_fmt_stream()
630 ctx->streaminfo.width = pix->width; in delta_s_fmt_stream()
631 ctx->streaminfo.height = pix->height; in delta_s_fmt_stream()
632 ctx->streaminfo.streamformat = pix->pixelformat; in delta_s_fmt_stream()
633 ctx->streaminfo.colorspace = pix->colorspace; in delta_s_fmt_stream()
634 ctx->streaminfo.xfer_func = pix->xfer_func; in delta_s_fmt_stream()
635 ctx->streaminfo.ycbcr_enc = pix->ycbcr_enc; in delta_s_fmt_stream()
636 ctx->streaminfo.quantization = pix->quantization; in delta_s_fmt_stream()
647 struct v4l2_pix_format *pix = &f->fmt.pix; in delta_s_fmt_frame() local
671 ctx->name, (char *)&pix->pixelformat); in delta_s_fmt_frame()
680 frameinfo.pixelformat = pix->pixelformat; in delta_s_fmt_frame()
681 frameinfo.width = pix->width; in delta_s_fmt_frame()
682 frameinfo.height = pix->height; in delta_s_fmt_frame()
683 frameinfo.aligned_width = pix->width; in delta_s_fmt_frame()
684 frameinfo.aligned_height = pix->height; in delta_s_fmt_frame()
685 frameinfo.size = pix->sizeimage; in delta_s_fmt_frame()
686 frameinfo.field = pix->field; in delta_s_fmt_frame()
687 frameinfo.colorspace = pix->colorspace; in delta_s_fmt_frame()
688 frameinfo.xfer_func = pix->xfer_func; in delta_s_fmt_frame()
689 frameinfo.ycbcr_enc = pix->ycbcr_enc; in delta_s_fmt_frame()
690 frameinfo.quantization = pix->quantization; in delta_s_fmt_frame()
707 pix->pixelformat = frameinfo.pixelformat; in delta_s_fmt_frame()
708 pix->width = frameinfo.aligned_width; in delta_s_fmt_frame()
709 pix->height = frameinfo.aligned_height; in delta_s_fmt_frame()
710 pix->bytesperline = frame_stride(pix->width, pix->pixelformat); in delta_s_fmt_frame()
711 pix->sizeimage = frameinfo.size; in delta_s_fmt_frame()
712 pix->field = frameinfo.field; in delta_s_fmt_frame()
713 pix->colorspace = frameinfo.colorspace; in delta_s_fmt_frame()
714 pix->xfer_func = frameinfo.xfer_func; in delta_s_fmt_frame()
715 pix->ycbcr_enc = frameinfo.ycbcr_enc; in delta_s_fmt_frame()
716 pix->quantization = frameinfo.quantization; in delta_s_fmt_frame()