pix 1087 arch/powerpc/platforms/pseries/lpar.c int i, pix = 0; pix 1097 arch/powerpc/platforms/pseries/lpar.c if (!pix || vpgb != current_vpgb) { pix 1102 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1103 arch/powerpc/platforms/pseries/lpar.c (void)call_block_remove(pix, param, true); pix 1106 arch/powerpc/platforms/pseries/lpar.c pix = 1; pix 1109 arch/powerpc/platforms/pseries/lpar.c param[pix++] = HBR_REQUEST | HBLKR_AVPN | slot[i]; pix 1110 arch/powerpc/platforms/pseries/lpar.c if (pix == PLPAR_HCALL9_BUFSIZE) { pix 1111 arch/powerpc/platforms/pseries/lpar.c pix = call_block_remove(pix, param, false); pix 1120 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1121 arch/powerpc/platforms/pseries/lpar.c pix++; pix 1124 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1125 arch/powerpc/platforms/pseries/lpar.c (void)call_block_remove(pix, param, true); pix 1132 arch/powerpc/platforms/pseries/lpar.c int i = 0, pix = 0, rc; pix 1140 arch/powerpc/platforms/pseries/lpar.c param[pix] = HBR_REQUEST | HBR_AVPN | slot[i]; pix 1141 arch/powerpc/platforms/pseries/lpar.c param[pix+1] = hpte_encode_avpn(vpn[i], psize, ssize); pix 1142 arch/powerpc/platforms/pseries/lpar.c pix += 2; pix 1143 arch/powerpc/platforms/pseries/lpar.c if (pix == 8) { pix 1149 arch/powerpc/platforms/pseries/lpar.c pix = 0; pix 1153 arch/powerpc/platforms/pseries/lpar.c if (pix) { pix 1154 arch/powerpc/platforms/pseries/lpar.c param[pix] = HBR_END; pix 1288 arch/powerpc/platforms/pseries/lpar.c unsigned long i, pix = 0; pix 1305 arch/powerpc/platforms/pseries/lpar.c if (!pix || vpgb != current_vpgb) { pix 1310 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1311 arch/powerpc/platforms/pseries/lpar.c (void)call_block_remove(pix, param, pix 1316 arch/powerpc/platforms/pseries/lpar.c pix = 1; pix 1320 arch/powerpc/platforms/pseries/lpar.c param[pix++] = HBR_REQUEST | HBLKR_AVPN | slot; pix 1322 arch/powerpc/platforms/pseries/lpar.c if (pix == PLPAR_HCALL9_BUFSIZE) { pix 1323 arch/powerpc/platforms/pseries/lpar.c pix = call_block_remove(pix, param, false); pix 1332 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1333 arch/powerpc/platforms/pseries/lpar.c pix++; pix 1338 arch/powerpc/platforms/pseries/lpar.c if (pix) pix 1339 arch/powerpc/platforms/pseries/lpar.c (void)call_block_remove(pix, param, true); pix 1483 arch/powerpc/platforms/pseries/lpar.c unsigned long i, pix, rc; pix 1502 arch/powerpc/platforms/pseries/lpar.c pix = 0; pix 1515 arch/powerpc/platforms/pseries/lpar.c param[pix] = HBR_REQUEST | HBR_AVPN | slot; pix 1516 arch/powerpc/platforms/pseries/lpar.c param[pix+1] = hpte_encode_avpn(vpn, psize, pix 1518 arch/powerpc/platforms/pseries/lpar.c pix += 2; pix 1519 arch/powerpc/platforms/pseries/lpar.c if (pix == 8) { pix 1525 arch/powerpc/platforms/pseries/lpar.c pix = 0; pix 1530 arch/powerpc/platforms/pseries/lpar.c if (pix) { pix 1531 arch/powerpc/platforms/pseries/lpar.c param[pix] = HBR_END; pix 541 drivers/gpu/drm/armada/armada_crtc.c static void armada_load_cursor_argb(void __iomem *base, uint32_t *pix, pix 549 drivers/gpu/drm/armada/armada_crtc.c uint32_t *p = &pix[y * stride]; pix 668 drivers/gpu/drm/armada/armada_crtc.c uint32_t *pix; pix 670 drivers/gpu/drm/armada/armada_crtc.c pix = obj->addr; pix 671 drivers/gpu/drm/armada/armada_crtc.c pix += yoff * s + xoff; pix 672 drivers/gpu/drm/armada/armada_crtc.c armada_load_cursor_argb(dcrtc->base, pix, s, w, h); pix 1135 drivers/gpu/drm/vc4/vc4_dsi.c const u8 *pix = packet.payload + cmd_fifo_len + i * 4; pix 1138 drivers/gpu/drm/vc4/vc4_dsi.c pix[0] | pix 1139 drivers/gpu/drm/vc4/vc4_dsi.c pix[1] << 8 | pix 1140 drivers/gpu/drm/vc4/vc4_dsi.c pix[2] << 16 | pix 1141 drivers/gpu/drm/vc4/vc4_dsi.c pix[3] << 24); pix 588 drivers/gpu/ipu-v3/ipu-cpmem.c #define Y_OFFSET(pix, x, y) ((x) + pix->width * (y)) pix 589 drivers/gpu/ipu-v3/ipu-cpmem.c #define U_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 590 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * ((y) / 2) / 2) + (x) / 2) pix 591 drivers/gpu/ipu-v3/ipu-cpmem.c #define V_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 592 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * pix->height / 4) + \ pix 593 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * ((y) / 2) / 2) + (x) / 2) pix 594 drivers/gpu/ipu-v3/ipu-cpmem.c #define U2_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 595 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * (y) / 2) + (x) / 2) pix 596 drivers/gpu/ipu-v3/ipu-cpmem.c #define V2_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 597 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * pix->height / 2) + \ pix 598 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * (y) / 2) + (x) / 2) pix 599 drivers/gpu/ipu-v3/ipu-cpmem.c #define UV_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 600 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * ((y) / 2)) + (x)) pix 601 drivers/gpu/ipu-v3/ipu-cpmem.c #define UV2_OFFSET(pix, x, y) ((pix->width * pix->height) + \ pix 602 drivers/gpu/ipu-v3/ipu-cpmem.c (pix->width * y) + (x)) pix 766 drivers/gpu/ipu-v3/ipu-cpmem.c struct v4l2_pix_format *pix = &image->pix; pix 771 drivers/gpu/ipu-v3/ipu-cpmem.c __func__, pix->width, pix->height, pix 772 drivers/gpu/ipu-v3/ipu-cpmem.c pix->bytesperline); pix 775 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_stride(ch, pix->bytesperline); pix 777 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_fmt(ch, v4l2_pix_fmt_to_drm_fourcc(pix->pixelformat)); pix 779 drivers/gpu/ipu-v3/ipu-cpmem.c switch (pix->pixelformat) { pix 781 drivers/gpu/ipu-v3/ipu-cpmem.c offset = Y_OFFSET(pix, image->rect.left, image->rect.top); pix 783 drivers/gpu/ipu-v3/ipu-cpmem.c image->u_offset : U_OFFSET(pix, image->rect.left, pix 786 drivers/gpu/ipu-v3/ipu-cpmem.c image->v_offset : V_OFFSET(pix, image->rect.left, pix 789 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, pix 793 drivers/gpu/ipu-v3/ipu-cpmem.c offset = Y_OFFSET(pix, image->rect.left, image->rect.top); pix 795 drivers/gpu/ipu-v3/ipu-cpmem.c image->u_offset : V_OFFSET(pix, image->rect.left, pix 798 drivers/gpu/ipu-v3/ipu-cpmem.c image->v_offset : U_OFFSET(pix, image->rect.left, pix 801 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, pix 805 drivers/gpu/ipu-v3/ipu-cpmem.c offset = Y_OFFSET(pix, image->rect.left, image->rect.top); pix 807 drivers/gpu/ipu-v3/ipu-cpmem.c image->u_offset : U2_OFFSET(pix, image->rect.left, pix 810 drivers/gpu/ipu-v3/ipu-cpmem.c image->v_offset : V2_OFFSET(pix, image->rect.left, pix 813 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline / 2, pix 817 drivers/gpu/ipu-v3/ipu-cpmem.c offset = Y_OFFSET(pix, image->rect.left, image->rect.top); pix 819 drivers/gpu/ipu-v3/ipu-cpmem.c image->u_offset : UV_OFFSET(pix, image->rect.left, pix 823 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline, pix 827 drivers/gpu/ipu-v3/ipu-cpmem.c offset = Y_OFFSET(pix, image->rect.left, image->rect.top); pix 829 drivers/gpu/ipu-v3/ipu-cpmem.c image->u_offset : UV2_OFFSET(pix, image->rect.left, pix 833 drivers/gpu/ipu-v3/ipu-cpmem.c ipu_cpmem_set_yuv_planar_full(ch, pix->bytesperline, pix 840 drivers/gpu/ipu-v3/ipu-cpmem.c image->rect.top * pix->bytesperline; pix 853 drivers/gpu/ipu-v3/ipu-cpmem.c image->rect.top * pix->bytesperline; pix 858 drivers/gpu/ipu-v3/ipu-cpmem.c image->rect.top * pix->bytesperline; pix 865 drivers/gpu/ipu-v3/ipu-cpmem.c offset = image->rect.left + image->rect.top * pix->bytesperline; pix 873 drivers/gpu/ipu-v3/ipu-cpmem.c image->rect.top * pix->bytesperline; pix 331 drivers/gpu/ipu-v3/ipu-image-convert.c ic_image->base.pix.width, ic_image->base.pix.height, pix 982 drivers/gpu/ipu-v3/ipu-image-convert.c H = image->base.pix.height; pix 1320 drivers/gpu/ipu-v3/ipu-image-convert.c tile_image.pix.width = tile_image.rect.width = width; pix 1321 drivers/gpu/ipu-v3/ipu-image-convert.c tile_image.pix.height = tile_image.rect.height = height; pix 1322 drivers/gpu/ipu-v3/ipu-image-convert.c tile_image.pix.bytesperline = stride; pix 1323 drivers/gpu/ipu-v3/ipu-image-convert.c tile_image.pix.pixelformat = image->fmt->fourcc; pix 1900 drivers/gpu/ipu-v3/ipu-image-convert.c ic_image->fmt = get_format(image->pix.pixelformat); pix 1908 drivers/gpu/ipu-v3/ipu-image-convert.c ic_image->stride = ic_image->base.pix.width; pix 1910 drivers/gpu/ipu-v3/ipu-image-convert.c ic_image->stride = ic_image->base.pix.bytesperline; pix 1940 drivers/gpu/ipu-v3/ipu-image-convert.c infmt = get_format(in->pix.pixelformat); pix 1941 drivers/gpu/ipu-v3/ipu-image-convert.c outfmt = get_format(out->pix.pixelformat); pix 1945 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.pixelformat = V4L2_PIX_FMT_RGB24; pix 1949 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.pixelformat = V4L2_PIX_FMT_RGB24; pix 1954 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.field = out->pix.field = V4L2_FIELD_NONE; pix 1958 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.height = max_t(__u32, out->pix.height, pix 1959 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.width / 4); pix 1960 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.width = max_t(__u32, out->pix.width, pix 1961 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.height / 4); pix 1963 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.width = max_t(__u32, out->pix.width, pix 1964 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.width / 4); pix 1965 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.height = max_t(__u32, out->pix.height, pix 1966 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.height / 4); pix 1974 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.width = clamp_align(in->pix.width, MIN_W, MAX_W, pix 1976 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.height = clamp_align(in->pix.height, MIN_H, MAX_H, pix 1984 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.width = clamp_align(out->pix.width, MIN_W, MAX_W, pix 1986 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.height = clamp_align(out->pix.height, MIN_H, MAX_H, pix 1990 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.bytesperline = infmt->planar ? pix 1991 drivers/gpu/ipu-v3/ipu-image-convert.c clamp_align(in->pix.width, 2 << w_align_in, MAX_W, pix 1993 drivers/gpu/ipu-v3/ipu-image-convert.c clamp_align((in->pix.width * infmt->bpp) >> 3, pix 1997 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.sizeimage = infmt->planar ? pix 1998 drivers/gpu/ipu-v3/ipu-image-convert.c (in->pix.height * in->pix.bytesperline * infmt->bpp) >> 3 : pix 1999 drivers/gpu/ipu-v3/ipu-image-convert.c in->pix.height * in->pix.bytesperline; pix 2000 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.bytesperline = outfmt->planar ? out->pix.width : pix 2001 drivers/gpu/ipu-v3/ipu-image-convert.c (out->pix.width * outfmt->bpp) >> 3; pix 2002 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.sizeimage = outfmt->planar ? pix 2003 drivers/gpu/ipu-v3/ipu-image-convert.c (out->pix.height * out->pix.bytesperline * outfmt->bpp) >> 3 : pix 2004 drivers/gpu/ipu-v3/ipu-image-convert.c out->pix.height * out->pix.bytesperline; pix 2023 drivers/gpu/ipu-v3/ipu-image-convert.c if (testin.pix.width != in->pix.width || pix 2024 drivers/gpu/ipu-v3/ipu-image-convert.c testin.pix.height != in->pix.height || pix 2025 drivers/gpu/ipu-v3/ipu-image-convert.c testout.pix.width != out->pix.width || pix 2026 drivers/gpu/ipu-v3/ipu-image-convert.c testout.pix.height != out->pix.height) pix 2126 drivers/gpu/ipu-v3/ipu-image-convert.c s_image->base.pix.ycbcr_enc, pix 2127 drivers/gpu/ipu-v3/ipu-image-convert.c s_image->base.pix.quantization, pix 2129 drivers/gpu/ipu-v3/ipu-image-convert.c d_image->base.pix.ycbcr_enc, pix 2130 drivers/gpu/ipu-v3/ipu-image-convert.c d_image->base.pix.quantization, pix 448 drivers/input/rmi4/rmi_f54.c f->fmt.pix = f54->format; pix 2479 drivers/input/touchscreen/atmel_mxt_ts.c f->fmt.pix = data->dbg.format; pix 961 drivers/input/touchscreen/sur40.c switch (f->fmt.pix.pixelformat) { pix 963 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40_pix_format[1]; pix 967 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40_pix_format[0]; pix 979 drivers/input/touchscreen/sur40.c switch (f->fmt.pix.pixelformat) { pix 989 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40->pix_fmt; pix 998 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40->pix_fmt; pix 589 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix = vv->video_fmt; pix 622 drivers/media/common/saa7146/saa7146_video.c fmt = saa7146_format_by_fourcc(dev, f->fmt.pix.pixelformat); pix 626 drivers/media/common/saa7146/saa7146_video.c field = f->fmt.pix.field; pix 631 drivers/media/common/saa7146/saa7146_video.c field = (f->fmt.pix.height > maxh / 2) pix 653 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.field = field; pix 654 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 655 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.width > maxw) pix 656 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.width = maxw; pix 657 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.height > maxh) pix 658 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.height = maxh; pix 660 drivers/media/common/saa7146/saa7146_video.c calc_bpl = (f->fmt.pix.width * fmt->depth) / 8; pix 662 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.bytesperline < calc_bpl) pix 663 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline = calc_bpl; pix 665 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.bytesperline > (2 * PAGE_SIZE * fmt->depth) / 8) /* arbitrary constraint */ pix 666 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline = calc_bpl; pix 668 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; pix 670 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.width, f->fmt.pix.height, pix 671 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); pix 751 drivers/media/common/saa7146/saa7146_video.c vv->video_fmt = f->fmt.pix; pix 1755 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c u8 pix[TPG_MAX_PLANES][8]; pix 1804 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, tpg->hflip ? color2 : color1, 0); pix 1805 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, tpg->hflip ? color1 : color2, 1); pix 1811 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(pos, pix[p], twopixsize / hdiv); pix 1834 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, contrast, 0); pix 1835 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, contrast, 1); pix 1841 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(pos, pix[p], twopixsize); pix 1844 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_100_BLACK, 0); pix 1845 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_100_BLACK, 1); pix 1851 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(pos, pix[p], twopixsize); pix 1855 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_RANDOM, 0); pix 1856 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c gen_twopix(tpg, pix, TPG_COLOR_RANDOM, 1); pix 1861 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c memcpy(pos, pix[p], twopixsize); pix 717 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.pix.sizeimage; pix 70 drivers/media/i2c/saa6752hs.c { .fmt = { .pix = { .width = 720, .height = 576 }}}, pix 72 drivers/media/i2c/saa6752hs.c { .fmt = { .pix = { .width = 480, .height = 576 }}}, pix 74 drivers/media/i2c/saa6752hs.c { .fmt = { .pix = { .width = 352, .height = 576 }}}, pix 76 drivers/media/i2c/saa6752hs.c { .fmt = { .pix = { .width = 352, .height = 288 }}}, pix 78 drivers/media/i2c/saa6752hs.c { .fmt = { .pix = { .width = 0, .height = 0}}}, pix 557 drivers/media/i2c/saa6752hs.c f->width = v4l2_format_table[h->video_format].fmt.pix.width; pix 558 drivers/media/i2c/saa6752hs.c f->height = v4l2_format_table[h->video_format].fmt.pix.height; pix 106 drivers/media/i2c/tvp514x.c struct v4l2_pix_format pix; pix 962 drivers/media/i2c/tvp514x.c .pix = { pix 664 drivers/media/i2c/video-i2c.c struct v4l2_pix_format *pix = &fmt->fmt.pix; pix 667 drivers/media/i2c/video-i2c.c pix->width = size->width; pix 668 drivers/media/i2c/video-i2c.c pix->height = size->height; pix 669 drivers/media/i2c/video-i2c.c pix->pixelformat = data->chip->format->pixelformat; pix 670 drivers/media/i2c/video-i2c.c pix->field = V4L2_FIELD_NONE; pix 671 drivers/media/i2c/video-i2c.c pix->bytesperline = pix->width * bpp; pix 672 drivers/media/i2c/video-i2c.c pix->sizeimage = pix->bytesperline * pix->height; pix 673 drivers/media/i2c/video-i2c.c pix->colorspace = V4L2_COLORSPACE_RAW; pix 2272 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size(&f->fmt.pix, fh->fmt, pix 2274 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = fh->cap.field; pix 2275 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.pixelformat = fh->fmt->fourcc; pix 2276 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 2317 drivers/media/pci/bt8xx/bttv-driver.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 2321 drivers/media/pci/bt8xx/bttv-driver.c field = f->fmt.pix.field; pix 2338 drivers/media/pci/bt8xx/bttv-driver.c field = (f->fmt.pix.height > height2) pix 2344 drivers/media/pci/bt8xx/bttv-driver.c width = f->fmt.pix.width; pix 2345 drivers/media/pci/bt8xx/bttv-driver.c height = f->fmt.pix.height; pix 2356 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = field; pix 2357 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size(&f->fmt.pix, fmt, width, height); pix 2358 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 2393 drivers/media/pci/bt8xx/bttv-driver.c width = f->fmt.pix.width; pix 2394 drivers/media/pci/bt8xx/bttv-driver.c height = f->fmt.pix.height; pix 2395 drivers/media/pci/bt8xx/bttv-driver.c field = f->fmt.pix.field; pix 2397 drivers/media/pci/bt8xx/bttv-driver.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 2399 drivers/media/pci/bt8xx/bttv-driver.c retval = limit_scaled_size_lock(fh, &width, &height, f->fmt.pix.field, pix 2406 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = field; pix 2410 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.field = f->fmt.pix.field; pix 2412 drivers/media/pci/bt8xx/bttv-driver.c fh->width = f->fmt.pix.width; pix 2413 drivers/media/pci/bt8xx/bttv-driver.c fh->height = f->fmt.pix.height; pix 2415 drivers/media/pci/bt8xx/bttv-driver.c btv->init.width = f->fmt.pix.width; pix 2416 drivers/media/pci/bt8xx/bttv-driver.c btv->init.height = f->fmt.pix.height; pix 710 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 713 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = s->width; pix 714 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = s->height; pix 715 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = s->stride; pix 716 drivers/media/pci/cobalt/cobalt-v4l2.c pix->field = V4L2_FIELD_NONE; pix 719 drivers/media/pci/cobalt/cobalt-v4l2.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 724 drivers/media/pci/cobalt/cobalt-v4l2.c v4l2_fill_pix_format(pix, &sd_fmt.format); pix 727 drivers/media/pci/cobalt/cobalt-v4l2.c pix->pixelformat = s->pixfmt; pix 728 drivers/media/pci/cobalt/cobalt-v4l2.c pix->sizeimage = pix->bytesperline * pix->height; pix 737 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 741 drivers/media/pci/cobalt/cobalt-v4l2.c if ((pix->width < 176) || (pix->height < 144)) { pix 742 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = 176; pix 743 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = 144; pix 746 drivers/media/pci/cobalt/cobalt-v4l2.c if ((pix->width > 1920) || (pix->height > 1080)) { pix 747 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = 1920; pix 748 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = 1080; pix 752 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width &= ~0x3; pix 755 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height &= ~0x1; pix 759 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = 1920; pix 760 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = 1080; pix 761 drivers/media/pci/cobalt/cobalt-v4l2.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 766 drivers/media/pci/cobalt/cobalt-v4l2.c v4l2_fill_pix_format(pix, &sd_fmt.format); pix 769 drivers/media/pci/cobalt/cobalt-v4l2.c switch (pix->pixelformat) { pix 772 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = max(pix->bytesperline & ~0x3, pix 773 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width * COBALT_BYTES_PER_PIXEL_YUYV); pix 774 drivers/media/pci/cobalt/cobalt-v4l2.c pix->pixelformat = V4L2_PIX_FMT_YUYV; pix 777 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = max(pix->bytesperline & ~0x3, pix 778 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width * COBALT_BYTES_PER_PIXEL_RGB24); pix 781 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = max(pix->bytesperline & ~0x3, pix 782 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width * COBALT_BYTES_PER_PIXEL_RGB32); pix 786 drivers/media/pci/cobalt/cobalt-v4l2.c pix->sizeimage = pix->bytesperline * pix->height; pix 787 drivers/media/pci/cobalt/cobalt-v4l2.c pix->field = V4L2_FIELD_NONE; pix 796 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 804 drivers/media/pci/cobalt/cobalt-v4l2.c s->width = pix->width; pix 805 drivers/media/pci/cobalt/cobalt-v4l2.c s->height = pix->height; pix 806 drivers/media/pci/cobalt/cobalt-v4l2.c s->stride = pix->bytesperline; pix 807 drivers/media/pci/cobalt/cobalt-v4l2.c switch (pix->pixelformat) { pix 820 drivers/media/pci/cobalt/cobalt-v4l2.c s->pixfmt = pix->pixelformat; pix 829 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 832 drivers/media/pci/cobalt/cobalt-v4l2.c if ((pix->width < 176) || (pix->height < 144)) { pix 833 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = 176; pix 834 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = 144; pix 837 drivers/media/pci/cobalt/cobalt-v4l2.c if ((pix->width > 1920) || (pix->height > 1080)) { pix 838 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = 1920; pix 839 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = 1080; pix 843 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width &= ~0x3; pix 846 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height &= ~0x1; pix 848 drivers/media/pci/cobalt/cobalt-v4l2.c switch (pix->pixelformat) { pix 851 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = max(pix->bytesperline & ~0x3, pix 852 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width * COBALT_BYTES_PER_PIXEL_YUYV); pix 853 drivers/media/pci/cobalt/cobalt-v4l2.c pix->pixelformat = V4L2_PIX_FMT_YUYV; pix 856 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = max(pix->bytesperline & ~0x3, pix 857 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width * COBALT_BYTES_PER_PIXEL_RGB32); pix 861 drivers/media/pci/cobalt/cobalt-v4l2.c pix->sizeimage = pix->bytesperline * pix->height; pix 862 drivers/media/pci/cobalt/cobalt-v4l2.c pix->field = V4L2_FIELD_NONE; pix 871 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 873 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width = s->width; pix 874 drivers/media/pci/cobalt/cobalt-v4l2.c pix->height = s->height; pix 875 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline = s->stride; pix 876 drivers/media/pci/cobalt/cobalt-v4l2.c pix->field = V4L2_FIELD_NONE; pix 877 drivers/media/pci/cobalt/cobalt-v4l2.c pix->pixelformat = s->pixfmt; pix 878 drivers/media/pci/cobalt/cobalt-v4l2.c pix->colorspace = s->colorspace; pix 879 drivers/media/pci/cobalt/cobalt-v4l2.c pix->xfer_func = s->xfer_func; pix 880 drivers/media/pci/cobalt/cobalt-v4l2.c pix->ycbcr_enc = s->ycbcr_enc; pix 881 drivers/media/pci/cobalt/cobalt-v4l2.c pix->quantization = s->quantization; pix 882 drivers/media/pci/cobalt/cobalt-v4l2.c pix->sizeimage = pix->bytesperline * pix->height; pix 908 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 915 drivers/media/pci/cobalt/cobalt-v4l2.c if (vb2_is_busy(&s->q) && (pix->pixelformat != s->pixfmt || pix 916 drivers/media/pci/cobalt/cobalt-v4l2.c pix->width != s->width || pix->height != s->height || pix 917 drivers/media/pci/cobalt/cobalt-v4l2.c pix->bytesperline != s->stride)) pix 920 drivers/media/pci/cobalt/cobalt-v4l2.c switch (pix->pixelformat) { pix 932 drivers/media/pci/cobalt/cobalt-v4l2.c s->width = pix->width; pix 933 drivers/media/pci/cobalt/cobalt-v4l2.c s->height = pix->height; pix 934 drivers/media/pci/cobalt/cobalt-v4l2.c s->stride = pix->bytesperline; pix 935 drivers/media/pci/cobalt/cobalt-v4l2.c s->pixfmt = pix->pixelformat; pix 936 drivers/media/pci/cobalt/cobalt-v4l2.c s->colorspace = pix->colorspace; pix 937 drivers/media/pci/cobalt/cobalt-v4l2.c s->xfer_func = pix->xfer_func; pix 938 drivers/media/pci/cobalt/cobalt-v4l2.c s->ycbcr_enc = pix->ycbcr_enc; pix 939 drivers/media/pci/cobalt/cobalt-v4l2.c s->quantization = pix->quantization; pix 941 drivers/media/pci/cobalt/cobalt-v4l2.c v4l2_fill_mbus_format(&sd_fmt.format, pix, code); pix 140 drivers/media/pci/cx18/cx18-ioctl.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 207 drivers/media/pci/cx18/cx18-ioctl.c int w = fmt->fmt.pix.width; pix 208 drivers/media/pci/cx18/cx18-ioctl.c int h = fmt->fmt.pix.height; pix 221 drivers/media/pci/cx18/cx18-ioctl.c fmt->fmt.pix.width = w; pix 222 drivers/media/pci/cx18/cx18-ioctl.c fmt->fmt.pix.height = h; pix 266 drivers/media/pci/cx18/cx18-ioctl.c w = fmt->fmt.pix.width; pix 267 drivers/media/pci/cx18/cx18-ioctl.c h = fmt->fmt.pix.height; pix 270 drivers/media/pci/cx18/cx18-ioctl.c s->pixelformat == fmt->fmt.pix.pixelformat) pix 276 drivers/media/pci/cx18/cx18-ioctl.c s->pixelformat = fmt->fmt.pix.pixelformat; pix 1352 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1353 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; pix 1354 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = pix 1356 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; pix 1357 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.width = dev->ts1.width; pix 1358 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.height = dev->ts1.height; pix 1359 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1370 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1371 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; pix 1372 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = pix 1374 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; pix 1375 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1386 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1387 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; pix 1388 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = pix 1390 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; pix 1391 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1393 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field); pix 532 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.width = dev->width; pix 533 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height = dev->height; pix 534 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = dev->field; pix 535 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 536 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.bytesperline = pix 537 drivers/media/pci/cx23885/cx23885-video.c (f->fmt.pix.width * dev->fmt->depth) >> 3; pix 538 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.sizeimage = pix 539 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 540 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 553 drivers/media/pci/cx23885/cx23885-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 557 drivers/media/pci/cx23885/cx23885-video.c field = f->fmt.pix.field; pix 562 drivers/media/pci/cx23885/cx23885-video.c field = (f->fmt.pix.height > maxh/2) pix 581 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = field; pix 582 drivers/media/pci/cx23885/cx23885-video.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, pix 583 drivers/media/pci/cx23885/cx23885-video.c &f->fmt.pix.height, 32, maxh, 0, 0); pix 584 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.bytesperline = pix 585 drivers/media/pci/cx23885/cx23885-video.c (f->fmt.pix.width * fmt->depth) >> 3; pix 586 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.sizeimage = pix 587 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 588 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 612 drivers/media/pci/cx23885/cx23885-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 613 drivers/media/pci/cx23885/cx23885-video.c dev->width = f->fmt.pix.width; pix 614 drivers/media/pci/cx23885/cx23885-video.c dev->height = f->fmt.pix.height; pix 615 drivers/media/pci/cx23885/cx23885-video.c dev->field = f->fmt.pix.field; pix 618 drivers/media/pci/cx23885/cx23885-video.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); pix 620 drivers/media/pci/cx23885/cx23885-video.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); pix 622 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = dev->field; pix 322 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = chan->width; pix 323 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = chan->height; pix 324 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = chan->field; pix 325 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.pixelformat = chan->fmt->fourcc; pix 326 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; pix 327 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = chan->height * f->fmt.pix.bytesperline; pix 328 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 339 drivers/media/pci/cx25821/cx25821-video.c enum v4l2_field field = f->fmt.pix.field; pix 343 drivers/media/pci/cx25821/cx25821-video.c fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); pix 348 drivers/media/pci/cx25821/cx25821-video.c w = f->fmt.pix.width; pix 353 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh / 4; pix 356 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh / 2; pix 359 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh; pix 362 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = field; pix 363 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = w; pix 364 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 365 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 366 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 384 drivers/media/pci/cx25821/cx25821-video.c chan->fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); pix 385 drivers/media/pci/cx25821/cx25821-video.c chan->field = f->fmt.pix.field; pix 386 drivers/media/pci/cx25821/cx25821-video.c chan->width = f->fmt.pix.width; pix 387 drivers/media/pci/cx25821/cx25821-video.c chan->height = f->fmt.pix.height; pix 389 drivers/media/pci/cx25821/cx25821-video.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_Y41P) pix 540 drivers/media/pci/cx25821/cx25821-video.c fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); pix 543 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = 720; pix 544 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; pix 545 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 546 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 547 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 548 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 563 drivers/media/pci/cx25821/cx25821-video.c chan->fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); pix 564 drivers/media/pci/cx25821/cx25821-video.c chan->field = f->fmt.pix.field; pix 565 drivers/media/pci/cx25821/cx25821-video.c chan->width = f->fmt.pix.width; pix 566 drivers/media/pci/cx25821/cx25821-video.c chan->height = f->fmt.pix.height; pix 567 drivers/media/pci/cx25821/cx25821-video.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_Y41P) pix 818 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 819 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.bytesperline = 0; pix 820 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.sizeimage = dev->ts_packet_size * dev->ts_packet_count; pix 821 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 822 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.width = core->width; pix 823 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.height = core->height; pix 824 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field = core->field; pix 836 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 837 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.bytesperline = 0; pix 838 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.sizeimage = dev->ts_packet_size * dev->ts_packet_count; pix 839 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 844 drivers/media/pci/cx88/cx88-blackbird.c field = f->fmt.pix.field; pix 854 drivers/media/pci/cx88/cx88-blackbird.c field = (f->fmt.pix.height > maxh / 2) pix 862 drivers/media/pci/cx88/cx88-blackbird.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, pix 863 drivers/media/pci/cx88/cx88-blackbird.c &f->fmt.pix.height, 32, maxh, 0, 0); pix 864 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field = field; pix 880 drivers/media/pci/cx88/cx88-blackbird.c core->width = f->fmt.pix.width; pix 881 drivers/media/pci/cx88/cx88-blackbird.c core->height = f->fmt.pix.height; pix 882 drivers/media/pci/cx88/cx88-blackbird.c core->field = f->fmt.pix.field; pix 883 drivers/media/pci/cx88/cx88-blackbird.c cx88_set_scale(core, f->fmt.pix.width, f->fmt.pix.height, pix 884 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field); pix 886 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.height, f->fmt.pix.width); pix 712 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.width = core->width; pix 713 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height = core->height; pix 714 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.field = core->field; pix 715 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 716 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.bytesperline = pix 717 drivers/media/pci/cx88/cx88-video.c (f->fmt.pix.width * dev->fmt->depth) >> 3; pix 718 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.sizeimage = pix 719 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 720 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 733 drivers/media/pci/cx88/cx88-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 740 drivers/media/pci/cx88/cx88-video.c field = f->fmt.pix.field; pix 750 drivers/media/pci/cx88/cx88-video.c field = (f->fmt.pix.height > maxh / 2) pix 758 drivers/media/pci/cx88/cx88-video.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, pix 759 drivers/media/pci/cx88/cx88-video.c &f->fmt.pix.height, 32, maxh, 0, 0); pix 760 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.field = field; pix 761 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.bytesperline = pix 762 drivers/media/pci/cx88/cx88-video.c (f->fmt.pix.width * fmt->depth) >> 3; pix 763 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.sizeimage = pix 764 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 765 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 783 drivers/media/pci/cx88/cx88-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 784 drivers/media/pci/cx88/cx88-video.c core->width = f->fmt.pix.width; pix 785 drivers/media/pci/cx88/cx88-video.c core->height = f->fmt.pix.height; pix 786 drivers/media/pci/cx88/cx88-video.c core->field = f->fmt.pix.field; pix 316 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.width = pd->width; pix 317 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.height = pd->height; pix 318 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_GREY; pix 319 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 320 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.bytesperline = f->fmt.pix.width; pix 321 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.sizeimage = f->fmt.pix.width * f->fmt.pix.height; pix 322 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 340 drivers/media/pci/ivtv/ivtv-ioctl.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 404 drivers/media/pci/ivtv/ivtv-ioctl.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 471 drivers/media/pci/ivtv/ivtv-ioctl.c int w = fmt->fmt.pix.width; pix 472 drivers/media/pci/ivtv/ivtv-ioctl.c int h = fmt->fmt.pix.height; pix 485 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.width = w; pix 486 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.height = h; pix 519 drivers/media/pci/ivtv/ivtv-ioctl.c s32 w = fmt->fmt.pix.width; pix 520 drivers/media/pci/ivtv/ivtv-ioctl.c s32 h = fmt->fmt.pix.height; pix 521 drivers/media/pci/ivtv/ivtv-ioctl.c int field = fmt->fmt.pix.field; pix 544 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.field = field; pix 545 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.width = w; pix 546 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.height = h; pix 580 drivers/media/pci/ivtv/ivtv-ioctl.c int w = fmt->fmt.pix.width; pix 581 drivers/media/pci/ivtv/ivtv-ioctl.c int h = fmt->fmt.pix.height; pix 595 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.pix.width /= 2; pix 596 drivers/media/pci/ivtv/ivtv-ioctl.c format.format.width = fmt->fmt.pix.width; pix 651 drivers/media/pci/ivtv/ivtv-ioctl.c yi->v4l2_src_w = fmt->fmt.pix.width; pix 652 drivers/media/pci/ivtv/ivtv-ioctl.c yi->v4l2_src_h = fmt->fmt.pix.height; pix 654 drivers/media/pci/ivtv/ivtv-ioctl.c switch (fmt->fmt.pix.field) { pix 1119 drivers/media/pci/meye/meye.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_YUYV && pix 1120 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG) pix 1123 drivers/media/pci/meye/meye.c if (f->fmt.pix.field != V4L2_FIELD_ANY && pix 1124 drivers/media/pci/meye/meye.c f->fmt.pix.field != V4L2_FIELD_NONE) pix 1127 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1129 drivers/media/pci/meye/meye.c if (f->fmt.pix.width <= 320) { pix 1130 drivers/media/pci/meye/meye.c f->fmt.pix.width = 320; pix 1131 drivers/media/pci/meye/meye.c f->fmt.pix.height = 240; pix 1133 drivers/media/pci/meye/meye.c f->fmt.pix.width = 640; pix 1134 drivers/media/pci/meye/meye.c f->fmt.pix.height = 480; pix 1137 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 1138 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * pix 1139 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; pix 1140 drivers/media/pci/meye/meye.c f->fmt.pix.colorspace = 0; pix 1151 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; pix 1154 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG; pix 1158 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1159 drivers/media/pci/meye/meye.c f->fmt.pix.width = mchip_hsize(); pix 1160 drivers/media/pci/meye/meye.c f->fmt.pix.height = mchip_vsize(); pix 1161 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 1162 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * pix 1163 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; pix 1171 drivers/media/pci/meye/meye.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_YUYV && pix 1172 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG) pix 1175 drivers/media/pci/meye/meye.c if (f->fmt.pix.field != V4L2_FIELD_ANY && pix 1176 drivers/media/pci/meye/meye.c f->fmt.pix.field != V4L2_FIELD_NONE) pix 1179 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1182 drivers/media/pci/meye/meye.c if (f->fmt.pix.width <= 320) { pix 1183 drivers/media/pci/meye/meye.c f->fmt.pix.width = 320; pix 1184 drivers/media/pci/meye/meye.c f->fmt.pix.height = 240; pix 1187 drivers/media/pci/meye/meye.c f->fmt.pix.width = 640; pix 1188 drivers/media/pci/meye/meye.c f->fmt.pix.height = 480; pix 1192 drivers/media/pci/meye/meye.c switch (f->fmt.pix.pixelformat) { pix 1202 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 1203 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * pix 1204 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; pix 1205 drivers/media/pci/meye/meye.c f->fmt.pix.colorspace = 0; pix 109 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); pix 110 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 111 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; pix 112 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; pix 125 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); pix 127 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); pix 129 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 130 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; pix 131 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; pix 145 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); pix 147 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); pix 149 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 150 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; pix 151 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; pix 1250 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = dev->width; pix 1251 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = dev->height; pix 1252 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.field = dev->field; pix 1253 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 1255 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f->fmt.pix.width; pix 1257 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = pix 1258 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.width * dev->fmt->depth) / 8; pix 1259 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.sizeimage = pix 1260 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.height * f->fmt.pix.width * dev->fmt->depth) / 8; pix 1261 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1303 drivers/media/pci/saa7134/saa7134-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 1307 drivers/media/pci/saa7134/saa7134-video.c field = f->fmt.pix.field; pix 1312 drivers/media/pci/saa7134/saa7134-video.c field = (f->fmt.pix.height > maxh/2) pix 1326 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.field = field; pix 1327 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.width < 48) pix 1328 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = 48; pix 1329 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.height < 32) pix 1330 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = 32; pix 1331 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.width > maxw) pix 1332 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = maxw; pix 1333 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.height > maxh) pix 1334 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = maxh; pix 1335 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width &= ~0x03; pix 1337 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f->fmt.pix.width; pix 1339 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = pix 1340 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.width * fmt->depth) / 8; pix 1341 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.sizeimage = pix 1342 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.height * f->fmt.pix.width * fmt->depth) / 8; pix 1343 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1373 drivers/media/pci/saa7134/saa7134-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 1374 drivers/media/pci/saa7134/saa7134-video.c dev->width = f->fmt.pix.width; pix 1375 drivers/media/pci/saa7134/saa7134-video.c dev->height = f->fmt.pix.height; pix 1376 drivers/media/pci/saa7134/saa7134-video.c dev->field = f->fmt.pix.field; pix 517 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 518 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.bytesperline = 0; pix 519 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.sizeimage = SAA7164_SIZEIMAGE; pix 520 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 521 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 522 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.width = port->width; pix 523 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.height = port->height; pix 852 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 854 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (solo_valid_pixfmt(pix->pixelformat, solo_dev->type)) pix 857 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (pix->width < solo_dev->video_hsize || pix 858 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->height < solo_dev->video_vsize << 1) { pix 860 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->width = solo_dev->video_hsize >> 1; pix 861 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->height = solo_dev->video_vsize; pix 864 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->width = solo_dev->video_hsize; pix 865 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->height = solo_dev->video_vsize << 1; pix 868 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c switch (pix->field) { pix 874 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->field = V4L2_FIELD_INTERLACED; pix 879 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 880 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->sizeimage = FRAME_BUF_SIZE; pix 881 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->bytesperline = 0; pix 891 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 901 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (pix->width == solo_dev->video_hsize) pix 907 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_enc->fmt = pix->pixelformat; pix 927 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 929 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->width = solo_enc->width; pix 930 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->height = solo_enc->height; pix 931 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->pixelformat = solo_enc->fmt; pix 932 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->field = solo_enc->interlaced ? V4L2_FIELD_INTERLACED : pix 934 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->sizeimage = FRAME_BUF_SIZE; pix 935 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 468 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 471 drivers/media/pci/solo6x10/solo6x10-v4l2.c if (pix->pixelformat != V4L2_PIX_FMT_UYVY) pix 474 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->width = solo_dev->video_hsize; pix 475 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->height = solo_vlines(solo_dev); pix 476 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->sizeimage = image_size; pix 477 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->field = V4L2_FIELD_INTERLACED; pix 478 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->pixelformat = V4L2_PIX_FMT_UYVY; pix 479 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 500 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 502 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->width = solo_dev->video_hsize; pix 503 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->height = solo_vlines(solo_dev); pix 504 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->pixelformat = V4L2_PIX_FMT_UYVY; pix 505 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->field = V4L2_FIELD_INTERLACED; pix 506 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->sizeimage = solo_image_size(solo_dev); pix 507 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 508 drivers/media/pci/solo6x10/solo6x10-v4l2.c pix->bytesperline = solo_bytesperline(solo_dev); pix 589 drivers/media/pci/sta2x11/sta2x11_vip.c if (V4L2_PIX_FMT_UYVY != f->fmt.pix.pixelformat) { pix 599 drivers/media/pci/sta2x11/sta2x11_vip.c switch (f->fmt.pix.field) { pix 602 drivers/media/pci/sta2x11/sta2x11_vip.c if (interlace_lim < f->fmt.pix.height) pix 603 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 605 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.field = V4L2_FIELD_BOTTOM; pix 609 drivers/media/pci/sta2x11/sta2x11_vip.c if (interlace_lim < f->fmt.pix.height) pix 610 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = interlace_lim; pix 617 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; pix 618 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height &= ~1; pix 619 drivers/media/pci/sta2x11/sta2x11_vip.c if (2 * interlace_lim < f->fmt.pix.height) pix 620 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = 2 * interlace_lim; pix 621 drivers/media/pci/sta2x11/sta2x11_vip.c if (200 > f->fmt.pix.height) pix 622 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = 200; pix 623 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.width = 720; pix 624 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 625 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.sizeimage = f->fmt.pix.width * 2 * f->fmt.pix.height; pix 626 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 657 drivers/media/pci/sta2x11/sta2x11_vip.c vip->format = f->fmt.pix; pix 713 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix = vip->format; pix 535 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.width = 704; pix 541 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.height = 480; pix 545 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.height = 576; pix 548 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 549 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_H264; pix 550 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.sizeimage = H264_VLC_BUF_SIZE; pix 551 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 576 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = dev->width; pix 577 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = dev->height; pix 578 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.field = dev->field; pix 579 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 580 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.bytesperline = pix 581 drivers/media/pci/tw68/tw68-video.c (f->fmt.pix.width * (dev->fmt->depth)) >> 3; pix 582 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.sizeimage = pix 583 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 584 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 596 drivers/media/pci/tw68/tw68-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 600 drivers/media/pci/tw68/tw68-video.c field = f->fmt.pix.field; pix 613 drivers/media/pci/tw68/tw68-video.c field = (f->fmt.pix.height > maxh / 2) pix 619 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.field = field; pix 620 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.width < 48) pix 621 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = 48; pix 622 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.height < 32) pix 623 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = 32; pix 624 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.width > 720) pix 625 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = 720; pix 626 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.height > maxh) pix 627 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = maxh; pix 628 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width &= ~0x03; pix 629 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.bytesperline = pix 630 drivers/media/pci/tw68/tw68-video.c (f->fmt.pix.width * (fmt->depth)) >> 3; pix 631 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.sizeimage = pix 632 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 633 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 653 drivers/media/pci/tw68/tw68-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 654 drivers/media/pci/tw68/tw68-video.c dev->width = f->fmt.pix.width; pix 655 drivers/media/pci/tw68/tw68-video.c dev->height = f->fmt.pix.height; pix 656 drivers/media/pci/tw68/tw68-video.c dev->field = f->fmt.pix.field; pix 629 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = vc->width; pix 630 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = vc->height; pix 631 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.field = dev->dma_ops->field; pix 632 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.pixelformat = vc->format->fourcc; pix 633 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 634 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * vc->format->depth) / 8; pix 635 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 647 drivers/media/pci/tw686x/tw686x-video.c format = format_by_fourcc(f->fmt.pix.pixelformat); pix 650 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.pixelformat = format->fourcc; pix 653 drivers/media/pci/tw686x/tw686x-video.c if (f->fmt.pix.width <= TW686X_VIDEO_WIDTH / 2) pix 654 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = TW686X_VIDEO_WIDTH / 2; pix 656 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = TW686X_VIDEO_WIDTH; pix 658 drivers/media/pci/tw686x/tw686x-video.c if (f->fmt.pix.height <= video_height / 2) pix 659 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = video_height / 2; pix 661 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = video_height; pix 663 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * format->depth) / 8; pix 664 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 665 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 666 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.field = dev->dma_ops->field; pix 752 drivers/media/pci/tw686x/tw686x-video.c realloc = area != (f->fmt.pix.width * f->fmt.pix.height); pix 753 drivers/media/pci/tw686x/tw686x-video.c return tw686x_set_format(vc, f->fmt.pix.pixelformat, pix 754 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width, f->fmt.pix.height, pix 215 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_pix_format *pix, unsigned int *bpp) pix 228 drivers/media/platform/am437x/am437x-vpfe.c memset(pix, 0, sizeof(*pix)); pix 229 drivers/media/platform/am437x/am437x-vpfe.c v4l2_fill_pix_format(pix, mbus); pix 230 drivers/media/platform/am437x/am437x-vpfe.c pix->pixelformat = fmt->fourcc; pix 234 drivers/media/platform/am437x/am437x-vpfe.c pix->bytesperline = ALIGN(pix->width * *bpp, 32); pix 235 drivers/media/platform/am437x/am437x-vpfe.c pix->sizeimage = pix->bytesperline * pix->height; pix 274 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.width == rhs->fmt.pix.width && pix 275 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.height == rhs->fmt.pix.height && pix 276 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.pixelformat == rhs->fmt.pix.pixelformat && pix 277 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.field == rhs->fmt.pix.field && pix 278 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.colorspace == rhs->fmt.pix.colorspace && pix 279 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.ycbcr_enc == rhs->fmt.pix.ycbcr_enc && pix 280 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.quantization == rhs->fmt.pix.quantization && pix 281 drivers/media/platform/am437x/am437x-vpfe.c lhs->fmt.pix.xfer_func == rhs->fmt.pix.xfer_func; pix 1009 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.width = image_win.width; pix 1010 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.height = image_win.height; pix 1011 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.bytesperline = vpfe_ccdc_get_line_length(&vpfe->ccdc); pix 1012 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 1013 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.height; pix 1015 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.pixelformat = vpfe_ccdc_get_pixel_format(&vpfe->ccdc); pix 1019 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1022 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1024 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_SEQ_TB; pix 1044 drivers/media/platform/am437x/am437x-vpfe.c print_fourcc(vpfe->fmt.fmt.pix.pixelformat)); pix 1047 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.pixelformat) < 0) { pix 1055 drivers/media/platform/am437x/am437x-vpfe.c switch (vpfe->fmt.fmt.pix.field) { pix 1097 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_pix_format *pix = &vpfe->fmt.fmt.pix; pix 1122 drivers/media/platform/am437x/am437x-vpfe.c pix->width = vpfe->crop.width; pix 1123 drivers/media/platform/am437x/am437x-vpfe.c pix->height = vpfe->crop.height; pix 1124 drivers/media/platform/am437x/am437x-vpfe.c pix->pixelformat = V4L2_PIX_FMT_YUYV; pix 1128 drivers/media/platform/am437x/am437x-vpfe.c pix->field = V4L2_FIELD_INTERLACED; pix 1130 drivers/media/platform/am437x/am437x-vpfe.c pix->field = V4L2_FIELD_NONE; pix 1137 drivers/media/platform/am437x/am437x-vpfe.c vpfe->crop.width = pix->width; pix 1138 drivers/media/platform/am437x/am437x-vpfe.c vpfe->crop.height = pix->height; pix 1274 drivers/media/platform/am437x/am437x-vpfe.c vpfe->cur_frm->vb.field = vpfe->fmt.fmt.pix.field; pix 1298 drivers/media/platform/am437x/am437x-vpfe.c field = vpfe->fmt.fmt.pix.field; pix 1356 drivers/media/platform/am437x/am437x-vpfe.c if (vpfe->fmt.fmt.pix.field == V4L2_FIELD_NONE && pix 1427 drivers/media/platform/am437x/am437x-vpfe.c v4l2_fill_pix_format(&format->fmt.pix, &fmt.format); pix 1428 drivers/media/platform/am437x/am437x-vpfe.c mbus_to_pix(vpfe, &fmt.format, &format->fmt.pix, bpp); pix 1436 drivers/media/platform/am437x/am437x-vpfe.c v4l2_fill_pix_format(&format->fmt.pix, &mbus_fmt); pix 1437 drivers/media/platform/am437x/am437x-vpfe.c mbus_to_pix(vpfe, &mbus_fmt, &format->fmt.pix, bpp); pix 1444 drivers/media/platform/am437x/am437x-vpfe.c __func__, format->fmt.pix.width, format->fmt.pix.height, pix 1445 drivers/media/platform/am437x/am437x-vpfe.c print_fourcc(format->fmt.pix.pixelformat), pix 1446 drivers/media/platform/am437x/am437x-vpfe.c format->fmt.pix.bytesperline, format->fmt.pix.sizeimage, *bpp); pix 1468 drivers/media/platform/am437x/am437x-vpfe.c pix_to_mbus(vpfe, &format->fmt.pix, &fmt.format); pix 1474 drivers/media/platform/am437x/am437x-vpfe.c v4l2_fill_pix_format(&format->fmt.pix, &fmt.format); pix 1475 drivers/media/platform/am437x/am437x-vpfe.c mbus_to_pix(vpfe, &fmt.format, &format->fmt.pix, bpp); pix 1481 drivers/media/platform/am437x/am437x-vpfe.c __func__, format->fmt.pix.width, format->fmt.pix.height, pix 1482 drivers/media/platform/am437x/am437x-vpfe.c print_fourcc(format->fmt.pix.pixelformat), pix 1483 drivers/media/platform/am437x/am437x-vpfe.c format->fmt.pix.bytesperline, format->fmt.pix.sizeimage, *bpp); pix 1583 drivers/media/platform/am437x/am437x-vpfe.c vpfe->crop.width = fmt->fmt.pix.width; pix 1584 drivers/media/platform/am437x/am437x-vpfe.c vpfe->crop.height = fmt->fmt.pix.height; pix 1597 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_pix_format pix; pix 1617 drivers/media/platform/am437x/am437x-vpfe.c memset(&pix, 0x0, sizeof(pix)); pix 1619 drivers/media/platform/am437x/am437x-vpfe.c pix.pixelformat = fsize->pixel_format; pix 1620 drivers/media/platform/am437x/am437x-vpfe.c pix.width = 640; pix 1621 drivers/media/platform/am437x/am437x-vpfe.c pix.height = 480; pix 1622 drivers/media/platform/am437x/am437x-vpfe.c pix.colorspace = V4L2_COLORSPACE_SRGB; pix 1623 drivers/media/platform/am437x/am437x-vpfe.c pix.field = V4L2_FIELD_NONE; pix 1624 drivers/media/platform/am437x/am437x-vpfe.c pix_to_mbus(vpfe, &pix, &mbus); pix 1901 drivers/media/platform/am437x/am437x-vpfe.c unsigned size = vpfe->fmt.fmt.pix.sizeimage; pix 1937 drivers/media/platform/am437x/am437x-vpfe.c vb2_set_plane_payload(vb, 0, vpfe->fmt.fmt.pix.sizeimage); pix 1942 drivers/media/platform/am437x/am437x-vpfe.c vbuf->field = vpfe->fmt.fmt.pix.field; pix 2161 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.width = r.width; pix 2162 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.height = r.height; pix 2163 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.bytesperline = vpfe_ccdc_get_line_length(&vpfe->ccdc); pix 2164 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.sizeimage = vpfe->fmt.fmt.pix.bytesperline * pix 2165 drivers/media/platform/am437x/am437x-vpfe.c vpfe->fmt.fmt.pix.height; pix 1010 drivers/media/platform/aspeed-video.c f->fmt.pix = video->pix_fmt; pix 538 drivers/media/platform/atmel/atmel-isc-base.c unsigned int size = isc->fmt.fmt.pix.sizeimage; pix 553 drivers/media/platform/atmel/atmel-isc-base.c unsigned long size = isc->fmt.fmt.pix.sizeimage; pix 563 drivers/media/platform/atmel/atmel-isc-base.c vbuf->field = isc->fmt.fmt.pix.field; pix 571 drivers/media/platform/atmel/atmel-isc-base.c u32 sizeimage = isc->fmt.fmt.pix.sizeimage; pix 576 drivers/media/platform/atmel/atmel-isc-base.c h = isc->fmt.fmt.pix.height; pix 577 drivers/media/platform/atmel/atmel-isc-base.c w = isc->fmt.fmt.pix.width; pix 1195 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; pix 1330 drivers/media/platform/atmel/atmel-isc-base.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, mbus_code); pix 1996 drivers/media/platform/atmel/atmel-isc-base.c .fmt.pix = { pix 158 drivers/media/platform/atmel/atmel-isi.c cfg2 |= ((isi->fmt.fmt.pix.width - 1) << ISI_CFG2_IM_HSIZE_OFFSET) & pix 161 drivers/media/platform/atmel/atmel-isi.c cfg2 |= ((isi->fmt.fmt.pix.height - 1) << ISI_CFG2_IM_VSIZE_OFFSET) pix 166 drivers/media/platform/atmel/atmel-isi.c psize = ((isi->fmt.fmt.pix.width - 1) << ISI_PSIZE_PREV_HSIZE_OFFSET) & pix 168 drivers/media/platform/atmel/atmel-isi.c psize |= ((isi->fmt.fmt.pix.height - 1) << ISI_PSIZE_PREV_VSIZE_OFFSET) & pix 278 drivers/media/platform/atmel/atmel-isi.c size = isi->fmt.fmt.pix.sizeimage; pix 314 drivers/media/platform/atmel/atmel-isi.c size = isi->fmt.fmt.pix.sizeimage; pix 561 drivers/media/platform/atmel/atmel-isi.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; pix 608 drivers/media/platform/atmel/atmel-isi.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, pix 935 drivers/media/platform/atmel/atmel-isi.c .fmt.pix = { pix 434 drivers/media/platform/coda/coda-common.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 435 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = q_data->fourcc; pix 436 drivers/media/platform/coda/coda-common.c f->fmt.pix.width = q_data->width; pix 437 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = q_data->height; pix 438 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = q_data->bytesperline; pix 440 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = q_data->sizeimage; pix 441 drivers/media/platform/coda/coda-common.c f->fmt.pix.colorspace = ctx->colorspace; pix 442 drivers/media/platform/coda/coda-common.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 443 drivers/media/platform/coda/coda-common.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 444 drivers/media/platform/coda/coda-common.c f->fmt.pix.quantization = ctx->quantization; pix 468 drivers/media/platform/coda/coda-common.c if (formats[i] == f->fmt.pix.pixelformat) { pix 469 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = formats[i]; pix 476 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = q_data->fourcc; pix 497 drivers/media/platform/coda/coda-common.c err = vdoa_context_configure(NULL, round_up(f->fmt.pix.width, 16), pix 498 drivers/media/platform/coda/coda-common.c f->fmt.pix.height, f->fmt.pix.pixelformat); pix 527 drivers/media/platform/coda/coda-common.c field = f->fmt.pix.field; pix 535 drivers/media/platform/coda/coda-common.c f->fmt.pix.field = field; pix 538 drivers/media/platform/coda/coda-common.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, max_w, W_ALIGN, pix 539 drivers/media/platform/coda/coda-common.c &f->fmt.pix.height, MIN_H, max_h, H_ALIGN, pix 542 drivers/media/platform/coda/coda-common.c switch (f->fmt.pix.pixelformat) { pix 550 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); pix 551 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 552 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 3 / 2; pix 555 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2; pix 556 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 557 drivers/media/platform/coda/coda-common.c f->fmt.pix.height; pix 560 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); pix 561 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 562 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 2; pix 568 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = 0; pix 569 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = coda_estimate_sizeimage(ctx, pix 570 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage, pix 571 drivers/media/platform/coda/coda-common.c f->fmt.pix.width, pix 572 drivers/media/platform/coda/coda-common.c f->fmt.pix.height); pix 603 drivers/media/platform/coda/coda-common.c f->fmt.pix.width = q_data_src->width; pix 604 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = q_data_src->height; pix 607 drivers/media/platform/coda/coda-common.c f->fmt.pix.colorspace = ctx->colorspace; pix 608 drivers/media/platform/coda/coda-common.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 609 drivers/media/platform/coda/coda-common.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 610 drivers/media/platform/coda/coda-common.c f->fmt.pix.quantization = ctx->quantization; pix 614 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); pix 624 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = round_up(f->fmt.pix.height, 16); pix 625 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); pix 626 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 627 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 3 / 2; pix 633 drivers/media/platform/coda/coda-common.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) { pix 637 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2; pix 638 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * pix 639 drivers/media/platform/coda/coda-common.c f->fmt.pix.height; pix 676 drivers/media/platform/coda/coda-common.c if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) pix 677 drivers/media/platform/coda/coda-common.c coda_set_default_colorspace(&f->fmt.pix); pix 680 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(dev, f->fmt.pix.pixelformat, q_data_dst->fourcc); pix 705 drivers/media/platform/coda/coda-common.c q_data->fourcc = f->fmt.pix.pixelformat; pix 706 drivers/media/platform/coda/coda-common.c q_data->width = f->fmt.pix.width; pix 707 drivers/media/platform/coda/coda-common.c q_data->height = f->fmt.pix.height; pix 708 drivers/media/platform/coda/coda-common.c q_data->bytesperline = f->fmt.pix.bytesperline; pix 709 drivers/media/platform/coda/coda-common.c q_data->sizeimage = f->fmt.pix.sizeimage; pix 715 drivers/media/platform/coda/coda-common.c q_data->rect.width = f->fmt.pix.width; pix 716 drivers/media/platform/coda/coda-common.c q_data->rect.height = f->fmt.pix.height; pix 719 drivers/media/platform/coda/coda-common.c switch (f->fmt.pix.pixelformat) { pix 741 drivers/media/platform/coda/coda-common.c round_up(f->fmt.pix.width, 16), pix 742 drivers/media/platform/coda/coda-common.c f->fmt.pix.height, pix 743 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); pix 783 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); pix 790 drivers/media/platform/coda/coda-common.c ctx->colorspace = f->fmt.pix.colorspace; pix 791 drivers/media/platform/coda/coda-common.c ctx->xfer_func = f->fmt.pix.xfer_func; pix 792 drivers/media/platform/coda/coda-common.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 793 drivers/media/platform/coda/coda-common.c ctx->quantization = f->fmt.pix.quantization; pix 815 drivers/media/platform/coda/coda-common.c ctx->colorspace = f->fmt.pix.colorspace; pix 816 drivers/media/platform/coda/coda-common.c ctx->xfer_func = f->fmt.pix.xfer_func; pix 817 drivers/media/platform/coda/coda-common.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 818 drivers/media/platform/coda/coda-common.c ctx->quantization = f->fmt.pix.quantization; pix 824 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, f->fmt.pix.pixelformat, pix 848 drivers/media/platform/coda/coda-common.c f_cap.fmt.pix.width = f->fmt.pix.width; pix 849 drivers/media/platform/coda/coda-common.c f_cap.fmt.pix.height = f->fmt.pix.height; pix 699 drivers/media/platform/davinci/dm355_ccdc.c static int ccdc_enum_pix(u32 *pix, int i) pix 704 drivers/media/platform/davinci/dm355_ccdc.c *pix = ccdc_raw_bayer_pix_formats[i]; pix 709 drivers/media/platform/davinci/dm355_ccdc.c *pix = ccdc_raw_yuv_pix_formats[i]; pix 553 drivers/media/platform/davinci/dm644x_ccdc.c static int ccdc_enum_pix(u32 *pix, int i) pix 558 drivers/media/platform/davinci/dm644x_ccdc.c *pix = ccdc_raw_bayer_pix_formats[i]; pix 563 drivers/media/platform/davinci/dm644x_ccdc.c *pix = ccdc_raw_yuv_pix_formats[i]; pix 709 drivers/media/platform/davinci/isif.c static int isif_enum_pix(u32 *pix, int i) pix 715 drivers/media/platform/davinci/isif.c *pix = isif_raw_bayer_pix_formats[i]; pix 720 drivers/media/platform/davinci/isif.c *pix = isif_raw_yuv_pix_formats[i]; pix 779 drivers/media/platform/davinci/vpbe_display.c fmt->fmt.pix = layer->pix_fmt; pix 814 drivers/media/platform/davinci/vpbe_display.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 899 drivers/media/platform/davinci/vpbe_display.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 253 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.pixelformat) < 0) { pix 261 drivers/media/platform/davinci/vpfe_capture.c switch (vpfe_dev->fmt.fmt.pix.field) { pix 302 drivers/media/platform/davinci/vpfe_capture.c struct v4l2_pix_format *pix = &vpfe_dev->fmt.fmt.pix; pix 327 drivers/media/platform/davinci/vpfe_capture.c pix->width = vpfe_dev->crop.width; pix 328 drivers/media/platform/davinci/vpfe_capture.c pix->height = vpfe_dev->crop.height; pix 332 drivers/media/platform/davinci/vpfe_capture.c pix->field = V4L2_FIELD_INTERLACED; pix 334 drivers/media/platform/davinci/vpfe_capture.c pix->pixelformat = V4L2_PIX_FMT_UYVY; pix 335 drivers/media/platform/davinci/vpfe_capture.c v4l2_fill_mbus_format(mbus_fmt, pix, pix 338 drivers/media/platform/davinci/vpfe_capture.c pix->field = V4L2_FIELD_NONE; pix 340 drivers/media/platform/davinci/vpfe_capture.c pix->pixelformat = V4L2_PIX_FMT_SBGGR8; pix 341 drivers/media/platform/davinci/vpfe_capture.c v4l2_fill_mbus_format(mbus_fmt, pix, pix 354 drivers/media/platform/davinci/vpfe_capture.c v4l2_fill_pix_format(pix, mbus_fmt); pix 355 drivers/media/platform/davinci/vpfe_capture.c pix->bytesperline = pix->width * 2; pix 356 drivers/media/platform/davinci/vpfe_capture.c pix->sizeimage = pix->bytesperline * pix->height; pix 364 drivers/media/platform/davinci/vpfe_capture.c pix->bytesperline = ccdc_dev->hw_ops.get_line_length(); pix 365 drivers/media/platform/davinci/vpfe_capture.c pix->sizeimage = pix->bytesperline * pix->height; pix 483 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->cur_frm->size = vpfe_dev->fmt.fmt.pix.sizeimage; pix 496 drivers/media/platform/davinci/vpfe_capture.c field = vpfe_dev->fmt.fmt.pix.field; pix 580 drivers/media/platform/davinci/vpfe_capture.c if ((vpfe_dev->fmt.fmt.pix.field == V4L2_FIELD_NONE) && pix 738 drivers/media/platform/davinci/vpfe_capture.c u32 pix; pix 747 drivers/media/platform/davinci/vpfe_capture.c pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; pix 754 drivers/media/platform/davinci/vpfe_capture.c while (ccdc_dev->hw_ops.enum_pix(&pix, temp) >= 0) { pix 755 drivers/media/platform/davinci/vpfe_capture.c if (vpfe_pix_fmt->pixelformat == pix) { pix 764 drivers/media/platform/davinci/vpfe_capture.c pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; pix 775 drivers/media/platform/davinci/vpfe_capture.c pixfmt->field = vpfe_dev->fmt.fmt.pix.field; pix 782 drivers/media/platform/davinci/vpfe_capture.c if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { pix 801 drivers/media/platform/davinci/vpfe_capture.c pixfmt->field = vpfe_dev->fmt.fmt.pix.field; pix 872 drivers/media/platform/davinci/vpfe_capture.c u32 pix; pix 876 drivers/media/platform/davinci/vpfe_capture.c if (ccdc_dev->hw_ops.enum_pix(&pix, fmt->index) < 0) pix 880 drivers/media/platform/davinci/vpfe_capture.c pix_fmt = vpfe_lookup_pix_format(pix); pix 904 drivers/media/platform/davinci/vpfe_capture.c pix_fmts = vpfe_check_format(vpfe_dev, &fmt->fmt.pix); pix 930 drivers/media/platform/davinci/vpfe_capture.c pix_fmts = vpfe_check_format(vpfe_dev, &f->fmt.pix); pix 1163 drivers/media/platform/davinci/vpfe_capture.c *size = vpfe_dev->fmt.fmt.pix.sizeimage; pix 1165 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.sizeimage > config_params.device_bufsize) pix 1188 drivers/media/platform/davinci/vpfe_capture.c vb->width = vpfe_dev->fmt.fmt.pix.width; pix 1189 drivers/media/platform/davinci/vpfe_capture.c vb->height = vpfe_dev->fmt.fmt.pix.height; pix 1190 drivers/media/platform/davinci/vpfe_capture.c vb->size = vpfe_dev->fmt.fmt.pix.sizeimage; pix 1287 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.field, pix 1602 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.width = rect.width; pix 1603 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.height = rect.height; pix 1604 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.bytesperline = pix 1606 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.sizeimage = pix 1607 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.bytesperline * pix 1608 drivers/media/platform/davinci/vpfe_capture.c vpfe_dev->fmt.fmt.pix.height; pix 80 drivers/media/platform/davinci/vpif_capture.c vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); pix 84 drivers/media/platform/davinci/vpif_capture.c vbuf->field = common->fmt.fmt.pix.field; pix 115 drivers/media/platform/davinci/vpif_capture.c unsigned size = common->fmt.fmt.pix.sizeimage; pix 386 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.field == V4L2_FIELD_NONE) { pix 467 drivers/media/platform/davinci/vpif_capture.c struct v4l2_pix_format *pixfmt = &common->fmt.fmt.pix; pix 521 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.width = std_info->width; pix 523 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.height = std_info->height; pix 525 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; pix 526 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.bytesperline = std_info->width; pix 531 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 533 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 536 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.field = V4L2_FIELD_NONE; pix 538 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; pix 541 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_SBGGR8; pix 543 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_NV16; pix 563 drivers/media/platform/davinci/vpif_capture.c enum v4l2_field field = common->fmt.fmt.pix.field; pix 573 drivers/media/platform/davinci/vpif_capture.c vid_ch->buf_field = common->fmt.fmt.pix.field; pix 575 drivers/media/platform/davinci/vpif_capture.c sizeimage = common->fmt.fmt.pix.sizeimage; pix 577 drivers/media/platform/davinci/vpif_capture.c hpitch = common->fmt.fmt.pix.bytesperline; pix 607 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.bytesperline; pix 612 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.bytesperline * 2; pix 615 drivers/media/platform/davinci/vpif_capture.c common->fmt.fmt.pix.bytesperline; pix 959 drivers/media/platform/davinci/vpif_capture.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 965 drivers/media/platform/davinci/vpif_capture.c pixfmt->field = common->fmt.fmt.pix.field; pix 966 drivers/media/platform/davinci/vpif_capture.c pixfmt->colorspace = common->fmt.fmt.pix.colorspace; pix 967 drivers/media/platform/davinci/vpif_capture.c pixfmt->bytesperline = common->fmt.fmt.pix.width; pix 968 drivers/media/platform/davinci/vpif_capture.c pixfmt->width = common->fmt.fmt.pix.width; pix 969 drivers/media/platform/davinci/vpif_capture.c pixfmt->height = common->fmt.fmt.pix.height; pix 972 drivers/media/platform/davinci/vpif_capture.c pixfmt->bytesperline = common->fmt.fmt.pix.width * 2; pix 997 drivers/media/platform/davinci/vpif_capture.c struct v4l2_pix_format *pix_fmt = &fmt->fmt.pix; pix 79 drivers/media/platform/davinci/vpif_display.c vb2_set_plane_payload(vb, 0, common->fmt.fmt.pix.sizeimage); pix 83 drivers/media/platform/davinci/vpif_display.c vbuf->field = common->fmt.fmt.pix.field; pix 117 drivers/media/platform/davinci/vpif_display.c unsigned size = common->fmt.fmt.pix.sizeimage; pix 472 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUV422P; pix 473 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.width = std_info->width; pix 474 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.height = std_info->height; pix 476 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.width, common->fmt.fmt.pix.height); pix 481 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.sizeimage = common->height * common->width * 2; pix 484 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 486 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 489 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.field = V4L2_FIELD_NONE; pix 491 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; pix 504 drivers/media/platform/davinci/vpif_display.c enum v4l2_field field = common->fmt.fmt.pix.field; pix 508 drivers/media/platform/davinci/vpif_display.c if (V4L2_FIELD_ANY == common->fmt.fmt.pix.field) { pix 514 drivers/media/platform/davinci/vpif_display.c vid_ch->buf_field = common->fmt.fmt.pix.field; pix 517 drivers/media/platform/davinci/vpif_display.c sizeimage = common->fmt.fmt.pix.sizeimage; pix 519 drivers/media/platform/davinci/vpif_display.c hpitch = common->fmt.fmt.pix.bytesperline; pix 547 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.bytesperline; pix 552 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.bytesperline * 2; pix 555 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.bytesperline; pix 629 drivers/media/platform/davinci/vpif_display.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 636 drivers/media/platform/davinci/vpif_display.c pixfmt->pixelformat = common->fmt.fmt.pix.pixelformat; pix 641 drivers/media/platform/davinci/vpif_display.c pixfmt->colorspace = common->fmt.fmt.pix.colorspace; pix 642 drivers/media/platform/davinci/vpif_display.c pixfmt->field = common->fmt.fmt.pix.field; pix 643 drivers/media/platform/davinci/vpif_display.c pixfmt->bytesperline = common->fmt.fmt.pix.width; pix 644 drivers/media/platform/davinci/vpif_display.c pixfmt->width = common->fmt.fmt.pix.width; pix 645 drivers/media/platform/davinci/vpif_display.c pixfmt->height = common->fmt.fmt.pix.height; pix 657 drivers/media/platform/davinci/vpif_display.c struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; pix 668 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix = *pixfmt; pix 707 drivers/media/platform/davinci/vpif_display.c common->fmt.fmt.pix.bytesperline = common->fmt.fmt.pix.width; pix 328 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_pix_format_mplane *pix; pix 347 drivers/media/platform/exynos-gsc/gsc-m2m.c pix = &f->fmt.pix_mp; pix 348 drivers/media/platform/exynos-gsc/gsc-m2m.c frame->fmt = find_fmt(&pix->pixelformat, NULL, 0); pix 349 drivers/media/platform/exynos-gsc/gsc-m2m.c frame->colorspace = pix->colorspace; pix 354 drivers/media/platform/exynos-gsc/gsc-m2m.c frame->payload[i] = pix->plane_fmt[i].sizeimage; pix 356 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc_set_frame_size(frame, pix->width, pix->height); pix 918 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 926 drivers/media/platform/exynos4-is/fimc-capture.c if (fimc_jpeg_fourcc(pix->pixelformat)) { pix 927 drivers/media/platform/exynos4-is/fimc-capture.c fimc_capture_try_format(ctx, &pix->width, &pix->height, pix 928 drivers/media/platform/exynos4-is/fimc-capture.c NULL, &pix->pixelformat, pix 931 drivers/media/platform/exynos4-is/fimc-capture.c width = pix->width; pix 932 drivers/media/platform/exynos4-is/fimc-capture.c height = pix->height; pix 934 drivers/media/platform/exynos4-is/fimc-capture.c ctx->s_frame.f_width = pix->width; pix 935 drivers/media/platform/exynos4-is/fimc-capture.c ctx->s_frame.f_height = pix->height; pix 940 drivers/media/platform/exynos4-is/fimc-capture.c *out_fmt = fimc_capture_try_format(ctx, &pix->width, &pix->height, pix 941 drivers/media/platform/exynos4-is/fimc-capture.c NULL, &pix->pixelformat, pix 947 drivers/media/platform/exynos4-is/fimc-capture.c if (try && fimc_jpeg_fourcc(pix->pixelformat)) { pix 948 drivers/media/platform/exynos4-is/fimc-capture.c pix->width = width; pix 949 drivers/media/platform/exynos4-is/fimc-capture.c pix->height = height; pix 960 drivers/media/platform/exynos4-is/fimc-capture.c mf->width = pix->width; pix 961 drivers/media/platform/exynos4-is/fimc-capture.c mf->height = pix->height; pix 970 drivers/media/platform/exynos4-is/fimc-capture.c pix->width = mf->width; pix 971 drivers/media/platform/exynos4-is/fimc-capture.c pix->height = mf->height; pix 974 drivers/media/platform/exynos4-is/fimc-capture.c fimc_adjust_mplane_format(*out_fmt, pix->width, pix->height, pix); pix 983 drivers/media/platform/exynos4-is/fimc-capture.c fimc_get_sensor_frame_desc(sensor, pix->plane_fmt, pix 1022 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 1038 drivers/media/platform/exynos4-is/fimc-capture.c ff->bytesperline[i] = pix->plane_fmt[i].bytesperline; pix 1039 drivers/media/platform/exynos4-is/fimc-capture.c ff->payload[i] = pix->plane_fmt[i].sizeimage; pix 1042 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_bounds(ff, pix->width, pix->height); pix 1045 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_crop(ff, 0, 0, pix->width, pix->height); pix 1052 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_bounds(&ctx->s_frame, pix->width, pix->height); pix 1053 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_crop(&ctx->s_frame, 0, 0, pix->width, pix->height); pix 700 drivers/media/platform/exynos4-is/fimc-core.c struct v4l2_pix_format_mplane *pix) pix 705 drivers/media/platform/exynos4-is/fimc-core.c pix->colorspace = V4L2_COLORSPACE_JPEG; pix 706 drivers/media/platform/exynos4-is/fimc-core.c pix->field = V4L2_FIELD_NONE; pix 707 drivers/media/platform/exynos4-is/fimc-core.c pix->num_planes = fmt->memplanes; pix 708 drivers/media/platform/exynos4-is/fimc-core.c pix->pixelformat = fmt->fourcc; pix 709 drivers/media/platform/exynos4-is/fimc-core.c pix->height = height; pix 710 drivers/media/platform/exynos4-is/fimc-core.c pix->width = width; pix 712 drivers/media/platform/exynos4-is/fimc-core.c for (i = 0; i < pix->num_planes; ++i) { pix 713 drivers/media/platform/exynos4-is/fimc-core.c struct v4l2_plane_pix_format *plane_fmt = &pix->plane_fmt[i]; pix 717 drivers/media/platform/exynos4-is/fimc-core.c if (fmt->colplanes > 1 && (bpl == 0 || bpl < pix->width)) pix 718 drivers/media/platform/exynos4-is/fimc-core.c bpl = pix->width; /* Planar */ pix 721 drivers/media/platform/exynos4-is/fimc-core.c (bpl == 0 || ((bpl * 8) / fmt->depth[i]) < pix->width)) pix 722 drivers/media/platform/exynos4-is/fimc-core.c bpl = (pix->width * fmt->depth[0]) / 8; pix 735 drivers/media/platform/exynos4-is/fimc-core.c sizeimage = pix->width * pix->height * fmt->depth[i] / 8; pix 624 drivers/media/platform/exynos4-is/fimc-core.h struct v4l2_pix_format_mplane *pix); pix 271 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 278 drivers/media/platform/exynos4-is/fimc-m2m.c fmt = fimc_find_format(&pix->pixelformat, NULL, pix 283 drivers/media/platform/exynos4-is/fimc-m2m.c if (pix->field == V4L2_FIELD_ANY) pix 284 drivers/media/platform/exynos4-is/fimc-m2m.c pix->field = V4L2_FIELD_NONE; pix 285 drivers/media/platform/exynos4-is/fimc-m2m.c else if (pix->field != V4L2_FIELD_NONE) pix 306 drivers/media/platform/exynos4-is/fimc-m2m.c v4l_bound_align_image(&pix->width, 16, max_w, mod_x, pix 307 drivers/media/platform/exynos4-is/fimc-m2m.c &pix->height, 8, variant->pix_limit->scaler_dis_w, mod_y, 0); pix 309 drivers/media/platform/exynos4-is/fimc-m2m.c fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); pix 586 drivers/media/platform/fsl-viu.c f->fmt.pix.width = fh->width; pix 587 drivers/media/platform/fsl-viu.c f->fmt.pix.height = fh->height; pix 588 drivers/media/platform/fsl-viu.c f->fmt.pix.field = fh->vb_vidq.field; pix 589 drivers/media/platform/fsl-viu.c f->fmt.pix.pixelformat = fh->fmt->pixelformat; pix 590 drivers/media/platform/fsl-viu.c f->fmt.pix.bytesperline = pix 591 drivers/media/platform/fsl-viu.c (f->fmt.pix.width * fh->fmt->depth) >> 3; pix 592 drivers/media/platform/fsl-viu.c f->fmt.pix.sizeimage = fh->sizeimage; pix 593 drivers/media/platform/fsl-viu.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 603 drivers/media/platform/fsl-viu.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 606 drivers/media/platform/fsl-viu.c f->fmt.pix.pixelformat); pix 613 drivers/media/platform/fsl-viu.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 614 drivers/media/platform/fsl-viu.c if (f->fmt.pix.height < 32) pix 615 drivers/media/platform/fsl-viu.c f->fmt.pix.height = 32; pix 616 drivers/media/platform/fsl-viu.c if (f->fmt.pix.height > maxh) pix 617 drivers/media/platform/fsl-viu.c f->fmt.pix.height = maxh; pix 618 drivers/media/platform/fsl-viu.c if (f->fmt.pix.width < 48) pix 619 drivers/media/platform/fsl-viu.c f->fmt.pix.width = 48; pix 620 drivers/media/platform/fsl-viu.c if (f->fmt.pix.width > maxw) pix 621 drivers/media/platform/fsl-viu.c f->fmt.pix.width = maxw; pix 622 drivers/media/platform/fsl-viu.c f->fmt.pix.width &= ~0x03; pix 623 drivers/media/platform/fsl-viu.c f->fmt.pix.bytesperline = pix 624 drivers/media/platform/fsl-viu.c (f->fmt.pix.width * fmt->depth) >> 3; pix 625 drivers/media/platform/fsl-viu.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 626 drivers/media/platform/fsl-viu.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 641 drivers/media/platform/fsl-viu.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 642 drivers/media/platform/fsl-viu.c fh->width = f->fmt.pix.width; pix 643 drivers/media/platform/fsl-viu.c fh->height = f->fmt.pix.height; pix 644 drivers/media/platform/fsl-viu.c fh->sizeimage = f->fmt.pix.sizeimage; pix 645 drivers/media/platform/fsl-viu.c fh->vb_vidq.field = f->fmt.pix.field; pix 178 drivers/media/platform/imx-pxp.c if (fmt->fourcc == f->fmt.pix.pixelformat) pix 1089 drivers/media/platform/imx-pxp.c f->fmt.pix.width = q_data->width; pix 1090 drivers/media/platform/imx-pxp.c f->fmt.pix.height = q_data->height; pix 1091 drivers/media/platform/imx-pxp.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1092 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; pix 1093 drivers/media/platform/imx-pxp.c f->fmt.pix.bytesperline = q_data->bytesperline; pix 1094 drivers/media/platform/imx-pxp.c f->fmt.pix.sizeimage = q_data->sizeimage; pix 1095 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = ctx->colorspace; pix 1096 drivers/media/platform/imx-pxp.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 1097 drivers/media/platform/imx-pxp.c f->fmt.pix.ycbcr_enc = q_data->ycbcr_enc; pix 1098 drivers/media/platform/imx-pxp.c f->fmt.pix.quantization = q_data->quant; pix 1137 drivers/media/platform/imx-pxp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, ALIGN_W, pix 1138 drivers/media/platform/imx-pxp.c &f->fmt.pix.height, MIN_H, MAX_H, ALIGN_H, 0); pix 1140 drivers/media/platform/imx-pxp.c f->fmt.pix.bytesperline = pxp_bytesperline(fmt, f->fmt.pix.width); pix 1141 drivers/media/platform/imx-pxp.c f->fmt.pix.sizeimage = pxp_sizeimage(fmt, f->fmt.pix.width, pix 1142 drivers/media/platform/imx-pxp.c f->fmt.pix.height); pix 1143 drivers/media/platform/imx-pxp.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1179 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 1185 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat); pix 1189 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = ctx->colorspace; pix 1190 drivers/media/platform/imx-pxp.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 1193 drivers/media/platform/imx-pxp.c &f->fmt.pix.ycbcr_enc, pix 1194 drivers/media/platform/imx-pxp.c &f->fmt.pix.quantization); pix 1207 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 1213 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat); pix 1217 drivers/media/platform/imx-pxp.c if (!f->fmt.pix.colorspace) pix 1218 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 1242 drivers/media/platform/imx-pxp.c q_data->width = f->fmt.pix.width; pix 1243 drivers/media/platform/imx-pxp.c q_data->height = f->fmt.pix.height; pix 1244 drivers/media/platform/imx-pxp.c q_data->bytesperline = f->fmt.pix.bytesperline; pix 1245 drivers/media/platform/imx-pxp.c q_data->sizeimage = f->fmt.pix.sizeimage; pix 1268 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_DST].ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 1269 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_DST].quant = f->fmt.pix.quantization; pix 1288 drivers/media/platform/imx-pxp.c ctx->colorspace = f->fmt.pix.colorspace; pix 1289 drivers/media/platform/imx-pxp.c ctx->xfer_func = f->fmt.pix.xfer_func; pix 1290 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_SRC].ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 1291 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_SRC].quant = f->fmt.pix.quantization; pix 111 drivers/media/platform/m2m-deinterlace.c (fmt->fourcc == f->fmt.pix.pixelformat)) pix 492 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.width = q_data->width; pix 493 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.height = q_data->height; pix 494 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = q_data->field; pix 495 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; pix 499 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = q_data->width * 3 / 2; pix 503 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = q_data->width * 2; pix 506 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.sizeimage = q_data->sizeimage; pix 507 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = ctx->colorspace; pix 526 drivers/media/platform/m2m-deinterlace.c switch (f->fmt.pix.pixelformat) { pix 528 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; pix 532 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 534 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 547 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; pix 549 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = ctx->colorspace; pix 551 drivers/media/platform/m2m-deinterlace.c if (f->fmt.pix.field != V4L2_FIELD_INTERLACED_TB && pix 552 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_INTERLACED_BT && pix 553 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_NONE) pix 554 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; pix 566 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; pix 568 drivers/media/platform/m2m-deinterlace.c if (!f->fmt.pix.colorspace) pix 569 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 571 drivers/media/platform/m2m-deinterlace.c if (f->fmt.pix.field != V4L2_FIELD_SEQ_TB && pix 572 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_SEQ_BT) pix 573 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = V4L2_FIELD_SEQ_TB; pix 600 drivers/media/platform/m2m-deinterlace.c f->type, f->fmt.pix.width, f->fmt.pix.height, pix 601 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat, f->fmt.pix.field); pix 605 drivers/media/platform/m2m-deinterlace.c q_data->width = f->fmt.pix.width; pix 606 drivers/media/platform/m2m-deinterlace.c q_data->height = f->fmt.pix.height; pix 607 drivers/media/platform/m2m-deinterlace.c q_data->field = f->fmt.pix.field; pix 609 drivers/media/platform/m2m-deinterlace.c switch (f->fmt.pix.pixelformat) { pix 611 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; pix 616 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 651 drivers/media/platform/m2m-deinterlace.c ctx->colorspace = f->fmt.pix.colorspace; pix 1370 drivers/media/platform/marvell-ccic/mcam-core.c struct v4l2_pix_format *pix = &fmt->fmt.pix; pix 1377 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(pix->pixelformat); pix 1378 drivers/media/platform/marvell-ccic/mcam-core.c pix->pixelformat = f->pixelformat; pix 1379 drivers/media/platform/marvell-ccic/mcam-core.c v4l2_fill_mbus_format(&format.format, pix, f->mbus_code); pix 1381 drivers/media/platform/marvell-ccic/mcam-core.c v4l2_fill_pix_format(pix, &format.format); pix 1382 drivers/media/platform/marvell-ccic/mcam-core.c pix->bytesperline = pix->width * f->bpp; pix 1386 drivers/media/platform/marvell-ccic/mcam-core.c pix->sizeimage = pix->height * pix->bytesperline * 3 / 2; pix 1389 drivers/media/platform/marvell-ccic/mcam-core.c pix->sizeimage = pix->height * pix->bytesperline; pix 1392 drivers/media/platform/marvell-ccic/mcam-core.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 1410 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(fmt->fmt.pix.pixelformat); pix 1422 drivers/media/platform/marvell-ccic/mcam-core.c cam->pix_format = fmt->fmt.pix; pix 1448 drivers/media/platform/marvell-ccic/mcam-core.c f->fmt.pix = cam->pix_format; pix 730 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; pix 745 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; pix 859 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = pix 863 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = pix 276 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (fmt->fourcc == f->fmt.pix.pixelformat) pix 444 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; pix 507 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; pix 548 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 560 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->width = q_data->coded_width; pix 561 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->height = q_data->coded_height; pix 562 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->pixelformat = q_data->fmt->fourcc; pix 563 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->field = q_data->field; pix 564 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->num_planes = q_data->fmt->num_planes; pix 565 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c for (i = 0; i < pix->num_planes; i++) { pix 566 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; pix 567 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->plane_fmt[i].sizeimage = q_data->sizeimage[i]; pix 568 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c memset(&(pix->plane_fmt[i].reserved[0]), 0x0, pix 569 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c sizeof(pix->plane_fmt[i].reserved)); pix 572 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->flags = 0; pix 573 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->colorspace = ctx->colorspace; pix 574 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->ycbcr_enc = ctx->ycbcr_enc; pix 575 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->quantization = ctx->quantization; pix 576 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c pix->xfer_func = ctx->xfer_func; pix 589 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; pix 607 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; pix 186 drivers/media/platform/mx2_emmaprp.c if (fmt->fourcc == f->fmt.pix.pixelformat) pix 438 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.width = q_data->width; pix 439 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.height = q_data->height; pix 440 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 441 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; pix 442 drivers/media/platform/mx2_emmaprp.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) pix 443 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = q_data->width * 3 / 2; pix 445 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = q_data->width * 2; pix 446 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.sizeimage = q_data->sizeimage; pix 471 drivers/media/platform/mx2_emmaprp.c field = f->fmt.pix.field; pix 479 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.field = field; pix 481 drivers/media/platform/mx2_emmaprp.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) { pix 482 drivers/media/platform/mx2_emmaprp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, pix 483 drivers/media/platform/mx2_emmaprp.c W_ALIGN_YUV420, &f->fmt.pix.height, pix 485 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; pix 487 drivers/media/platform/mx2_emmaprp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, pix 488 drivers/media/platform/mx2_emmaprp.c W_ALIGN_OTHERS, &f->fmt.pix.height, pix 490 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 492 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 507 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat); pix 524 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat); pix 555 drivers/media/platform/mx2_emmaprp.c q_data->width = f->fmt.pix.width; pix 556 drivers/media/platform/mx2_emmaprp.c q_data->height = f->fmt.pix.height; pix 124 drivers/media/platform/omap/omap_vout.c static int omap_vout_try_format(struct v4l2_pix_format *pix) pix 128 drivers/media/platform/omap/omap_vout.c pix->height = clamp(pix->height, (u32)VID_MIN_HEIGHT, pix 130 drivers/media/platform/omap/omap_vout.c pix->width = clamp(pix->width, (u32)VID_MIN_WIDTH, (u32)VID_MAX_WIDTH); pix 133 drivers/media/platform/omap/omap_vout.c if (pix->pixelformat == omap_formats[ifmt].pixelformat) pix 140 drivers/media/platform/omap/omap_vout.c pix->pixelformat = omap_formats[ifmt].pixelformat; pix 141 drivers/media/platform/omap/omap_vout.c pix->field = V4L2_FIELD_NONE; pix 143 drivers/media/platform/omap/omap_vout.c switch (pix->pixelformat) { pix 147 drivers/media/platform/omap/omap_vout.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 152 drivers/media/platform/omap/omap_vout.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 156 drivers/media/platform/omap/omap_vout.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 161 drivers/media/platform/omap/omap_vout.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 165 drivers/media/platform/omap/omap_vout.c pix->bytesperline = pix->width * bpp; pix 166 drivers/media/platform/omap/omap_vout.c pix->sizeimage = pix->bytesperline * pix->height; pix 204 drivers/media/platform/omap/omap_vout.c struct v4l2_pix_format *pix = &vout->pix; pix 213 drivers/media/platform/omap/omap_vout.c vout->line_length = line_length = pix->width; pix 215 drivers/media/platform/omap/omap_vout.c if (V4L2_PIX_FMT_YUYV == pix->pixelformat || pix 216 drivers/media/platform/omap/omap_vout.c V4L2_PIX_FMT_UYVY == pix->pixelformat) pix 218 drivers/media/platform/omap/omap_vout.c else if (V4L2_PIX_FMT_RGB32 == pix->pixelformat) pix 220 drivers/media/platform/omap/omap_vout.c else if (V4L2_PIX_FMT_RGB24 == pix->pixelformat) pix 242 drivers/media/platform/omap/omap_vout.c struct v4l2_pix_format *pix = &vout->pix; pix 248 drivers/media/platform/omap/omap_vout.c switch (pix->pixelformat) { pix 287 drivers/media/platform/omap/omap_vout.c (outw != vout->pix.width || outh != vout->pix.height)) { pix 304 drivers/media/platform/omap/omap_vout.c pixwidth = vout->pix.height; pix 308 drivers/media/platform/omap/omap_vout.c pixwidth = vout->pix.width; pix 601 drivers/media/platform/omap/omap_vout.c f->fmt.pix = vout->pix; pix 628 drivers/media/platform/omap/omap_vout.c omap_vout_try_format(&f->fmt.pix); pix 659 drivers/media/platform/omap/omap_vout.c f->fmt.pix.pixelformat == V4L2_PIX_FMT_RGB24) { pix 676 drivers/media/platform/omap/omap_vout.c bpp = omap_vout_try_format(&f->fmt.pix); pix 677 drivers/media/platform/omap/omap_vout.c f->fmt.pix.sizeimage = f->fmt.pix.width * f->fmt.pix.height * bpp; pix 681 drivers/media/platform/omap/omap_vout.c vout->pix = f->fmt.pix; pix 685 drivers/media/platform/omap/omap_vout.c if (V4L2_PIX_FMT_YUYV == vout->pix.pixelformat || pix 686 drivers/media/platform/omap/omap_vout.c V4L2_PIX_FMT_UYVY == vout->pix.pixelformat) pix 690 drivers/media/platform/omap/omap_vout.c omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); pix 792 drivers/media/platform/omap/omap_vout.c struct v4l2_pix_format *pix = &vout->pix; pix 802 drivers/media/platform/omap/omap_vout.c omap_vout_default_crop(&vout->pix, &vout->fbuf, &sel->r); pix 806 drivers/media/platform/omap/omap_vout.c sel->r.width = pix->width & ~1; pix 807 drivers/media/platform/omap/omap_vout.c sel->r.height = pix->height & ~1; pix 853 drivers/media/platform/omap/omap_vout.c ret = omap_vout_new_crop(&vout->pix, &vout->crop, &vout->win, pix 878 drivers/media/platform/omap/omap_vout.c if (rotation && vout->pix.pixelformat == V4L2_PIX_FMT_RGB24) { pix 923 drivers/media/platform/omap/omap_vout.c if (mirror && vout->pix.pixelformat == V4L2_PIX_FMT_RGB24) { pix 946 drivers/media/platform/omap/omap_vout.c int size = vout->pix.sizeimage; pix 969 drivers/media/platform/omap/omap_vout.c if (vb2_plane_size(vb, 0) < vout->pix.sizeimage) { pix 972 drivers/media/platform/omap/omap_vout.c __func__, vb2_plane_size(vb, 0), vout->pix.sizeimage); pix 976 drivers/media/platform/omap/omap_vout.c vb2_set_plane_payload(vb, 0, vout->pix.sizeimage); pix 1309 drivers/media/platform/omap/omap_vout.c struct v4l2_pix_format *pix; pix 1317 drivers/media/platform/omap/omap_vout.c pix = &vout->pix; pix 1320 drivers/media/platform/omap/omap_vout.c pix->width = QQVGA_WIDTH; pix 1321 drivers/media/platform/omap/omap_vout.c pix->height = QQVGA_HEIGHT; pix 1324 drivers/media/platform/omap/omap_vout.c pix->pixelformat = V4L2_PIX_FMT_RGB565; pix 1325 drivers/media/platform/omap/omap_vout.c pix->field = V4L2_FIELD_NONE; pix 1326 drivers/media/platform/omap/omap_vout.c pix->bytesperline = pix->width * 2; pix 1327 drivers/media/platform/omap/omap_vout.c pix->sizeimage = pix->bytesperline * pix->height; pix 1328 drivers/media/platform/omap/omap_vout.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 1349 drivers/media/platform/omap/omap_vout.c omap_vout_new_format(pix, &vout->fbuf, &vout->crop, &vout->win); pix 224 drivers/media/platform/omap/omap_vout_vrfb.c vout->smsshado_phy_addr[i], vout->pix.width, pix 225 drivers/media/platform/omap/omap_vout_vrfb.c vout->pix.height, vout->bpp, yuv_mode); pix 254 drivers/media/platform/omap/omap_vout_vrfb.c dst_icg = MAX_PIXELS_PER_LINE * pixsize - vout->pix.width * vout->bpp; pix 259 drivers/media/platform/omap/omap_vout_vrfb.c xt->numf = vout->pix.height; pix 261 drivers/media/platform/omap/omap_vout_vrfb.c xt->sgl[0].size = vout->pix.width * vout->bpp; pix 323 drivers/media/platform/omap/omap_vout_vrfb.c struct v4l2_pix_format *pix = &vout->pix; pix 330 drivers/media/platform/omap/omap_vout_vrfb.c if (V4L2_PIX_FMT_YUYV == pix->pixelformat || pix 331 drivers/media/platform/omap/omap_vout_vrfb.c V4L2_PIX_FMT_UYVY == pix->pixelformat) { pix 344 drivers/media/platform/omap/omap_vout_vrfb.c } else if (V4L2_PIX_FMT_RGB32 == pix->pixelformat) { pix 346 drivers/media/platform/omap/omap_vout_vrfb.c } else if (V4L2_PIX_FMT_RGB24 == pix->pixelformat) { pix 354 drivers/media/platform/omap/omap_vout_vrfb.c ctop = (pix->height - crop->height) - crop->top; pix 355 drivers/media/platform/omap/omap_vout_vrfb.c cleft = (pix->width - crop->width) - crop->left; pix 357 drivers/media/platform/omap/omap_vout_vrfb.c line_length = pix->width; pix 146 drivers/media/platform/omap/omap_voutdef.h struct v4l2_pix_format pix; pix 43 drivers/media/platform/omap/omap_voutlib.c void omap_vout_default_crop(struct v4l2_pix_format *pix, pix 46 drivers/media/platform/omap/omap_voutlib.c crop->width = (pix->width < fbuf->fmt.width) ? pix 47 drivers/media/platform/omap/omap_voutlib.c pix->width : fbuf->fmt.width; pix 48 drivers/media/platform/omap/omap_voutlib.c crop->height = (pix->height < fbuf->fmt.height) ? pix 49 drivers/media/platform/omap/omap_voutlib.c pix->height : fbuf->fmt.height; pix 52 drivers/media/platform/omap/omap_voutlib.c crop->left = ((pix->width - crop->width) >> 1) & ~1; pix 53 drivers/media/platform/omap/omap_voutlib.c crop->top = ((pix->height - crop->height) >> 1) & ~1; pix 169 drivers/media/platform/omap/omap_voutlib.c int omap_vout_new_crop(struct v4l2_pix_format *pix, pix 188 drivers/media/platform/omap/omap_voutlib.c try_crop.width = (try_crop.width < pix->width) ? pix 189 drivers/media/platform/omap/omap_voutlib.c try_crop.width : pix->width; pix 190 drivers/media/platform/omap/omap_voutlib.c try_crop.height = (try_crop.height < pix->height) ? pix 191 drivers/media/platform/omap/omap_voutlib.c try_crop.height : pix->height; pix 192 drivers/media/platform/omap/omap_voutlib.c if (try_crop.left + try_crop.width > pix->width) pix 193 drivers/media/platform/omap/omap_voutlib.c try_crop.width = pix->width - try_crop.left; pix 194 drivers/media/platform/omap/omap_voutlib.c if (try_crop.top + try_crop.height > pix->height) pix 195 drivers/media/platform/omap/omap_voutlib.c try_crop.height = pix->height - try_crop.top; pix 285 drivers/media/platform/omap/omap_voutlib.c void omap_vout_new_format(struct v4l2_pix_format *pix, pix 292 drivers/media/platform/omap/omap_voutlib.c omap_vout_default_crop(pix, fbuf, crop); pix 15 drivers/media/platform/omap/omap_voutlib.h void omap_vout_default_crop(struct v4l2_pix_format *pix, pix 18 drivers/media/platform/omap/omap_voutlib.h int omap_vout_new_crop(struct v4l2_pix_format *pix, pix 30 drivers/media/platform/omap/omap_voutlib.h void omap_vout_new_format(struct v4l2_pix_format *pix, pix 142 drivers/media/platform/omap3isp/ispvideo.c struct v4l2_pix_format *pix) pix 144 drivers/media/platform/omap3isp/ispvideo.c unsigned int bpl = pix->bytesperline; pix 148 drivers/media/platform/omap3isp/ispvideo.c memset(pix, 0, sizeof(*pix)); pix 149 drivers/media/platform/omap3isp/ispvideo.c pix->width = mbus->width; pix 150 drivers/media/platform/omap3isp/ispvideo.c pix->height = mbus->height; pix 160 drivers/media/platform/omap3isp/ispvideo.c min_bpl = pix->width * formats[i].bpp; pix 174 drivers/media/platform/omap3isp/ispvideo.c pix->pixelformat = formats[i].pixelformat; pix 175 drivers/media/platform/omap3isp/ispvideo.c pix->bytesperline = bpl; pix 176 drivers/media/platform/omap3isp/ispvideo.c pix->sizeimage = pix->bytesperline * pix->height; pix 177 drivers/media/platform/omap3isp/ispvideo.c pix->colorspace = mbus->colorspace; pix 178 drivers/media/platform/omap3isp/ispvideo.c pix->field = mbus->field; pix 183 drivers/media/platform/omap3isp/ispvideo.c static void isp_video_pix_to_mbus(const struct v4l2_pix_format *pix, pix 189 drivers/media/platform/omap3isp/ispvideo.c mbus->width = pix->width; pix 190 drivers/media/platform/omap3isp/ispvideo.c mbus->height = pix->height; pix 196 drivers/media/platform/omap3isp/ispvideo.c if (formats[i].pixelformat == pix->pixelformat) pix 201 drivers/media/platform/omap3isp/ispvideo.c mbus->colorspace = pix->colorspace; pix 202 drivers/media/platform/omap3isp/ispvideo.c mbus->field = pix->field; pix 300 drivers/media/platform/omap3isp/ispvideo.c return isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); pix 314 drivers/media/platform/omap3isp/ispvideo.c if (vfh->format.fmt.pix.pixelformat != format.fmt.pix.pixelformat || pix 315 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.height != format.fmt.pix.height || pix 316 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.width != format.fmt.pix.width || pix 317 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || pix 318 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || pix 319 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.field != format.fmt.pix.field) pix 338 drivers/media/platform/omap3isp/ispvideo.c sizes[0] = vfh->format.fmt.pix.sizeimage; pix 372 drivers/media/platform/omap3isp/ispvideo.c vfh->format.fmt.pix.sizeimage); pix 692 drivers/media/platform/omap3isp/ispvideo.c switch (format->fmt.pix.field) { pix 699 drivers/media/platform/omap3isp/ispvideo.c format->fmt.pix.field = V4L2_FIELD_NONE; pix 706 drivers/media/platform/omap3isp/ispvideo.c format->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; pix 712 drivers/media/platform/omap3isp/ispvideo.c format->fmt.pix.field = V4L2_FIELD_NONE; pix 722 drivers/media/platform/omap3isp/ispvideo.c format->fmt.pix.field = V4L2_FIELD_NONE; pix 729 drivers/media/platform/omap3isp/ispvideo.c isp_video_pix_to_mbus(&format->fmt.pix, &fmt); pix 730 drivers/media/platform/omap3isp/ispvideo.c isp_video_mbus_to_pix(video, &fmt, &format->fmt.pix); pix 755 drivers/media/platform/omap3isp/ispvideo.c isp_video_pix_to_mbus(&format->fmt.pix, &fmt.format); pix 763 drivers/media/platform/omap3isp/ispvideo.c isp_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); pix 1120 drivers/media/platform/omap3isp/ispvideo.c video->bpl_value = vfh->format.fmt.pix.bytesperline; pix 1152 drivers/media/platform/omap3isp/ispvideo.c pipe->field = vfh->format.fmt.pix.field; pix 1862 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1864 drivers/media/platform/pxa_camera.c pix->width = pcdev->current_pix.width; pix 1865 drivers/media/platform/pxa_camera.c pix->height = pcdev->current_pix.height; pix 1866 drivers/media/platform/pxa_camera.c pix->bytesperline = pcdev->current_pix.bytesperline; pix 1867 drivers/media/platform/pxa_camera.c pix->sizeimage = pcdev->current_pix.sizeimage; pix 1868 drivers/media/platform/pxa_camera.c pix->field = pcdev->current_pix.field; pix 1869 drivers/media/platform/pxa_camera.c pix->pixelformat = pcdev->current_fmt->host_fmt->fourcc; pix 1870 drivers/media/platform/pxa_camera.c pix->colorspace = pcdev->current_pix.colorspace; pix 1881 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1887 drivers/media/platform/pxa_camera.c __u32 pixfmt = pix->pixelformat; pix 1902 drivers/media/platform/pxa_camera.c v4l_bound_align_image(&pix->width, 48, 2048, 1, pix 1903 drivers/media/platform/pxa_camera.c &pix->height, 32, 2048, 0, pix 1906 drivers/media/platform/pxa_camera.c v4l2_fill_mbus_format(mf, pix, xlate->code); pix 1911 drivers/media/platform/pxa_camera.c v4l2_fill_pix_format(pix, mf); pix 1917 drivers/media/platform/pxa_camera.c pix->field = V4L2_FIELD_NONE; pix 1926 drivers/media/platform/pxa_camera.c ret = pxa_mbus_bytes_per_line(pix->width, xlate->host_fmt); pix 1930 drivers/media/platform/pxa_camera.c pix->bytesperline = ret; pix 1931 drivers/media/platform/pxa_camera.c ret = pxa_mbus_image_size(xlate->host_fmt, pix->bytesperline, pix 1932 drivers/media/platform/pxa_camera.c pix->height); pix 1936 drivers/media/platform/pxa_camera.c pix->sizeimage = ret; pix 1945 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1954 drivers/media/platform/pxa_camera.c pix->width, pix->height, pix->pixelformat); pix 1968 drivers/media/platform/pxa_camera.c pix->pixelformat); pix 1969 drivers/media/platform/pxa_camera.c v4l2_fill_mbus_format(&format.format, pix, xlate->code); pix 1974 drivers/media/platform/pxa_camera.c pix->pixelformat); pix 1975 drivers/media/platform/pxa_camera.c } else if (pxa_camera_check_frame(pix->width, pix->height)) { pix 1978 drivers/media/platform/pxa_camera.c pix->width, pix->height); pix 1983 drivers/media/platform/pxa_camera.c pcdev->current_pix = *pix; pix 2140 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &pcdev->current_pix; pix 2166 drivers/media/platform/pxa_camera.c pix->field = V4L2_FIELD_NONE; pix 2167 drivers/media/platform/pxa_camera.c pix->width = DEFAULT_WIDTH; pix 2168 drivers/media/platform/pxa_camera.c pix->height = DEFAULT_HEIGHT; pix 2169 drivers/media/platform/pxa_camera.c pix->bytesperline = pix 2170 drivers/media/platform/pxa_camera.c pxa_mbus_bytes_per_line(pix->width, pix 2172 drivers/media/platform/pxa_camera.c pix->sizeimage = pix 2174 drivers/media/platform/pxa_camera.c pix->bytesperline, pix->height); pix 2175 drivers/media/platform/pxa_camera.c pix->pixelformat = pcdev->current_fmt->host_fmt->fourcc; pix 2176 drivers/media/platform/pxa_camera.c v4l2_fill_mbus_format(mf, pix, pcdev->current_fmt->code); pix 2186 drivers/media/platform/pxa_camera.c v4l2_fill_pix_format(pix, mf); pix 2188 drivers/media/platform/pxa_camera.c __func__, pix->colorspace, pix->pixelformat); pix 310 drivers/media/platform/qcom/camss/camss-vfe-4-1.c static void vfe_get_wm_sizes(struct v4l2_pix_format_mplane *pix, u8 plane, pix 313 drivers/media/platform/qcom/camss/camss-vfe-4-1.c switch (pix->pixelformat) { pix 316 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *width = pix->width; pix 317 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *height = pix->height; pix 318 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *bytesperline = pix->plane_fmt[0].bytesperline; pix 324 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *width = pix->width; pix 325 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *height = pix->height; pix 326 drivers/media/platform/qcom/camss/camss-vfe-4-1.c *bytesperline = pix->plane_fmt[0].bytesperline; pix 332 drivers/media/platform/qcom/camss/camss-vfe-4-1.c struct v4l2_pix_format_mplane *pix, pix 340 drivers/media/platform/qcom/camss/camss-vfe-4-1.c vfe_get_wm_sizes(pix, plane, &width, &height, &bytesperline); pix 342 drivers/media/platform/qcom/camss/camss-vfe-4-1.c wpl = vfe_word_per_line(pix->pixelformat, width); pix 350 drivers/media/platform/qcom/camss/camss-vfe-4-1.c wpl = vfe_word_per_line(pix->pixelformat, bytesperline); pix 351 drivers/media/platform/qcom/camss/camss-vfe-4-7.c static void vfe_get_wm_sizes(struct v4l2_pix_format_mplane *pix, u8 plane, pix 354 drivers/media/platform/qcom/camss/camss-vfe-4-7.c switch (pix->pixelformat) { pix 357 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *width = pix->width; pix 358 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *height = pix->height; pix 359 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *bytesperline = pix->plane_fmt[0].bytesperline; pix 365 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *width = pix->width; pix 366 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *height = pix->height; pix 367 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *bytesperline = pix->plane_fmt[0].bytesperline; pix 373 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *width = pix->width; pix 374 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *height = pix->height; pix 375 drivers/media/platform/qcom/camss/camss-vfe-4-7.c *bytesperline = pix->plane_fmt[plane].bytesperline; pix 382 drivers/media/platform/qcom/camss/camss-vfe-4-7.c struct v4l2_pix_format_mplane *pix, pix 390 drivers/media/platform/qcom/camss/camss-vfe-4-7.c vfe_get_wm_sizes(pix, plane, &width, &height, &bytesperline); pix 392 drivers/media/platform/qcom/camss/camss-vfe-4-7.c wpl = vfe_word_per_line_by_pixel(pix->pixelformat, width); pix 89 drivers/media/platform/qcom/camss/camss-vfe.h struct v4l2_pix_format_mplane *pix, pix 245 drivers/media/platform/qcom/camss/camss-video.c struct v4l2_pix_format_mplane *pix, pix 252 drivers/media/platform/qcom/camss/camss-video.c memset(pix, 0, sizeof(*pix)); pix 253 drivers/media/platform/qcom/camss/camss-video.c v4l2_fill_pix_format_mplane(pix, mbus); pix 254 drivers/media/platform/qcom/camss/camss-video.c pix->pixelformat = f->pixelformat; pix 255 drivers/media/platform/qcom/camss/camss-video.c pix->num_planes = f->planes; pix 256 drivers/media/platform/qcom/camss/camss-video.c for (i = 0; i < pix->num_planes; i++) { pix 257 drivers/media/platform/qcom/camss/camss-video.c bytesperline = pix->width / f->hsub[i].numerator * pix 260 drivers/media/platform/qcom/camss/camss-video.c pix->plane_fmt[i].bytesperline = bytesperline; pix 261 drivers/media/platform/qcom/camss/camss-video.c pix->plane_fmt[i].sizeimage = pix->height / pix 410 drivers/media/platform/qcom/camss/camss-video.c struct v4l2_pix_format_mplane *pix = &video->active_fmt.fmt.pix_mp; pix 415 drivers/media/platform/qcom/camss/camss-video.c sd_pix->pixelformat = pix->pixelformat; pix 420 drivers/media/platform/qcom/camss/camss-video.c if (pix->pixelformat != sd_pix->pixelformat || pix 421 drivers/media/platform/qcom/camss/camss-video.c pix->height != sd_pix->height || pix 422 drivers/media/platform/qcom/camss/camss-video.c pix->width != sd_pix->width || pix 423 drivers/media/platform/qcom/camss/camss-video.c pix->num_planes != sd_pix->num_planes || pix 424 drivers/media/platform/qcom/camss/camss-video.c pix->field != format.fmt.pix_mp.field) pix 83 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_pix_format *pix) pix 88 drivers/media/platform/rcar-vin/rcar-v4l2.c fmt = rvin_format_from_pixel(vin, pix->pixelformat); pix 93 drivers/media/platform/rcar-vin/rcar-v4l2.c align = pix->pixelformat == V4L2_PIX_FMT_NV16 ? 0x20 : 0x10; pix 95 drivers/media/platform/rcar-vin/rcar-v4l2.c return ALIGN(pix->width, align) * fmt->bpp; pix 98 drivers/media/platform/rcar-vin/rcar-v4l2.c static u32 rvin_format_sizeimage(struct v4l2_pix_format *pix) pix 100 drivers/media/platform/rcar-vin/rcar-v4l2.c if (pix->pixelformat == V4L2_PIX_FMT_NV16) pix 101 drivers/media/platform/rcar-vin/rcar-v4l2.c return pix->bytesperline * pix->height * 2; pix 103 drivers/media/platform/rcar-vin/rcar-v4l2.c return pix->bytesperline * pix->height; pix 106 drivers/media/platform/rcar-vin/rcar-v4l2.c static void rvin_format_align(struct rvin_dev *vin, struct v4l2_pix_format *pix) pix 110 drivers/media/platform/rcar-vin/rcar-v4l2.c if (!rvin_format_from_pixel(vin, pix->pixelformat)) pix 111 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->pixelformat = RVIN_DEFAULT_FORMAT; pix 113 drivers/media/platform/rcar-vin/rcar-v4l2.c switch (pix->field) { pix 127 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->field = V4L2_FIELD_INTERLACED; pix 128 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->height *= 2; pix 131 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->field = RVIN_DEFAULT_FIELD; pix 139 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l_bound_align_image(&pix->width, 2, vin->info->max_width, walign, pix 140 drivers/media/platform/rcar-vin/rcar-v4l2.c &pix->height, 4, vin->info->max_height, 2, 0); pix 142 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->bytesperline = rvin_format_bytesperline(vin, pix); pix 143 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->sizeimage = rvin_format_sizeimage(pix); pix 146 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->width, pix->height, pix->bytesperline, pix->sizeimage); pix 181 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_pix_format *pix, pix 198 drivers/media/platform/rcar-vin/rcar-v4l2.c if (!rvin_format_from_pixel(vin, pix->pixelformat)) pix 199 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->pixelformat = RVIN_DEFAULT_FORMAT; pix 201 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_fill_mbus_format(&format.format, pix, vin->mbus_code); pix 204 drivers/media/platform/rcar-vin/rcar-v4l2.c field = pix->field; pix 205 drivers/media/platform/rcar-vin/rcar-v4l2.c width = pix->width; pix 206 drivers/media/platform/rcar-vin/rcar-v4l2.c height = pix->height; pix 213 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_fill_pix_format(pix, &format.format); pix 218 drivers/media/platform/rcar-vin/rcar-v4l2.c crop->width = pix->width; pix 219 drivers/media/platform/rcar-vin/rcar-v4l2.c crop->height = pix->height; pix 225 drivers/media/platform/rcar-vin/rcar-v4l2.c if (pix->field == V4L2_FIELD_ALTERNATE) pix 230 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->field = field; pix 232 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->width = width; pix 233 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->height = height; pix 235 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_format_align(vin, pix); pix 240 drivers/media/platform/rcar-vin/rcar-v4l2.c compose->width = pix->width; pix 241 drivers/media/platform/rcar-vin/rcar-v4l2.c compose->height = pix->height; pix 266 drivers/media/platform/rcar-vin/rcar-v4l2.c return rvin_try_format(vin, V4L2_SUBDEV_FORMAT_TRY, &f->fmt.pix, NULL, pix 280 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = rvin_try_format(vin, V4L2_SUBDEV_FORMAT_ACTIVE, &f->fmt.pix, pix 285 drivers/media/platform/rcar-vin/rcar-v4l2.c vin->format = f->fmt.pix; pix 298 drivers/media/platform/rcar-vin/rcar-v4l2.c f->fmt.pix = vin->format; pix 675 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_pix_format *pix) pix 683 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->colorspace = RVIN_DEFAULT_COLORSPACE; pix 684 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); pix 685 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); pix 686 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, pix 687 drivers/media/platform/rcar-vin/rcar-v4l2.c pix->ycbcr_enc); pix 689 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_format_align(vin, pix); pix 697 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_mc_try_format(vin, &f->fmt.pix); pix 710 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_mc_try_format(vin, &f->fmt.pix); pix 712 drivers/media/platform/rcar-vin/rcar-v4l2.c vin->format = f->fmt.pix; pix 1421 drivers/media/platform/rcar_fdp1.c static void fdp1_compute_stride(struct v4l2_pix_format_mplane *pix, pix 1434 drivers/media/platform/rcar_fdp1.c bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, pix 1435 drivers/media/platform/rcar_fdp1.c pix->width / hsub * fmt->bpp[i] / 8, pix 1438 drivers/media/platform/rcar_fdp1.c pix->plane_fmt[i].bytesperline = round_up(bpl, align); pix 1439 drivers/media/platform/rcar_fdp1.c pix->plane_fmt[i].sizeimage = pix->plane_fmt[i].bytesperline pix 1440 drivers/media/platform/rcar_fdp1.c * pix->height / vsub; pix 1442 drivers/media/platform/rcar_fdp1.c memset(pix->plane_fmt[i].reserved, 0, pix 1443 drivers/media/platform/rcar_fdp1.c sizeof(pix->plane_fmt[i].reserved)); pix 1448 drivers/media/platform/rcar_fdp1.c pix->plane_fmt[2].bytesperline = pix->plane_fmt[1].bytesperline; pix 1449 drivers/media/platform/rcar_fdp1.c pix->plane_fmt[2].sizeimage = pix->plane_fmt[1].sizeimage; pix 1451 drivers/media/platform/rcar_fdp1.c memset(pix->plane_fmt[2].reserved, 0, pix 1452 drivers/media/platform/rcar_fdp1.c sizeof(pix->plane_fmt[2].reserved)); pix 1458 drivers/media/platform/rcar_fdp1.c struct v4l2_pix_format_mplane *pix) pix 1465 drivers/media/platform/rcar_fdp1.c fmt = fdp1_find_format(pix->pixelformat); pix 1472 drivers/media/platform/rcar_fdp1.c pix->pixelformat = fmt->fourcc; pix 1473 drivers/media/platform/rcar_fdp1.c pix->num_planes = fmt->num_planes; pix 1479 drivers/media/platform/rcar_fdp1.c if (pix->field != V4L2_FIELD_NONE && pix 1480 drivers/media/platform/rcar_fdp1.c pix->field != V4L2_FIELD_ALTERNATE && pix 1481 drivers/media/platform/rcar_fdp1.c !V4L2_FIELD_HAS_BOTH(pix->field)) pix 1482 drivers/media/platform/rcar_fdp1.c pix->field = V4L2_FIELD_INTERLACED; pix 1491 drivers/media/platform/rcar_fdp1.c if (pix->colorspace == V4L2_COLORSPACE_DEFAULT) pix 1492 drivers/media/platform/rcar_fdp1.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1500 drivers/media/platform/rcar_fdp1.c width = round_down(pix->width, fmt->hsub); pix 1501 drivers/media/platform/rcar_fdp1.c pix->width = clamp(width, FDP1_MIN_W, FDP1_MAX_W); pix 1503 drivers/media/platform/rcar_fdp1.c height = round_down(pix->height, fmt->vsub); pix 1504 drivers/media/platform/rcar_fdp1.c if (pix->field == V4L2_FIELD_ALTERNATE) pix 1505 drivers/media/platform/rcar_fdp1.c pix->height = clamp(height, FDP1_MIN_H / 2, FDP1_MAX_H / 2); pix 1507 drivers/media/platform/rcar_fdp1.c pix->height = clamp(height, FDP1_MIN_H, FDP1_MAX_H); pix 1509 drivers/media/platform/rcar_fdp1.c fdp1_compute_stride(pix, fmt); pix 1514 drivers/media/platform/rcar_fdp1.c struct v4l2_pix_format_mplane *pix) pix 1547 drivers/media/platform/rcar_fdp1.c fmt = fdp1_find_format(pix->pixelformat); pix 1554 drivers/media/platform/rcar_fdp1.c pix->pixelformat = fmt->fourcc; pix 1555 drivers/media/platform/rcar_fdp1.c pix->num_planes = fmt->num_planes; pix 1556 drivers/media/platform/rcar_fdp1.c pix->field = V4L2_FIELD_NONE; pix 1564 drivers/media/platform/rcar_fdp1.c pix->colorspace = src_data->format.colorspace; pix 1565 drivers/media/platform/rcar_fdp1.c pix->xfer_func = src_data->format.xfer_func; pix 1568 drivers/media/platform/rcar_fdp1.c pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; pix 1569 drivers/media/platform/rcar_fdp1.c pix->quantization = V4L2_QUANTIZATION_DEFAULT; pix 1571 drivers/media/platform/rcar_fdp1.c pix->ycbcr_enc = src_data->format.ycbcr_enc; pix 1572 drivers/media/platform/rcar_fdp1.c pix->quantization = src_data->format.quantization; pix 1580 drivers/media/platform/rcar_fdp1.c pix->width = src_data->format.width; pix 1582 drivers/media/platform/rcar_fdp1.c pix->height = 2 * src_data->format.height; pix 1584 drivers/media/platform/rcar_fdp1.c pix->height = src_data->format.height; pix 1586 drivers/media/platform/rcar_fdp1.c fdp1_compute_stride(pix, fmt); pix 1607 drivers/media/platform/rcar_fdp1.c struct v4l2_pix_format_mplane *pix, pix 1614 drivers/media/platform/rcar_fdp1.c fdp1_try_fmt_output(ctx, &fmtinfo, pix); pix 1616 drivers/media/platform/rcar_fdp1.c fdp1_try_fmt_capture(ctx, &fmtinfo, pix); pix 1619 drivers/media/platform/rcar_fdp1.c q_data->format = *pix; pix 1621 drivers/media/platform/rcar_fdp1.c q_data->vsize = pix->height; pix 1622 drivers/media/platform/rcar_fdp1.c if (pix->field != V4L2_FIELD_NONE) pix 1625 drivers/media/platform/rcar_fdp1.c q_data->stride_y = pix->plane_fmt[0].bytesperline; pix 1626 drivers/media/platform/rcar_fdp1.c q_data->stride_c = pix->plane_fmt[1].bytesperline; pix 1629 drivers/media/platform/rcar_fdp1.c if (pix->field == V4L2_FIELD_INTERLACED || pix 1630 drivers/media/platform/rcar_fdp1.c pix->field == V4L2_FIELD_INTERLACED_TB || pix 1631 drivers/media/platform/rcar_fdp1.c pix->field == V4L2_FIELD_INTERLACED_BT) { pix 1649 drivers/media/platform/rcar_fdp1.c if (pix->field == V4L2_FIELD_ALTERNATE) pix 769 drivers/media/platform/rcar_jpu.c struct v4l2_pix_format_mplane *pix, pix 778 drivers/media/platform/rcar_jpu.c fmt = jpu_find_format(ctx->encoder, pix->pixelformat, f_type); pix 792 drivers/media/platform/rcar_jpu.c pix->pixelformat = fmt->fourcc; pix 793 drivers/media/platform/rcar_jpu.c pix->colorspace = fmt->colorspace; pix 794 drivers/media/platform/rcar_jpu.c pix->field = V4L2_FIELD_NONE; pix 795 drivers/media/platform/rcar_jpu.c pix->num_planes = fmt->num_planes; pix 796 drivers/media/platform/rcar_jpu.c memset(pix->reserved, 0, sizeof(pix->reserved)); pix 798 drivers/media/platform/rcar_jpu.c jpu_bound_align_image(&pix->width, JPU_WIDTH_MIN, JPU_WIDTH_MAX, pix 799 drivers/media/platform/rcar_jpu.c fmt->h_align, &pix->height, JPU_HEIGHT_MIN, pix 802 drivers/media/platform/rcar_jpu.c w = pix->width; pix 803 drivers/media/platform/rcar_jpu.c h = pix->height; pix 807 drivers/media/platform/rcar_jpu.c if (pix->plane_fmt[0].sizeimage <= 0 || ctx->encoder) pix 808 drivers/media/platform/rcar_jpu.c pix->plane_fmt[0].sizeimage = JPU_JPEG_HDR_SIZE + pix 810 drivers/media/platform/rcar_jpu.c pix->plane_fmt[0].bytesperline = 0; pix 811 drivers/media/platform/rcar_jpu.c memset(pix->plane_fmt[0].reserved, 0, pix 812 drivers/media/platform/rcar_jpu.c sizeof(pix->plane_fmt[0].reserved)); pix 816 drivers/media/platform/rcar_jpu.c for (i = 0; i < pix->num_planes; ++i) pix 817 drivers/media/platform/rcar_jpu.c bpl = max(bpl, pix->plane_fmt[i].bytesperline); pix 822 drivers/media/platform/rcar_jpu.c for (i = 0; i < pix->num_planes; ++i) { pix 823 drivers/media/platform/rcar_jpu.c pix->plane_fmt[i].bytesperline = bpl; pix 824 drivers/media/platform/rcar_jpu.c pix->plane_fmt[i].sizeimage = bpl * h * fmt->bpp[i] / 8; pix 825 drivers/media/platform/rcar_jpu.c memset(pix->plane_fmt[i].reserved, 0, pix 826 drivers/media/platform/rcar_jpu.c sizeof(pix->plane_fmt[i].reserved)); pix 281 drivers/media/platform/renesas-ceu.c static bool ceu_fmt_mplane(struct v4l2_pix_format_mplane *pix) pix 283 drivers/media/platform/renesas-ceu.c switch (pix->pixelformat) { pix 352 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; pix 364 drivers/media/platform/renesas-ceu.c capwr = (pix->height << 16) | pix->width * mbus_fmt->bpp / 8; pix 393 drivers/media/platform/renesas-ceu.c switch (pix->pixelformat) { pix 401 drivers/media/platform/renesas-ceu.c cfzsr = (pix->height << 16) | pix->width; pix 402 drivers/media/platform/renesas-ceu.c cdwdr = pix->plane_fmt[0].bytesperline; pix 415 drivers/media/platform/renesas-ceu.c cfzsr = (pix->height << 16) | pix->width; pix 416 drivers/media/platform/renesas-ceu.c cdwdr = pix->width; pix 429 drivers/media/platform/renesas-ceu.c cfzsr = (pix->height << 16) | pix->width; pix 430 drivers/media/platform/renesas-ceu.c cdwdr = pix->width; pix 467 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; pix 475 drivers/media/platform/renesas-ceu.c if (ceu_fmt_mplane(pix)) { pix 580 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix) pix 584 drivers/media/platform/renesas-ceu.c switch (pix->pixelformat) { pix 589 drivers/media/platform/renesas-ceu.c pix->num_planes = 1; pix 590 drivers/media/platform/renesas-ceu.c bpl = pix->width * ceu_fmt->bpp / 8; pix 591 drivers/media/platform/renesas-ceu.c szimage = pix->height * bpl; pix 592 drivers/media/platform/renesas-ceu.c ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); pix 597 drivers/media/platform/renesas-ceu.c pix->num_planes = 2; pix 598 drivers/media/platform/renesas-ceu.c bpl = pix->width; pix 599 drivers/media/platform/renesas-ceu.c szimage = pix->height * pix->width; pix 600 drivers/media/platform/renesas-ceu.c ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); pix 601 drivers/media/platform/renesas-ceu.c ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage / 2); pix 607 drivers/media/platform/renesas-ceu.c pix->num_planes = 2; pix 608 drivers/media/platform/renesas-ceu.c bpl = pix->width; pix 609 drivers/media/platform/renesas-ceu.c szimage = pix->height * pix->width; pix 610 drivers/media/platform/renesas-ceu.c ceu_update_plane_sizes(&pix->plane_fmt[0], bpl, szimage); pix 611 drivers/media/platform/renesas-ceu.c ceu_update_plane_sizes(&pix->plane_fmt[1], bpl, szimage); pix 626 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; pix 631 drivers/media/platform/renesas-ceu.c for (i = 0; i < pix->num_planes; i++) pix 632 drivers/media/platform/renesas-ceu.c if (sizes[i] < pix->plane_fmt[i].sizeimage) pix 639 drivers/media/platform/renesas-ceu.c *num_planes = pix->num_planes; pix 640 drivers/media/platform/renesas-ceu.c for (i = 0; i < pix->num_planes; i++) pix 641 drivers/media/platform/renesas-ceu.c sizes[i] = pix->plane_fmt[i].sizeimage; pix 661 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix = &ceudev->v4l2_pix; pix 664 drivers/media/platform/renesas-ceu.c for (i = 0; i < pix->num_planes; i++) { pix 665 drivers/media/platform/renesas-ceu.c if (vb2_plane_size(vb, i) < pix->plane_fmt[i].sizeimage) { pix 669 drivers/media/platform/renesas-ceu.c pix->plane_fmt[i].sizeimage); pix 673 drivers/media/platform/renesas-ceu.c vb2_set_plane_payload(vb, i, pix->plane_fmt[i].sizeimage); pix 794 drivers/media/platform/renesas-ceu.c struct v4l2_pix_format_mplane *pix = &v4l2_fmt->fmt.pix_mp; pix 813 drivers/media/platform/renesas-ceu.c switch (pix->pixelformat) { pix 834 drivers/media/platform/renesas-ceu.c pix->pixelformat = V4L2_PIX_FMT_NV16; pix 839 drivers/media/platform/renesas-ceu.c ceu_fmt = get_ceu_fmt_from_fourcc(pix->pixelformat); pix 842 drivers/media/platform/renesas-ceu.c v4l_bound_align_image(&pix->width, 2, CEU_MAX_WIDTH, 4, pix 843 drivers/media/platform/renesas-ceu.c &pix->height, 4, CEU_MAX_HEIGHT, 4, 0); pix 845 drivers/media/platform/renesas-ceu.c v4l2_fill_mbus_format_mplane(&sd_format.format, pix); pix 867 drivers/media/platform/renesas-ceu.c v4l2_fill_pix_format_mplane(pix, &sd_format.format); pix 870 drivers/media/platform/renesas-ceu.c ceu_calc_plane_sizes(ceudev, ceu_fmt, pix); pix 341 drivers/media/platform/rockchip/rga/rga.c if (formats[i].fourcc == f->fmt.pix.pixelformat) pix 475 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = frm->width; pix 476 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = frm->height; pix 477 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 478 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.pixelformat = frm->fmt->fourcc; pix 479 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = frm->stride; pix 480 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.sizeimage = frm->size; pix 481 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.colorspace = frm->colorspace; pix 493 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.pixelformat = fmt->fourcc; pix 496 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 498 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.width > MAX_WIDTH) pix 499 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = MAX_WIDTH; pix 500 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.height > MAX_HEIGHT) pix 501 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = MAX_HEIGHT; pix 503 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.width < MIN_WIDTH) pix 504 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = MIN_WIDTH; pix 505 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.height < MIN_HEIGHT) pix 506 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = MIN_HEIGHT; pix 509 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = f->fmt.pix.width; pix 511 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 513 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.sizeimage = pix 514 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height * (f->fmt.pix.width * fmt->depth) >> 3; pix 545 drivers/media/platform/rockchip/rga/rga.c frm->width = f->fmt.pix.width; pix 546 drivers/media/platform/rockchip/rga/rga.c frm->height = f->fmt.pix.height; pix 547 drivers/media/platform/rockchip/rga/rga.c frm->size = f->fmt.pix.sizeimage; pix 549 drivers/media/platform/rockchip/rga/rga.c frm->stride = f->fmt.pix.bytesperline; pix 550 drivers/media/platform/rockchip/rga/rga.c frm->colorspace = f->fmt.pix.colorspace; pix 692 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 696 drivers/media/platform/s3c-camif/camif-capture.c pix->bytesperline = frame->f_width * fmt->ybpp; pix 697 drivers/media/platform/s3c-camif/camif-capture.c pix->sizeimage = vp->payload; pix 699 drivers/media/platform/s3c-camif/camif-capture.c pix->pixelformat = fmt->fourcc; pix 700 drivers/media/platform/s3c-camif/camif-capture.c pix->width = frame->f_width; pix 701 drivers/media/platform/s3c-camif/camif-capture.c pix->height = frame->f_height; pix 702 drivers/media/platform/s3c-camif/camif-capture.c pix->field = V4L2_FIELD_NONE; pix 703 drivers/media/platform/s3c-camif/camif-capture.c pix->colorspace = V4L2_COLORSPACE_JPEG; pix 709 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_pix_format *pix, pix 718 drivers/media/platform/s3c-camif/camif-capture.c fmt = s3c_camif_find_format(vp, &pix->pixelformat, 0); pix 729 drivers/media/platform/s3c-camif/camif-capture.c pix->width, pix->height, crop->width, crop->height, pix 730 drivers/media/platform/s3c-camif/camif-capture.c pix->bytesperline); pix 743 drivers/media/platform/s3c-camif/camif-capture.c v4l_bound_align_image(&pix->width, wmin, pix_lim->max_sc_out_width, pix 745 drivers/media/platform/s3c-camif/camif-capture.c &pix->height, hmin, pix_lim->max_height, 0, 0); pix 747 drivers/media/platform/s3c-camif/camif-capture.c pix->bytesperline = pix->width * fmt->ybpp; pix 748 drivers/media/platform/s3c-camif/camif-capture.c pix->sizeimage = (pix->width * pix->height * fmt->depth) / 8; pix 749 drivers/media/platform/s3c-camif/camif-capture.c pix->pixelformat = fmt->fourcc; pix 750 drivers/media/platform/s3c-camif/camif-capture.c pix->colorspace = V4L2_COLORSPACE_JPEG; pix 751 drivers/media/platform/s3c-camif/camif-capture.c pix->field = V4L2_FIELD_NONE; pix 754 drivers/media/platform/s3c-camif/camif-capture.c pix->width, pix->height, wmin, hmin, sc_hrmax, sc_vrmax); pix 763 drivers/media/platform/s3c-camif/camif-capture.c return __camif_video_try_format(vp, &f->fmt.pix, NULL); pix 769 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 780 drivers/media/platform/s3c-camif/camif-capture.c ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt); pix 785 drivers/media/platform/s3c-camif/camif-capture.c vp->payload = pix->sizeimage; pix 786 drivers/media/platform/s3c-camif/camif-capture.c out_frame->f_width = pix->width; pix 787 drivers/media/platform/s3c-camif/camif-capture.c out_frame->f_height = pix->height; pix 790 drivers/media/platform/s3c-camif/camif-capture.c out_frame->rect.width = pix->width; pix 791 drivers/media/platform/s3c-camif/camif-capture.c out_frame->rect.height = pix->height; pix 800 drivers/media/platform/s3c-camif/camif-capture.c fmt->fourcc, pix->width * pix->height * fmt->depth, pix 801 drivers/media/platform/s3c-camif/camif-capture.c fmt->depth, pix->sizeimage, pix->bytesperline); pix 75 drivers/media/platform/s5p-g2d/g2d.c if (formats[i].fourcc == f->fmt.pix.pixelformat) pix 318 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = frm->width; pix 319 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = frm->height; pix 320 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 321 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.pixelformat = frm->fmt->fourcc; pix 322 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; pix 323 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.sizeimage = frm->size; pix 336 drivers/media/platform/s5p-g2d/g2d.c field = &f->fmt.pix.field; pix 342 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.width > MAX_WIDTH) pix 343 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = MAX_WIDTH; pix 344 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.height > MAX_HEIGHT) pix 345 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = MAX_HEIGHT; pix 347 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.width < 1) pix 348 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = 1; pix 349 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.height < 1) pix 350 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = 1; pix 352 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 353 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 382 drivers/media/platform/s5p-g2d/g2d.c frm->width = f->fmt.pix.width; pix 383 drivers/media/platform/s5p-g2d/g2d.c frm->height = f->fmt.pix.height; pix 384 drivers/media/platform/s5p-g2d/g2d.c frm->size = f->fmt.pix.sizeimage; pix 393 drivers/media/platform/s5p-g2d/g2d.c frm->stride = f->fmt.pix.bytesperline; pix 1335 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1348 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->width = q_data->w; pix 1349 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->height = q_data->h; pix 1350 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->field = V4L2_FIELD_NONE; pix 1351 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat = q_data->fmt->fourcc; pix 1352 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->bytesperline = 0; pix 1358 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->bytesperline = bpl; pix 1360 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->sizeimage = q_data->size; pix 1431 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1433 drivers/media/platform/s5p-jpeg/jpeg-core.c if (pix->field == V4L2_FIELD_ANY) pix 1434 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->field = V4L2_FIELD_NONE; pix 1435 drivers/media/platform/s5p-jpeg/jpeg-core.c else if (pix->field != V4L2_FIELD_NONE) pix 1442 drivers/media/platform/s5p-jpeg/jpeg-core.c jpeg_bound_align_image(ctx, &pix->width, S5P_JPEG_MIN_WIDTH, pix 1444 drivers/media/platform/s5p-jpeg/jpeg-core.c &pix->height, S5P_JPEG_MIN_HEIGHT, pix 1447 drivers/media/platform/s5p-jpeg/jpeg-core.c jpeg_bound_align_image(ctx, &pix->width, S5P_JPEG_MIN_WIDTH, pix 1449 drivers/media/platform/s5p-jpeg/jpeg-core.c &pix->height, S5P_JPEG_MIN_HEIGHT, pix 1453 drivers/media/platform/s5p-jpeg/jpeg-core.c if (pix->sizeimage <= 0) pix 1454 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->sizeimage = PAGE_SIZE; pix 1455 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->bytesperline = 0; pix 1457 drivers/media/platform/s5p-jpeg/jpeg-core.c u32 bpl = pix->bytesperline; pix 1459 drivers/media/platform/s5p-jpeg/jpeg-core.c if (fmt->colplanes > 1 && bpl < pix->width) pix 1460 drivers/media/platform/s5p-jpeg/jpeg-core.c bpl = pix->width; /* planar */ pix 1463 drivers/media/platform/s5p-jpeg/jpeg-core.c (bpl << 3) / fmt->depth < pix->width) pix 1464 drivers/media/platform/s5p-jpeg/jpeg-core.c bpl = (pix->width * fmt->depth) >> 3; pix 1466 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->bytesperline = bpl; pix 1467 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->sizeimage = (pix->width * pix->height * fmt->depth) >> 3; pix 1477 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1481 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, f->fmt.pix.pixelformat, pix 1486 drivers/media/platform/s5p-jpeg/jpeg-core.c f->fmt.pix.pixelformat); pix 1503 drivers/media/platform/s5p-jpeg/jpeg-core.c &pix->pixelformat, pix 1506 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat = V4L2_PIX_FMT_GREY; pix 1508 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, pix->pixelformat, pix 1520 drivers/media/platform/s5p-jpeg/jpeg-core.c (pix->pixelformat == V4L2_PIX_FMT_NV12 || pix 1521 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat == V4L2_PIX_FMT_NV21 || pix 1522 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat == V4L2_PIX_FMT_YUV420)) { pix 1523 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat = V4L2_PIX_FMT_RGB565; pix 1524 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, pix->pixelformat, pix 1538 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, f->fmt.pix.pixelformat, pix 1543 drivers/media/platform/s5p-jpeg/jpeg-core.c f->fmt.pix.pixelformat); pix 1554 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1555 drivers/media/platform/s5p-jpeg/jpeg-core.c u32 pix_fmt = f->fmt.pix.pixelformat; pix 1556 drivers/media/platform/s5p-jpeg/jpeg-core.c int w = pix->width, h = pix->height, wh_align; pix 1588 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1608 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data->fmt = s5p_jpeg_find_format(ct, pix->pixelformat, f_type); pix 1612 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data->w = pix->width; pix 1613 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data->h = pix->height; pix 1631 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data->size = pix->sizeimage; pix 1651 drivers/media/platform/s5p-jpeg/jpeg-core.c ct->crop_rect.width = pix->width; pix 1652 drivers/media/platform/s5p-jpeg/jpeg-core.c ct->crop_rect.height = pix->height; pix 1663 drivers/media/platform/s5p-jpeg/jpeg-core.c pix->pixelformat == V4L2_PIX_FMT_YUV420 && pix 390 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 396 drivers/media/platform/sh_veu.c pix->width = vfmt->frame.width; pix 397 drivers/media/platform/sh_veu.c pix->height = vfmt->frame.height; pix 398 drivers/media/platform/sh_veu.c pix->field = V4L2_FIELD_NONE; pix 399 drivers/media/platform/sh_veu.c pix->pixelformat = vfmt->fmt->fourcc; pix 400 drivers/media/platform/sh_veu.c pix->colorspace = sh_veu_4cc2cspace(pix->pixelformat); pix 401 drivers/media/platform/sh_veu.c pix->bytesperline = vfmt->bytesperline; pix 402 drivers/media/platform/sh_veu.c pix->sizeimage = vfmt->bytesperline * pix->height * pix 405 drivers/media/platform/sh_veu.c f->type, pix->sizeimage, pix->width, pix->height, pix->pixelformat); pix 424 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 431 drivers/media/platform/sh_veu.c switch (pix->field) { pix 434 drivers/media/platform/sh_veu.c pix->field = V4L2_FIELD_NONE; pix 440 drivers/media/platform/sh_veu.c v4l_bound_align_image(&pix->width, MIN_W, MAX_W, ALIGN_W, pix 441 drivers/media/platform/sh_veu.c &pix->height, MIN_H, MAX_H, 0, 0); pix 443 drivers/media/platform/sh_veu.c y_bytes_used = (pix->width * fmt->ydepth) >> 3; pix 445 drivers/media/platform/sh_veu.c if (pix->bytesperline < y_bytes_used) pix 446 drivers/media/platform/sh_veu.c pix->bytesperline = y_bytes_used; pix 447 drivers/media/platform/sh_veu.c pix->sizeimage = pix->height * pix->bytesperline * fmt->depth / fmt->ydepth; pix 449 drivers/media/platform/sh_veu.c pix->pixelformat = fmt->fourcc; pix 450 drivers/media/platform/sh_veu.c pix->colorspace = sh_veu_4cc2cspace(pix->pixelformat); pix 452 drivers/media/platform/sh_veu.c pr_debug("%s(): type: %d, size %u\n", __func__, f->type, pix->sizeimage); pix 462 drivers/media/platform/sh_veu.c pr_debug("%s(%d;%d)\n", __func__, f->type, f->fmt.pix.field); pix 479 drivers/media/platform/sh_veu.c if (sh_veu_fmt[fmt[i]].fourcc == f->fmt.pix.pixelformat) pix 537 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 559 drivers/media/platform/sh_veu.c vfmt->frame.width = pix->width; pix 560 drivers/media/platform/sh_veu.c vfmt->frame.height = pix->height; pix 561 drivers/media/platform/sh_veu.c vfmt->bytesperline = pix->bytesperline; pix 574 drivers/media/platform/sh_veu.c f->type, pix->width, pix->height, vfmt->fmt->fourcc); pix 80 drivers/media/platform/sh_vou.c struct v4l2_pix_format pix; pix 193 drivers/media/platform/sh_vou.c switch (vou_dev->pix.pixelformat) { pix 196 drivers/media/platform/sh_vou.c addr2 = addr1 + vou_dev->pix.width * vou_dev->pix.height; pix 215 drivers/media/platform/sh_vou.c switch (vou_dev->pix.pixelformat) { pix 233 drivers/media/platform/sh_vou.c sh_vou_reg_ab_write(vou_dev, VOUAIR, vou_dev->pix.width * row_coeff); pix 242 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix = &vou_dev->pix; pix 243 drivers/media/platform/sh_vou.c int bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; pix 248 drivers/media/platform/sh_vou.c return sizes[0] < pix->height * bytes_per_line ? -EINVAL : 0; pix 250 drivers/media/platform/sh_vou.c sizes[0] = pix->height * bytes_per_line; pix 257 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix = &vou_dev->pix; pix 258 drivers/media/platform/sh_vou.c unsigned bytes_per_line = vou_fmt[vou_dev->pix_idx].bpp * pix->width / 8; pix 259 drivers/media/platform/sh_vou.c unsigned size = pix->height * bytes_per_line; pix 405 drivers/media/platform/sh_vou.c fmt->fmt.pix = vou_dev->pix; pix 424 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix = &vou_dev->pix; pix 435 drivers/media/platform/sh_vou.c frame_in_height = pix->height / 2; pix 466 drivers/media/platform/sh_vou.c pix->width, frame_in_height, black_left, black_top, pix 470 drivers/media/platform/sh_vou.c sh_vou_reg_ab_write(vou_dev, VOUISR, (pix->width << 16) | frame_in_height); pix 655 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix = &fmt->fmt.pix; pix 661 drivers/media/platform/sh_vou.c pix->field = V4L2_FIELD_INTERLACED; pix 662 drivers/media/platform/sh_vou.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 663 drivers/media/platform/sh_vou.c pix->ycbcr_enc = pix->quantization = 0; pix 666 drivers/media/platform/sh_vou.c if (vou_fmt[pix_idx].pfmt == pix->pixelformat) pix 677 drivers/media/platform/sh_vou.c v4l_bound_align_image(&pix->width, pix 679 drivers/media/platform/sh_vou.c &pix->height, pix 681 drivers/media/platform/sh_vou.c pix->bytesperline = pix->width * vou_fmt[pix_idx].bpl; pix 682 drivers/media/platform/sh_vou.c pix->sizeimage = pix->height * ((pix->width * vou_fmt[pix_idx].bpp) >> 3); pix 688 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix) pix 707 drivers/media/platform/sh_vou.c if (vou_fmt[pix_idx].pfmt == pix->pixelformat) pix 710 drivers/media/platform/sh_vou.c geo.in_width = pix->width; pix 711 drivers/media/platform/sh_vou.c geo.in_height = pix->height; pix 748 drivers/media/platform/sh_vou.c pix->width = geo.in_width; pix 749 drivers/media/platform/sh_vou.c pix->height = geo.in_height; pix 752 drivers/media/platform/sh_vou.c pix->width, pix->height); pix 756 drivers/media/platform/sh_vou.c vou_dev->pix = *pix; pix 772 drivers/media/platform/sh_vou.c return sh_vou_set_fmt_vid_out(vou_dev, &fmt->fmt.pix); pix 845 drivers/media/platform/sh_vou.c vou_dev->pix.width = vou_dev->rect.width; pix 846 drivers/media/platform/sh_vou.c vou_dev->pix.height = vou_dev->rect.height; pix 847 drivers/media/platform/sh_vou.c vou_dev->pix.bytesperline = pix 848 drivers/media/platform/sh_vou.c vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpl; pix 849 drivers/media/platform/sh_vou.c vou_dev->pix.sizeimage = vou_dev->pix.height * pix 850 drivers/media/platform/sh_vou.c ((vou_dev->pix.width * vou_fmt[vou_dev->pix_idx].bpp) >> 3); pix 852 drivers/media/platform/sh_vou.c sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); pix 932 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix = &vou_dev->pix; pix 968 drivers/media/platform/sh_vou.c geo.in_width = pix->width; pix 969 drivers/media/platform/sh_vou.c geo.in_height = pix->height; pix 1005 drivers/media/platform/sh_vou.c pix->width = geo.in_width; pix 1006 drivers/media/platform/sh_vou.c pix->height = geo.in_height; pix 1116 drivers/media/platform/sh_vou.c sh_vou_set_fmt_vid_out(vou_dev, &vou_dev->pix); pix 1218 drivers/media/platform/sh_vou.c struct v4l2_pix_format *pix; pix 1247 drivers/media/platform/sh_vou.c pix = &vou_dev->pix; pix 1255 drivers/media/platform/sh_vou.c pix->width = VOU_MAX_IMAGE_WIDTH; pix 1256 drivers/media/platform/sh_vou.c pix->height = 480; pix 1257 drivers/media/platform/sh_vou.c pix->pixelformat = V4L2_PIX_FMT_NV16; pix 1258 drivers/media/platform/sh_vou.c pix->field = V4L2_FIELD_INTERLACED; pix 1259 drivers/media/platform/sh_vou.c pix->bytesperline = VOU_MAX_IMAGE_WIDTH; pix 1260 drivers/media/platform/sh_vou.c pix->sizeimage = VOU_MAX_IMAGE_WIDTH * 2 * 480; pix 1261 drivers/media/platform/sh_vou.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 720 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct v4l2_pix_format *pix; pix 728 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix = &f->fmt.pix; pix 729 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->width = frame->width; pix 730 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->height = frame->height; pix 731 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->pixelformat = frame->fmt->pixelformat; pix 732 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->field = frame->field; pix 733 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->bytesperline = frame->bytesperline; pix 734 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->sizeimage = frame->sizeimage; pix 735 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->colorspace = (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? pix 744 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 748 drivers/media/platform/sti/bdisp/bdisp-v4l2.c format = bdisp_find_fmt(pix->pixelformat); pix 751 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->pixelformat); pix 764 drivers/media/platform/sti/bdisp/bdisp-v4l2.c (pix->field != V4L2_FIELD_INTERLACED)) pix 765 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->field = V4L2_FIELD_NONE; pix 768 drivers/media/platform/sti/bdisp/bdisp-v4l2.c in_w = pix->width; pix 769 drivers/media/platform/sti/bdisp/bdisp-v4l2.c in_h = pix->height; pix 770 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l_bound_align_image(&pix->width, pix 773 drivers/media/platform/sti/bdisp/bdisp-v4l2.c &pix->height, pix 777 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if ((pix->width != in_w) || (pix->height != in_h)) pix 780 drivers/media/platform/sti/bdisp/bdisp-v4l2.c in_w, in_h, pix->width, pix->height); pix 782 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->bytesperline = (pix->width * format->bpp_plane0) / 8; pix 783 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->sizeimage = (pix->width * pix->height * format->bpp) / 8; pix 786 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->colorspace = bdisp_dflt_fmt.colorspace; pix 796 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct v4l2_pix_format *pix; pix 814 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix = &f->fmt.pix; pix 815 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->fmt = bdisp_find_fmt(pix->pixelformat); pix 818 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->pixelformat); pix 822 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->width = pix->width; pix 823 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->height = pix->height; pix 824 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->bytesperline = pix->bytesperline; pix 825 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->sizeimage = pix->sizeimage; pix 826 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->field = pix->field; pix 828 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame->colorspace = pix->colorspace; pix 429 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 439 drivers/media/platform/sti/delta/delta-v4l2.c pix->pixelformat = streaminfo->streamformat; pix 440 drivers/media/platform/sti/delta/delta-v4l2.c pix->width = streaminfo->width; pix 441 drivers/media/platform/sti/delta/delta-v4l2.c pix->height = streaminfo->height; pix 442 drivers/media/platform/sti/delta/delta-v4l2.c pix->field = streaminfo->field; pix 443 drivers/media/platform/sti/delta/delta-v4l2.c pix->bytesperline = 0; pix 444 drivers/media/platform/sti/delta/delta-v4l2.c pix->sizeimage = ctx->max_au_size; pix 445 drivers/media/platform/sti/delta/delta-v4l2.c pix->colorspace = streaminfo->colorspace; pix 446 drivers/media/platform/sti/delta/delta-v4l2.c pix->xfer_func = streaminfo->xfer_func; pix 447 drivers/media/platform/sti/delta/delta-v4l2.c pix->ycbcr_enc = streaminfo->ycbcr_enc; pix 448 drivers/media/platform/sti/delta/delta-v4l2.c pix->quantization = streaminfo->quantization; pix 457 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 468 drivers/media/platform/sti/delta/delta-v4l2.c pix->pixelformat = frameinfo->pixelformat; pix 469 drivers/media/platform/sti/delta/delta-v4l2.c pix->width = frameinfo->aligned_width; pix 470 drivers/media/platform/sti/delta/delta-v4l2.c pix->height = frameinfo->aligned_height; pix 471 drivers/media/platform/sti/delta/delta-v4l2.c pix->field = frameinfo->field; pix 472 drivers/media/platform/sti/delta/delta-v4l2.c pix->bytesperline = frame_stride(frameinfo->aligned_width, pix 474 drivers/media/platform/sti/delta/delta-v4l2.c pix->sizeimage = frameinfo->size; pix 483 drivers/media/platform/sti/delta/delta-v4l2.c pix->colorspace = frameinfo->colorspace; pix 484 drivers/media/platform/sti/delta/delta-v4l2.c pix->xfer_func = frameinfo->xfer_func; pix 485 drivers/media/platform/sti/delta/delta-v4l2.c pix->ycbcr_enc = frameinfo->ycbcr_enc; pix 486 drivers/media/platform/sti/delta/delta-v4l2.c pix->quantization = frameinfo->quantization; pix 496 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 497 drivers/media/platform/sti/delta/delta-v4l2.c u32 streamformat = pix->pixelformat; pix 506 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, (char *)&pix->pixelformat); pix 511 drivers/media/platform/sti/delta/delta-v4l2.c width = pix->width; pix 512 drivers/media/platform/sti/delta/delta-v4l2.c height = pix->height; pix 514 drivers/media/platform/sti/delta/delta-v4l2.c (&pix->width, pix 518 drivers/media/platform/sti/delta/delta-v4l2.c &pix->height, pix 523 drivers/media/platform/sti/delta/delta-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 527 drivers/media/platform/sti/delta/delta-v4l2.c pix->width, pix->height); pix 529 drivers/media/platform/sti/delta/delta-v4l2.c au_size = estimated_au_size(pix->width, pix->height); pix 530 drivers/media/platform/sti/delta/delta-v4l2.c if (pix->sizeimage < au_size) { pix 533 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, pix->sizeimage, au_size); pix 534 drivers/media/platform/sti/delta/delta-v4l2.c pix->sizeimage = au_size; pix 537 drivers/media/platform/sti/delta/delta-v4l2.c pix->bytesperline = 0; pix 539 drivers/media/platform/sti/delta/delta-v4l2.c if (pix->field == V4L2_FIELD_ANY) pix 540 drivers/media/platform/sti/delta/delta-v4l2.c pix->field = V4L2_FIELD_NONE; pix 550 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 551 drivers/media/platform/sti/delta/delta-v4l2.c u32 pixelformat = pix->pixelformat; pix 565 drivers/media/platform/sti/delta/delta-v4l2.c width = pix->width; pix 566 drivers/media/platform/sti/delta/delta-v4l2.c height = pix->height; pix 567 drivers/media/platform/sti/delta/delta-v4l2.c v4l_bound_align_image(&pix->width, pix 570 drivers/media/platform/sti/delta/delta-v4l2.c &pix->height, pix 574 drivers/media/platform/sti/delta/delta-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 577 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, width, height, pix->width, pix->height); pix 580 drivers/media/platform/sti/delta/delta-v4l2.c width = ALIGN(pix->width, DELTA_WIDTH_ALIGNMENT); pix 581 drivers/media/platform/sti/delta/delta-v4l2.c height = ALIGN(pix->height, DELTA_HEIGHT_ALIGNMENT); pix 582 drivers/media/platform/sti/delta/delta-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 585 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, width, height, pix->width, pix->height); pix 587 drivers/media/platform/sti/delta/delta-v4l2.c if (!pix->colorspace) { pix 588 drivers/media/platform/sti/delta/delta-v4l2.c pix->colorspace = V4L2_COLORSPACE_REC709; pix 589 drivers/media/platform/sti/delta/delta-v4l2.c pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; pix 590 drivers/media/platform/sti/delta/delta-v4l2.c pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; pix 591 drivers/media/platform/sti/delta/delta-v4l2.c pix->quantization = V4L2_QUANTIZATION_DEFAULT; pix 594 drivers/media/platform/sti/delta/delta-v4l2.c pix->width = width; pix 595 drivers/media/platform/sti/delta/delta-v4l2.c pix->height = height; pix 596 drivers/media/platform/sti/delta/delta-v4l2.c pix->bytesperline = frame_stride(pix->width, pixelformat); pix 597 drivers/media/platform/sti/delta/delta-v4l2.c pix->sizeimage = frame_size(pix->width, pix->height, pixelformat); pix 599 drivers/media/platform/sti/delta/delta-v4l2.c if (pix->field == V4L2_FIELD_ANY) pix 600 drivers/media/platform/sti/delta/delta-v4l2.c pix->field = V4L2_FIELD_NONE; pix 611 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 618 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, (char *)&pix->pixelformat); pix 629 drivers/media/platform/sti/delta/delta-v4l2.c ctx->max_au_size = pix->sizeimage; pix 630 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.width = pix->width; pix 631 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.height = pix->height; pix 632 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.streamformat = pix->pixelformat; pix 633 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.colorspace = pix->colorspace; pix 634 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.xfer_func = pix->xfer_func; pix 635 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.ycbcr_enc = pix->ycbcr_enc; pix 636 drivers/media/platform/sti/delta/delta-v4l2.c ctx->streaminfo.quantization = pix->quantization; pix 647 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 671 drivers/media/platform/sti/delta/delta-v4l2.c ctx->name, (char *)&pix->pixelformat); pix 680 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.pixelformat = pix->pixelformat; pix 681 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.width = pix->width; pix 682 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.height = pix->height; pix 683 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.aligned_width = pix->width; pix 684 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.aligned_height = pix->height; pix 685 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.size = pix->sizeimage; pix 686 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.field = pix->field; pix 687 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.colorspace = pix->colorspace; pix 688 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.xfer_func = pix->xfer_func; pix 689 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.ycbcr_enc = pix->ycbcr_enc; pix 690 drivers/media/platform/sti/delta/delta-v4l2.c frameinfo.quantization = pix->quantization; pix 707 drivers/media/platform/sti/delta/delta-v4l2.c pix->pixelformat = frameinfo.pixelformat; pix 708 drivers/media/platform/sti/delta/delta-v4l2.c pix->width = frameinfo.aligned_width; pix 709 drivers/media/platform/sti/delta/delta-v4l2.c pix->height = frameinfo.aligned_height; pix 710 drivers/media/platform/sti/delta/delta-v4l2.c pix->bytesperline = frame_stride(pix->width, pix->pixelformat); pix 711 drivers/media/platform/sti/delta/delta-v4l2.c pix->sizeimage = frameinfo.size; pix 712 drivers/media/platform/sti/delta/delta-v4l2.c pix->field = frameinfo.field; pix 713 drivers/media/platform/sti/delta/delta-v4l2.c pix->colorspace = frameinfo.colorspace; pix 714 drivers/media/platform/sti/delta/delta-v4l2.c pix->xfer_func = frameinfo.xfer_func; pix 715 drivers/media/platform/sti/delta/delta-v4l2.c pix->ycbcr_enc = frameinfo.ycbcr_enc; pix 716 drivers/media/platform/sti/delta/delta-v4l2.c pix->quantization = frameinfo.quantization; pix 301 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.width = streaminfo->width; pix 302 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.height = streaminfo->height; pix 303 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 304 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.colorspace = ctx->colorspace; pix 305 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 306 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 307 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.quantization = ctx->quantization; pix 308 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.pixelformat = streaminfo->streamformat; pix 309 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.bytesperline = 0; pix 310 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.sizeimage = ctx->max_stream_size; pix 320 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.width = frameinfo->width; pix 321 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.height = frameinfo->height; pix 322 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 323 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.colorspace = ctx->colorspace; pix 324 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 325 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 326 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.quantization = ctx->quantization; pix 327 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.pixelformat = frameinfo->pixelformat; pix 328 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.bytesperline = frame_stride(frameinfo->aligned_width, pix 330 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.sizeimage = frameinfo->size; pix 340 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 341 drivers/media/platform/sti/hva/hva-v4l2.c u32 streamformat = pix->pixelformat; pix 350 drivers/media/platform/sti/hva/hva-v4l2.c ctx->name, (char *)&pix->pixelformat); pix 354 drivers/media/platform/sti/hva/hva-v4l2.c width = pix->width; pix 355 drivers/media/platform/sti/hva/hva-v4l2.c height = pix->height; pix 361 drivers/media/platform/sti/hva/hva-v4l2.c pix->width = ctx->frameinfo.width; pix 362 drivers/media/platform/sti/hva/hva-v4l2.c pix->height = ctx->frameinfo.height; pix 363 drivers/media/platform/sti/hva/hva-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 367 drivers/media/platform/sti/hva/hva-v4l2.c pix->width, pix->height); pix 370 drivers/media/platform/sti/hva/hva-v4l2.c v4l_bound_align_image(&pix->width, pix 373 drivers/media/platform/sti/hva/hva-v4l2.c &pix->height, pix 378 drivers/media/platform/sti/hva/hva-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 382 drivers/media/platform/sti/hva/hva-v4l2.c pix->width, pix->height); pix 385 drivers/media/platform/sti/hva/hva-v4l2.c stream_size = estimated_stream_size(pix->width, pix->height); pix 386 drivers/media/platform/sti/hva/hva-v4l2.c if (pix->sizeimage < stream_size) pix 387 drivers/media/platform/sti/hva/hva-v4l2.c pix->sizeimage = stream_size; pix 389 drivers/media/platform/sti/hva/hva-v4l2.c pix->bytesperline = 0; pix 390 drivers/media/platform/sti/hva/hva-v4l2.c pix->colorspace = ctx->colorspace; pix 391 drivers/media/platform/sti/hva/hva-v4l2.c pix->xfer_func = ctx->xfer_func; pix 392 drivers/media/platform/sti/hva/hva-v4l2.c pix->ycbcr_enc = ctx->ycbcr_enc; pix 393 drivers/media/platform/sti/hva/hva-v4l2.c pix->quantization = ctx->quantization; pix 394 drivers/media/platform/sti/hva/hva-v4l2.c pix->field = V4L2_FIELD_NONE; pix 404 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 405 drivers/media/platform/sti/hva/hva-v4l2.c u32 pixelformat = pix->pixelformat; pix 418 drivers/media/platform/sti/hva/hva-v4l2.c width = pix->width; pix 419 drivers/media/platform/sti/hva/hva-v4l2.c height = pix->height; pix 420 drivers/media/platform/sti/hva/hva-v4l2.c v4l_bound_align_image(&pix->width, pix 423 drivers/media/platform/sti/hva/hva-v4l2.c &pix->height, pix 428 drivers/media/platform/sti/hva/hva-v4l2.c if ((pix->width != width) || (pix->height != height)) pix 431 drivers/media/platform/sti/hva/hva-v4l2.c ctx->name, width, height, pix->width, pix->height); pix 433 drivers/media/platform/sti/hva/hva-v4l2.c width = ALIGN(pix->width, HVA_WIDTH_ALIGNMENT); pix 434 drivers/media/platform/sti/hva/hva-v4l2.c height = ALIGN(pix->height, HVA_HEIGHT_ALIGNMENT); pix 436 drivers/media/platform/sti/hva/hva-v4l2.c if (!pix->colorspace) { pix 437 drivers/media/platform/sti/hva/hva-v4l2.c pix->colorspace = V4L2_COLORSPACE_REC709; pix 438 drivers/media/platform/sti/hva/hva-v4l2.c pix->xfer_func = V4L2_XFER_FUNC_DEFAULT; pix 439 drivers/media/platform/sti/hva/hva-v4l2.c pix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; pix 440 drivers/media/platform/sti/hva/hva-v4l2.c pix->quantization = V4L2_QUANTIZATION_DEFAULT; pix 443 drivers/media/platform/sti/hva/hva-v4l2.c pix->bytesperline = frame_stride(width, pixelformat); pix 444 drivers/media/platform/sti/hva/hva-v4l2.c pix->sizeimage = frame_size(width, height, pixelformat); pix 445 drivers/media/platform/sti/hva/hva-v4l2.c pix->field = V4L2_FIELD_NONE; pix 460 drivers/media/platform/sti/hva/hva-v4l2.c ctx->name, (char *)&f->fmt.pix.pixelformat); pix 471 drivers/media/platform/sti/hva/hva-v4l2.c ctx->max_stream_size = f->fmt.pix.sizeimage; pix 472 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.width = f->fmt.pix.width; pix 473 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.height = f->fmt.pix.height; pix 474 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.streamformat = f->fmt.pix.pixelformat; pix 484 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 491 drivers/media/platform/sti/hva/hva-v4l2.c ctx->name, (char *)&pix->pixelformat); pix 501 drivers/media/platform/sti/hva/hva-v4l2.c ctx->colorspace = pix->colorspace; pix 502 drivers/media/platform/sti/hva/hva-v4l2.c ctx->xfer_func = pix->xfer_func; pix 503 drivers/media/platform/sti/hva/hva-v4l2.c ctx->ycbcr_enc = pix->ycbcr_enc; pix 504 drivers/media/platform/sti/hva/hva-v4l2.c ctx->quantization = pix->quantization; pix 506 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.aligned_width = ALIGN(pix->width, HVA_WIDTH_ALIGNMENT); pix 507 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.aligned_height = ALIGN(pix->height, pix 509 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.size = pix->sizeimage; pix 510 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.pixelformat = pix->pixelformat; pix 511 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.width = pix->width; pix 512 drivers/media/platform/sti/hva/hva-v4l2.c ctx->frameinfo.height = pix->height; pix 501 drivers/media/platform/stm32/stm32-dcmi.c size = dcmi->fmt.fmt.pix.sizeimage; pix 533 drivers/media/platform/stm32/stm32-dcmi.c size = dcmi->fmt.fmt.pix.sizeimage; pix 939 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix, pix 948 drivers/media/platform/stm32/stm32-dcmi.c int w_err = (fsize->width - pix->width); pix 949 drivers/media/platform/stm32/stm32-dcmi.c int h_err = (fsize->height - pix->height); pix 969 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 977 drivers/media/platform/stm32/stm32-dcmi.c sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); pix 983 drivers/media/platform/stm32/stm32-dcmi.c pix->pixelformat = sd_fmt->fourcc; pix 987 drivers/media/platform/stm32/stm32-dcmi.c pix->width = clamp(pix->width, MIN_WIDTH, MAX_WIDTH); pix 988 drivers/media/platform/stm32/stm32-dcmi.c pix->height = clamp(pix->height, MIN_HEIGHT, MAX_HEIGHT); pix 991 drivers/media/platform/stm32/stm32-dcmi.c do_crop = dcmi->do_crop && (pix->pixelformat != V4L2_PIX_FMT_JPEG); pix 999 drivers/media/platform/stm32/stm32-dcmi.c __find_outer_frame_size(dcmi, pix, &outer_sd_fsize); pix 1000 drivers/media/platform/stm32/stm32-dcmi.c pix->width = outer_sd_fsize.width; pix 1001 drivers/media/platform/stm32/stm32-dcmi.c pix->height = outer_sd_fsize.height; pix 1004 drivers/media/platform/stm32/stm32-dcmi.c v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); pix 1011 drivers/media/platform/stm32/stm32-dcmi.c v4l2_fill_pix_format(pix, &format.format); pix 1014 drivers/media/platform/stm32/stm32-dcmi.c sd_fsize.width = pix->width; pix 1015 drivers/media/platform/stm32/stm32-dcmi.c sd_fsize.height = pix->height; pix 1027 drivers/media/platform/stm32/stm32-dcmi.c max_rect.width = pix->width; pix 1028 drivers/media/platform/stm32/stm32-dcmi.c max_rect.height = pix->height; pix 1030 drivers/media/platform/stm32/stm32-dcmi.c c.top = clamp_t(s32, c.top, 0, pix->height - c.height); pix 1031 drivers/media/platform/stm32/stm32-dcmi.c c.left = clamp_t(s32, c.left, 0, pix->width - c.width); pix 1035 drivers/media/platform/stm32/stm32-dcmi.c pix->width = dcmi->crop.width; pix 1036 drivers/media/platform/stm32/stm32-dcmi.c pix->height = dcmi->crop.height; pix 1039 drivers/media/platform/stm32/stm32-dcmi.c pix->field = V4L2_FIELD_NONE; pix 1040 drivers/media/platform/stm32/stm32-dcmi.c pix->bytesperline = pix->width * sd_fmt->bpp; pix 1041 drivers/media/platform/stm32/stm32-dcmi.c pix->sizeimage = pix->bytesperline * pix->height; pix 1059 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 1073 drivers/media/platform/stm32/stm32-dcmi.c if (pix->pixelformat == V4L2_PIX_FMT_JPEG) pix 1077 drivers/media/platform/stm32/stm32-dcmi.c v4l2_fill_mbus_format(mf, pix, pix 1089 drivers/media/platform/stm32/stm32-dcmi.c (char *)&pix->pixelformat, pix 1090 drivers/media/platform/stm32/stm32-dcmi.c pix->width, pix->height); pix 1131 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix) pix 1142 drivers/media/platform/stm32/stm32-dcmi.c v4l2_fill_pix_format(pix, &fmt.format); pix 1148 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix) pix 1157 drivers/media/platform/stm32/stm32-dcmi.c sd_fmt = find_format_by_fourcc(dcmi, pix->pixelformat); pix 1163 drivers/media/platform/stm32/stm32-dcmi.c pix->pixelformat = sd_fmt->fourcc; pix 1166 drivers/media/platform/stm32/stm32-dcmi.c v4l2_fill_mbus_format(&format.format, pix, sd_fmt->mbus_code); pix 1183 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format pix; pix 1227 drivers/media/platform/stm32/stm32-dcmi.c ret = dcmi_get_sensor_format(dcmi, &pix); pix 1233 drivers/media/platform/stm32/stm32-dcmi.c r->width = pix.width; pix 1234 drivers/media/platform/stm32/stm32-dcmi.c r->height = pix.height; pix 1258 drivers/media/platform/stm32/stm32-dcmi.c s->r.width = dcmi->fmt.fmt.pix.width; pix 1259 drivers/media/platform/stm32/stm32-dcmi.c s->r.height = dcmi->fmt.fmt.pix.height; pix 1275 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format pix; pix 1282 drivers/media/platform/stm32/stm32-dcmi.c pix.pixelformat = dcmi->fmt.fmt.pix.pixelformat; pix 1283 drivers/media/platform/stm32/stm32-dcmi.c pix.width = dcmi->sd_bounds.width; pix 1284 drivers/media/platform/stm32/stm32-dcmi.c pix.height = dcmi->sd_bounds.height; pix 1285 drivers/media/platform/stm32/stm32-dcmi.c dcmi_set_sensor_format(dcmi, &pix); pix 1294 drivers/media/platform/stm32/stm32-dcmi.c max_rect.width = pix.width; pix 1295 drivers/media/platform/stm32/stm32-dcmi.c max_rect.height = pix.height; pix 1297 drivers/media/platform/stm32/stm32-dcmi.c r.top = clamp_t(s32, r.top, 0, pix.height - r.height); pix 1298 drivers/media/platform/stm32/stm32-dcmi.c r.left = clamp_t(s32, r.left, 0, pix.width - r.width); pix 1309 drivers/media/platform/stm32/stm32-dcmi.c pix.width, pix.height); pix 1539 drivers/media/platform/stm32/stm32-dcmi.c .fmt.pix = { pix 96 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_pix_format_mplane *pix) pix 102 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c _fmt = sun4i_csi_find_format(&pix->pixelformat, NULL); pix 106 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->field = V4L2_FIELD_NONE; pix 107 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 108 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); pix 109 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); pix 110 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, pix 111 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->ycbcr_enc); pix 113 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->num_planes = _fmt->num_planes; pix 114 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->pixelformat = _fmt->fourcc; pix 116 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c memset(pix->reserved, 0, sizeof(pix->reserved)); pix 119 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c width = ALIGN(pix->width, _fmt->hsub); pix 120 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c height = ALIGN(pix->height, _fmt->vsub); pix 123 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->width = clamp(width, _fmt->hsub, CSI_MAX_WIDTH); pix 124 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->height = clamp(height, _fmt->vsub, CSI_MAX_HEIGHT); pix 131 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c bpl = pix->width / hsub * _fmt->bpp[i] / 8; pix 132 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->plane_fmt[i].bytesperline = bpl; pix 133 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c pix->plane_fmt[i].sizeimage = bpl * pix->height / vsub; pix 134 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c memset(pix->plane_fmt[i].reserved, 0, pix 135 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c sizeof(pix->plane_fmt[i].reserved)); pix 98 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c unsigned int size = video->fmt.fmt.pix.sizeimage; pix 115 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c unsigned long size = video->fmt.fmt.pix.sizeimage; pix 127 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vbuf->field = video->fmt.fmt.pix.field; pix 157 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c config.pixelformat = video->fmt.fmt.pix.pixelformat; pix 159 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c config.field = video->fmt.fmt.pix.field; pix 160 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c config.width = video->fmt.fmt.pix.width; pix 161 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c config.height = video->fmt.fmt.pix.height; pix 353 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; pix 568 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video->fmt.fmt.pix.pixelformat, pix 572 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video->fmt.fmt.pix.pixelformat, pix 577 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c if (source_fmt.format.width != video->fmt.fmt.pix.width || pix 578 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c source_fmt.format.height != video->fmt.fmt.pix.height) { pix 581 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video->fmt.fmt.pix.width, video->fmt.fmt.pix.height, pix 621 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c fmt.fmt.pix.pixelformat = supported_pixformats[0]; pix 622 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c fmt.fmt.pix.width = 1280; pix 623 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c fmt.fmt.pix.height = 720; pix 624 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c fmt.fmt.pix.field = V4L2_FIELD_NONE; pix 985 drivers/media/platform/ti-vpe/cal.c v4l_bound_align_image(&f->fmt.pix.width, 48, MAX_WIDTH, 2, pix 986 drivers/media/platform/ti-vpe/cal.c &f->fmt.pix.height, 32, MAX_HEIGHT, 0, 0); pix 987 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline = bytes_per_line(f->fmt.pix.width, pix 989 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.sizeimage = f->fmt.pix.height * pix 990 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline; pix 993 drivers/media/platform/ti-vpe/cal.c __func__, fourcc_to_str(f->fmt.pix.pixelformat), pix 994 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.width, f->fmt.pix.height, pix 995 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); pix 1018 drivers/media/platform/ti-vpe/cal.c fmt = find_format_by_pix(ctx, f->fmt.pix.pixelformat); pix 1021 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.pixelformat); pix 1025 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.pixelformat = fmt->fourcc; pix 1028 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.field = ctx->v_fmt.fmt.pix.field; pix 1042 drivers/media/platform/ti-vpe/cal.c if ((f->fmt.pix.width == fse.max_width) && pix 1043 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height == fse.max_height)) { pix 1046 drivers/media/platform/ti-vpe/cal.c } else if ((f->fmt.pix.width >= fse.min_width) && pix 1047 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.width <= fse.max_width) && pix 1048 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height >= fse.min_height) && pix 1049 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height <= fse.max_height)) { pix 1057 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.width = ctx->v_fmt.fmt.pix.width; pix 1058 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.height = ctx->v_fmt.fmt.pix.height; pix 1065 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.colorspace = ctx->v_fmt.fmt.pix.colorspace; pix 1087 drivers/media/platform/ti-vpe/cal.c fmt = find_format_by_pix(ctx, f->fmt.pix.pixelformat); pix 1089 drivers/media/platform/ti-vpe/cal.c v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, fmt->code); pix 1103 drivers/media/platform/ti-vpe/cal.c v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); pix 1105 drivers/media/platform/ti-vpe/cal.c ctx->v_fmt.fmt.pix.pixelformat = fmt->fourcc; pix 1216 drivers/media/platform/ti-vpe/cal.c unsigned size = ctx->v_fmt.fmt.pix.sizeimage; pix 1245 drivers/media/platform/ti-vpe/cal.c size = ctx->v_fmt.fmt.pix.sizeimage; pix 1309 drivers/media/platform/ti-vpe/cal.c cal_wr_dma_config(ctx, ctx->v_fmt.fmt.pix.bytesperline); pix 1505 drivers/media/platform/ti-vpe/cal.c v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt); pix 1507 drivers/media/platform/ti-vpe/cal.c ctx->v_fmt.fmt.pix.pixelformat = fmt->fourcc; pix 357 drivers/media/platform/ti-vpe/vpe.c return __find_format(f->fmt.pix.pixelformat); pix 1535 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 1547 drivers/media/platform/ti-vpe/vpe.c pix->width = q_data->width; pix 1548 drivers/media/platform/ti-vpe/vpe.c pix->height = q_data->height; pix 1549 drivers/media/platform/ti-vpe/vpe.c pix->pixelformat = q_data->fmt->fourcc; pix 1550 drivers/media/platform/ti-vpe/vpe.c pix->field = q_data->field; pix 1553 drivers/media/platform/ti-vpe/vpe.c pix->colorspace = q_data->colorspace; pix 1560 drivers/media/platform/ti-vpe/vpe.c pix->colorspace = s_q_data->colorspace; pix 1563 drivers/media/platform/ti-vpe/vpe.c pix->num_planes = q_data->nplanes; pix 1565 drivers/media/platform/ti-vpe/vpe.c for (i = 0; i < pix->num_planes; i++) { pix 1566 drivers/media/platform/ti-vpe/vpe.c pix->plane_fmt[i].bytesperline = q_data->bytesperline[i]; pix 1567 drivers/media/platform/ti-vpe/vpe.c pix->plane_fmt[i].sizeimage = q_data->sizeimage[i]; pix 1576 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 1584 drivers/media/platform/ti-vpe/vpe.c pix->pixelformat); pix 1588 drivers/media/platform/ti-vpe/vpe.c if (pix->field != V4L2_FIELD_NONE && pix->field != V4L2_FIELD_ALTERNATE pix 1589 drivers/media/platform/ti-vpe/vpe.c && pix->field != V4L2_FIELD_SEQ_TB) pix 1590 drivers/media/platform/ti-vpe/vpe.c pix->field = V4L2_FIELD_NONE; pix 1628 drivers/media/platform/ti-vpe/vpe.c v4l_bound_align_image(&pix->width, MIN_W, MAX_W, w_align, pix 1629 drivers/media/platform/ti-vpe/vpe.c &pix->height, MIN_H, MAX_H, H_ALIGN, pix 1632 drivers/media/platform/ti-vpe/vpe.c if (!pix->num_planes || pix->num_planes > 2) pix 1633 drivers/media/platform/ti-vpe/vpe.c pix->num_planes = fmt->coplanar ? 2 : 1; pix 1634 drivers/media/platform/ti-vpe/vpe.c else if (pix->num_planes > 1 && !fmt->coplanar) pix 1635 drivers/media/platform/ti-vpe/vpe.c pix->num_planes = 1; pix 1637 drivers/media/platform/ti-vpe/vpe.c pix->pixelformat = fmt->fourcc; pix 1643 drivers/media/platform/ti-vpe/vpe.c if (pix->field == V4L2_FIELD_SEQ_TB) pix 1644 drivers/media/platform/ti-vpe/vpe.c height = pix->height / 2; pix 1646 drivers/media/platform/ti-vpe/vpe.c height = pix->height; pix 1648 drivers/media/platform/ti-vpe/vpe.c if (!pix->colorspace) { pix 1653 drivers/media/platform/ti-vpe/vpe.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 1656 drivers/media/platform/ti-vpe/vpe.c pix->colorspace = V4L2_COLORSPACE_REC709; pix 1658 drivers/media/platform/ti-vpe/vpe.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1662 drivers/media/platform/ti-vpe/vpe.c memset(pix->reserved, 0, sizeof(pix->reserved)); pix 1663 drivers/media/platform/ti-vpe/vpe.c for (i = 0; i < pix->num_planes; i++) { pix 1664 drivers/media/platform/ti-vpe/vpe.c plane_fmt = &pix->plane_fmt[i]; pix 1667 drivers/media/platform/ti-vpe/vpe.c stride = (pix->width * fmt->vpdma_fmt[VPE_LUMA]->depth) >> 3; pix 1679 drivers/media/platform/ti-vpe/vpe.c plane_fmt->sizeimage = pix->height * pix 1682 drivers/media/platform/ti-vpe/vpe.c if (pix->num_planes == 1 && fmt->coplanar) pix 1683 drivers/media/platform/ti-vpe/vpe.c plane_fmt->sizeimage += pix->height * pix 1688 drivers/media/platform/ti-vpe/vpe.c plane_fmt->sizeimage = (pix->height * pix 1711 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; pix 1731 drivers/media/platform/ti-vpe/vpe.c q_data->width = pix->width; pix 1732 drivers/media/platform/ti-vpe/vpe.c q_data->height = pix->height; pix 1733 drivers/media/platform/ti-vpe/vpe.c q_data->colorspace = pix->colorspace; pix 1734 drivers/media/platform/ti-vpe/vpe.c q_data->field = pix->field; pix 1735 drivers/media/platform/ti-vpe/vpe.c q_data->nplanes = pix->num_planes; pix 1737 drivers/media/platform/ti-vpe/vpe.c for (i = 0; i < pix->num_planes; i++) { pix 1738 drivers/media/platform/ti-vpe/vpe.c plane_fmt = &pix->plane_fmt[i]; pix 869 drivers/media/platform/via-camera.c return viacam_do_try_fmt(cam, &fmt->fmt.pix, &sfmt.fmt.pix); pix 878 drivers/media/platform/via-camera.c fmt->fmt.pix = cam->user_format; pix 888 drivers/media/platform/via-camera.c struct via_format *f = via_find_format(fmt->fmt.pix.pixelformat); pix 900 drivers/media/platform/via-camera.c ret = viacam_do_try_fmt(cam, &fmt->fmt.pix, &sfmt.fmt.pix); pix 906 drivers/media/platform/via-camera.c cam->user_format = fmt->fmt.pix; pix 907 drivers/media/platform/via-camera.c cam->sensor_format = sfmt.fmt.pix; pix 773 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 788 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 789 drivers/media/platform/vicodec/vicodec-core.c pix->width = q_data->coded_width; pix 790 drivers/media/platform/vicodec/vicodec-core.c pix->height = q_data->coded_height; pix 791 drivers/media/platform/vicodec/vicodec-core.c pix->field = V4L2_FIELD_NONE; pix 792 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat = info->id; pix 793 drivers/media/platform/vicodec/vicodec-core.c pix->bytesperline = q_data->coded_width * pix 795 drivers/media/platform/vicodec/vicodec-core.c pix->sizeimage = q_data->sizeimage; pix 796 drivers/media/platform/vicodec/vicodec-core.c pix->colorspace = ctx->state.colorspace; pix 797 drivers/media/platform/vicodec/vicodec-core.c pix->xfer_func = ctx->state.xfer_func; pix 798 drivers/media/platform/vicodec/vicodec-core.c pix->ycbcr_enc = ctx->state.ycbcr_enc; pix 799 drivers/media/platform/vicodec/vicodec-core.c pix->quantization = ctx->state.quantization; pix 844 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 852 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 853 drivers/media/platform/vicodec/vicodec-core.c if (pix->pixelformat != V4L2_PIX_FMT_FWHT && pix 854 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat != V4L2_PIX_FMT_FWHT_STATELESS) pix 855 drivers/media/platform/vicodec/vicodec-core.c info = find_fmt(pix->pixelformat); pix 857 drivers/media/platform/vicodec/vicodec-core.c pix->width = clamp(pix->width, MIN_WIDTH, MAX_WIDTH); pix 858 drivers/media/platform/vicodec/vicodec-core.c pix->width = vic_round_dim(pix->width, info->width_div); pix 860 drivers/media/platform/vicodec/vicodec-core.c pix->height = clamp(pix->height, MIN_HEIGHT, MAX_HEIGHT); pix 861 drivers/media/platform/vicodec/vicodec-core.c pix->height = vic_round_dim(pix->height, info->height_div); pix 863 drivers/media/platform/vicodec/vicodec-core.c pix->field = V4L2_FIELD_NONE; pix 864 drivers/media/platform/vicodec/vicodec-core.c pix->bytesperline = pix 865 drivers/media/platform/vicodec/vicodec-core.c pix->width * info->bytesperline_mult; pix 866 drivers/media/platform/vicodec/vicodec-core.c pix->sizeimage = pix->width * pix->height * pix 868 drivers/media/platform/vicodec/vicodec-core.c if (pix->pixelformat == V4L2_PIX_FMT_FWHT) pix 869 drivers/media/platform/vicodec/vicodec-core.c pix->sizeimage += sizeof(struct fwht_cframe_hdr); pix 909 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 915 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 916 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat = ctx->is_enc ? V4L2_PIX_FMT_FWHT : pix 917 drivers/media/platform/vicodec/vicodec-core.c find_fmt(f->fmt.pix.pixelformat)->id; pix 918 drivers/media/platform/vicodec/vicodec-core.c pix->colorspace = ctx->state.colorspace; pix 919 drivers/media/platform/vicodec/vicodec-core.c pix->xfer_func = ctx->state.xfer_func; pix 920 drivers/media/platform/vicodec/vicodec-core.c pix->ycbcr_enc = ctx->state.ycbcr_enc; pix 921 drivers/media/platform/vicodec/vicodec-core.c pix->quantization = ctx->state.quantization; pix 946 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 952 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 954 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat = find_fmt(pix->pixelformat)->id; pix 956 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat = V4L2_PIX_FMT_FWHT_STATELESS; pix 958 drivers/media/platform/vicodec/vicodec-core.c pix->pixelformat = V4L2_PIX_FMT_FWHT; pix 959 drivers/media/platform/vicodec/vicodec-core.c if (!pix->colorspace) pix 960 drivers/media/platform/vicodec/vicodec-core.c pix->colorspace = V4L2_COLORSPACE_REC709; pix 988 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 1001 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 1005 drivers/media/platform/vicodec/vicodec-core.c q_data->info->id != pix->pixelformat || pix 1006 drivers/media/platform/vicodec/vicodec-core.c q_data->coded_width != pix->width || pix 1007 drivers/media/platform/vicodec/vicodec-core.c q_data->coded_height != pix->height; pix 1012 drivers/media/platform/vicodec/vicodec-core.c if (pix->pixelformat == V4L2_PIX_FMT_FWHT) pix 1014 drivers/media/platform/vicodec/vicodec-core.c else if (pix->pixelformat == V4L2_PIX_FMT_FWHT_STATELESS) pix 1017 drivers/media/platform/vicodec/vicodec-core.c q_data->info = find_fmt(pix->pixelformat); pix 1018 drivers/media/platform/vicodec/vicodec-core.c q_data->coded_width = pix->width; pix 1019 drivers/media/platform/vicodec/vicodec-core.c q_data->coded_height = pix->height; pix 1020 drivers/media/platform/vicodec/vicodec-core.c q_data->sizeimage = pix->sizeimage; pix 1075 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_pix_format *pix; pix 1096 drivers/media/platform/vicodec/vicodec-core.c coded_w = f->fmt.pix.width; pix 1097 drivers/media/platform/vicodec/vicodec-core.c coded_h = f->fmt.pix.height; pix 1126 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; pix 1127 drivers/media/platform/vicodec/vicodec-core.c ctx->state.colorspace = pix->colorspace; pix 1128 drivers/media/platform/vicodec/vicodec-core.c ctx->state.xfer_func = pix->xfer_func; pix 1129 drivers/media/platform/vicodec/vicodec-core.c ctx->state.ycbcr_enc = pix->ycbcr_enc; pix 1130 drivers/media/platform/vicodec/vicodec-core.c ctx->state.quantization = pix->quantization; pix 305 drivers/media/platform/vim2m.c u16 pix = le16_to_cpu(*(__le16 *)(src[i])); pix 307 drivers/media/platform/vim2m.c *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; pix 308 drivers/media/platform/vim2m.c *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; pix 309 drivers/media/platform/vim2m.c *b++ = (u8)((pix & 0x1f) << 3) | 0x07; pix 314 drivers/media/platform/vim2m.c u16 pix = be16_to_cpu(*(__be16 *)(src[i])); pix 316 drivers/media/platform/vim2m.c *r++ = (u8)(((pix & 0xf800) >> 11) << 3) | 0x07; pix 317 drivers/media/platform/vim2m.c *g++ = (u8)((((pix & 0x07e0) >> 5)) << 2) | 0x03; pix 318 drivers/media/platform/vim2m.c *b++ = (u8)((pix & 0x1f) << 3) | 0x07; pix 347 drivers/media/platform/vim2m.c u16 pix; pix 350 drivers/media/platform/vim2m.c pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) | pix 353 drivers/media/platform/vim2m.c *dst_pix = cpu_to_le16(pix); pix 360 drivers/media/platform/vim2m.c u16 pix; pix 363 drivers/media/platform/vim2m.c pix = ((*r << 8) & 0xf800) | ((*g << 3) & 0x07e0) | pix 366 drivers/media/platform/vim2m.c *dst_pix = cpu_to_be16(pix); pix 746 drivers/media/platform/vim2m.c f->fmt.pix.width = q_data->width; pix 747 drivers/media/platform/vim2m.c f->fmt.pix.height = q_data->height; pix 748 drivers/media/platform/vim2m.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 749 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; pix 750 drivers/media/platform/vim2m.c f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; pix 751 drivers/media/platform/vim2m.c f->fmt.pix.sizeimage = q_data->sizeimage; pix 752 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = ctx->colorspace; pix 753 drivers/media/platform/vim2m.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 754 drivers/media/platform/vim2m.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 755 drivers/media/platform/vim2m.c f->fmt.pix.quantization = ctx->quant; pix 779 drivers/media/platform/vim2m.c if (f->fmt.pix.height < MIN_H) pix 780 drivers/media/platform/vim2m.c f->fmt.pix.height = MIN_H; pix 781 drivers/media/platform/vim2m.c else if (f->fmt.pix.height > MAX_H) pix 782 drivers/media/platform/vim2m.c f->fmt.pix.height = MAX_H; pix 784 drivers/media/platform/vim2m.c if (f->fmt.pix.width < MIN_W) pix 785 drivers/media/platform/vim2m.c f->fmt.pix.width = MIN_W; pix 786 drivers/media/platform/vim2m.c else if (f->fmt.pix.width > MAX_W) pix 787 drivers/media/platform/vim2m.c f->fmt.pix.width = MAX_W; pix 789 drivers/media/platform/vim2m.c get_alignment(f->fmt.pix.pixelformat, &walign, &halign); pix 790 drivers/media/platform/vim2m.c f->fmt.pix.width &= ~(walign - 1); pix 791 drivers/media/platform/vim2m.c f->fmt.pix.height &= ~(halign - 1); pix 792 drivers/media/platform/vim2m.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 793 drivers/media/platform/vim2m.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 794 drivers/media/platform/vim2m.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 805 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); pix 807 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 808 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); pix 813 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat); pix 816 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = ctx->colorspace; pix 817 drivers/media/platform/vim2m.c f->fmt.pix.xfer_func = ctx->xfer_func; pix 818 drivers/media/platform/vim2m.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; pix 819 drivers/media/platform/vim2m.c f->fmt.pix.quantization = ctx->quant; pix 830 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); pix 832 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 833 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); pix 838 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat); pix 841 drivers/media/platform/vim2m.c if (!f->fmt.pix.colorspace) pix 842 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 865 drivers/media/platform/vim2m.c q_data->fmt = find_format(f->fmt.pix.pixelformat); pix 866 drivers/media/platform/vim2m.c q_data->width = f->fmt.pix.width; pix 867 drivers/media/platform/vim2m.c q_data->height = f->fmt.pix.height; pix 907 drivers/media/platform/vim2m.c ctx->colorspace = f->fmt.pix.colorspace; pix 908 drivers/media/platform/vim2m.c ctx->xfer_func = f->fmt.pix.xfer_func; pix 909 drivers/media/platform/vim2m.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 910 drivers/media/platform/vim2m.c ctx->quant = f->fmt.pix.quantization; pix 85 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix = vcap->format; pix 93 drivers/media/platform/vimc/vimc-capture.c struct v4l2_pix_format *format = &f->fmt.pix; pix 142 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.width, f->fmt.pix.height, pix 143 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.pixelformat, f->fmt.pix.colorspace, pix 144 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.quantization, f->fmt.pix.xfer_func, pix 145 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.ycbcr_enc); pix 147 drivers/media/platform/vimc/vimc-capture.c vcap->format = f->fmt.pix; pix 811 drivers/media/platform/vivid/vivid-vid-common.c const struct v4l2_pix_format *pix = &sp_fmt->fmt.pix; pix 817 drivers/media/platform/vivid/vivid-vid-common.c mp->width = pix->width; pix 818 drivers/media/platform/vivid/vivid-vid-common.c mp->height = pix->height; pix 819 drivers/media/platform/vivid/vivid-vid-common.c mp->pixelformat = pix->pixelformat; pix 820 drivers/media/platform/vivid/vivid-vid-common.c mp->field = pix->field; pix 821 drivers/media/platform/vivid/vivid-vid-common.c mp->colorspace = pix->colorspace; pix 822 drivers/media/platform/vivid/vivid-vid-common.c mp->xfer_func = pix->xfer_func; pix 824 drivers/media/platform/vivid/vivid-vid-common.c mp->ycbcr_enc = pix->ycbcr_enc; pix 825 drivers/media/platform/vivid/vivid-vid-common.c mp->quantization = pix->quantization; pix 827 drivers/media/platform/vivid/vivid-vid-common.c mp->flags = pix->flags; pix 828 drivers/media/platform/vivid/vivid-vid-common.c ppix->sizeimage = pix->sizeimage; pix 829 drivers/media/platform/vivid/vivid-vid-common.c ppix->bytesperline = pix->bytesperline; pix 839 drivers/media/platform/vivid/vivid-vid-common.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 847 drivers/media/platform/vivid/vivid-vid-common.c pix->width = mp->width; pix 848 drivers/media/platform/vivid/vivid-vid-common.c pix->height = mp->height; pix 849 drivers/media/platform/vivid/vivid-vid-common.c pix->pixelformat = mp->pixelformat; pix 850 drivers/media/platform/vivid/vivid-vid-common.c pix->field = mp->field; pix 851 drivers/media/platform/vivid/vivid-vid-common.c pix->colorspace = mp->colorspace; pix 852 drivers/media/platform/vivid/vivid-vid-common.c pix->xfer_func = mp->xfer_func; pix 854 drivers/media/platform/vivid/vivid-vid-common.c pix->ycbcr_enc = mp->ycbcr_enc; pix 855 drivers/media/platform/vivid/vivid-vid-common.c pix->quantization = mp->quantization; pix 856 drivers/media/platform/vivid/vivid-vid-common.c pix->sizeimage = ppix->sizeimage; pix 857 drivers/media/platform/vivid/vivid-vid-common.c pix->bytesperline = ppix->bytesperline; pix 858 drivers/media/platform/vivid/vivid-vid-common.c pix->flags = mp->flags; pix 87 drivers/media/platform/vsp1/vsp1_video.c struct v4l2_pix_format_mplane *pix, pix 98 drivers/media/platform/vsp1/vsp1_video.c unsigned int width = pix->width; pix 99 drivers/media/platform/vsp1/vsp1_video.c unsigned int height = pix->height; pix 108 drivers/media/platform/vsp1/vsp1_video.c if (xrgb_formats[i][0] == pix->pixelformat) { pix 109 drivers/media/platform/vsp1/vsp1_video.c pix->pixelformat = xrgb_formats[i][1]; pix 118 drivers/media/platform/vsp1/vsp1_video.c info = vsp1_get_format_info(video->vsp1, pix->pixelformat); pix 122 drivers/media/platform/vsp1/vsp1_video.c pix->pixelformat = info->fourcc; pix 123 drivers/media/platform/vsp1/vsp1_video.c pix->colorspace = V4L2_COLORSPACE_SRGB; pix 124 drivers/media/platform/vsp1/vsp1_video.c pix->field = V4L2_FIELD_NONE; pix 128 drivers/media/platform/vsp1/vsp1_video.c pix->hsv_enc = V4L2_HSV_ENC_256; pix 130 drivers/media/platform/vsp1/vsp1_video.c memset(pix->reserved, 0, sizeof(pix->reserved)); pix 137 drivers/media/platform/vsp1/vsp1_video.c pix->width = clamp(width, info->hsub, VSP1_VIDEO_MAX_WIDTH); pix 138 drivers/media/platform/vsp1/vsp1_video.c pix->height = clamp(height, info->vsub, VSP1_VIDEO_MAX_HEIGHT); pix 151 drivers/media/platform/vsp1/vsp1_video.c bpl = clamp_t(unsigned int, pix->plane_fmt[i].bytesperline, pix 152 drivers/media/platform/vsp1/vsp1_video.c pix->width / hsub * info->bpp[i] / 8, pix 155 drivers/media/platform/vsp1/vsp1_video.c pix->plane_fmt[i].bytesperline = round_up(bpl, align); pix 156 drivers/media/platform/vsp1/vsp1_video.c pix->plane_fmt[i].sizeimage = pix->plane_fmt[i].bytesperline pix 157 drivers/media/platform/vsp1/vsp1_video.c * pix->height / vsub; pix 162 drivers/media/platform/vsp1/vsp1_video.c pix->plane_fmt[2].bytesperline = pix->plane_fmt[1].bytesperline; pix 163 drivers/media/platform/vsp1/vsp1_video.c pix->plane_fmt[2].sizeimage = pix->plane_fmt[1].sizeimage; pix 166 drivers/media/platform/vsp1/vsp1_video.c pix->num_planes = info->planes; pix 530 drivers/media/platform/xilinx/xilinx-dma.c format->fmt.pix = dma->format; pix 536 drivers/media/platform/xilinx/xilinx-dma.c __xvip_dma_try_format(struct xvip_dma *dma, struct v4l2_pix_format *pix, pix 551 drivers/media/platform/xilinx/xilinx-dma.c info = xvip_get_format_by_fourcc(pix->pixelformat); pix 555 drivers/media/platform/xilinx/xilinx-dma.c pix->pixelformat = info->fourcc; pix 556 drivers/media/platform/xilinx/xilinx-dma.c pix->field = V4L2_FIELD_NONE; pix 565 drivers/media/platform/xilinx/xilinx-dma.c width = rounddown(pix->width * info->bpp, align); pix 567 drivers/media/platform/xilinx/xilinx-dma.c pix->width = clamp(width, min_width, max_width) / info->bpp; pix 568 drivers/media/platform/xilinx/xilinx-dma.c pix->height = clamp(pix->height, XVIP_DMA_MIN_HEIGHT, pix 575 drivers/media/platform/xilinx/xilinx-dma.c min_bpl = pix->width * info->bpp; pix 577 drivers/media/platform/xilinx/xilinx-dma.c bpl = rounddown(pix->bytesperline, dma->align); pix 579 drivers/media/platform/xilinx/xilinx-dma.c pix->bytesperline = clamp(bpl, min_bpl, max_bpl); pix 580 drivers/media/platform/xilinx/xilinx-dma.c pix->sizeimage = pix->bytesperline * pix->height; pix 592 drivers/media/platform/xilinx/xilinx-dma.c __xvip_dma_try_format(dma, &format->fmt.pix, NULL); pix 603 drivers/media/platform/xilinx/xilinx-dma.c __xvip_dma_try_format(dma, &format->fmt.pix, &info); pix 608 drivers/media/platform/xilinx/xilinx-dma.c dma->format = format->fmt.pix; pix 1135 drivers/media/usb/au0828/au0828-video.c int width = format->fmt.pix.width; pix 1136 drivers/media/usb/au0828/au0828-video.c int height = format->fmt.pix.height; pix 1140 drivers/media/usb/au0828/au0828-video.c if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_UYVY) pix 1149 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.width = width; pix 1150 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.height = height; pix 1151 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; pix 1152 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.bytesperline = width * 2; pix 1153 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.sizeimage = width * height * 2; pix 1154 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1155 drivers/media/usb/au0828/au0828-video.c format->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1222 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.width = dev->width; pix 1223 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.height = dev->height; pix 1224 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; pix 1225 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.bytesperline = dev->bytesperline; pix 1226 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.sizeimage = dev->frame_size; pix 1227 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; /* NTSC/PAL */ pix 1228 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 318 drivers/media/usb/cpia2/cpia2_v4l.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG && pix 319 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) pix 322 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 323 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.bytesperline = 0; pix 324 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.sizeimage = cam->frame_size; pix 325 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 327 drivers/media/usb/cpia2/cpia2_v4l.c switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { pix 329 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 640; pix 330 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 480; pix 333 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 352; pix 334 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 288; pix 337 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 320; pix 338 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 240; pix 341 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 288; pix 342 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 216; pix 345 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 256; pix 346 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 192; pix 349 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 224; pix 350 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 168; pix 353 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 192; pix 354 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 144; pix 358 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 176; pix 359 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 144; pix 384 drivers/media/usb/cpia2/cpia2_v4l.c cam->pixelformat = f->fmt.pix.pixelformat; pix 395 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width, f->fmt.pix.height); pix 396 drivers/media/usb/cpia2/cpia2_v4l.c if (f->fmt.pix.width != cam->width || pix 397 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height != cam->height) { pix 398 drivers/media/usb/cpia2/cpia2_v4l.c cam->width = f->fmt.pix.width; pix 399 drivers/media/usb/cpia2/cpia2_v4l.c cam->height = f->fmt.pix.height; pix 400 drivers/media/usb/cpia2/cpia2_v4l.c cam->params.roi.width = f->fmt.pix.width; pix 401 drivers/media/usb/cpia2/cpia2_v4l.c cam->params.roi.height = f->fmt.pix.height; pix 429 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = cam->width; pix 430 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = cam->height; pix 431 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.pixelformat = cam->pixelformat; pix 432 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 433 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.bytesperline = 0; pix 434 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.sizeimage = cam->frame_size; pix 435 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 1608 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1609 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.bytesperline = 0; pix 1610 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.sizeimage = mpeglines * mpeglinesize; pix 1611 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1612 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.width = dev->ts1.width; pix 1613 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.height = dev->ts1.height; pix 1614 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1628 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1629 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.bytesperline = 0; pix 1630 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.sizeimage = mpeglines * mpeglinesize; pix 1631 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1632 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 937 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.width = dev->width; pix 938 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.height = dev->height; pix 939 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat = dev->format->fourcc; pix 940 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.bytesperline = (dev->width * dev->format->depth + 7) >> 3; pix 941 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * dev->height; pix 942 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 944 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 965 drivers/media/usb/cx231xx/cx231xx-video.c unsigned int width = f->fmt.pix.width; pix 966 drivers/media/usb/cx231xx/cx231xx-video.c unsigned int height = f->fmt.pix.height; pix 971 drivers/media/usb/cx231xx/cx231xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 974 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat); pix 982 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.width = width; pix 983 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.height = height; pix 984 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat = fmt->fourcc; pix 985 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3; pix 986 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height; pix 987 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 988 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1010 drivers/media/usb/cx231xx/cx231xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 1026 drivers/media/usb/cx231xx/cx231xx-video.c dev->width = f->fmt.pix.width; pix 1027 drivers/media/usb/cx231xx/cx231xx-video.c dev->height = f->fmt.pix.height; pix 1030 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); pix 1032 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); pix 999 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.width = cxdev->width; pix 1000 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.height = cxdev->height; pix 1001 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; pix 1002 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.field = vb2_start_streaming_called(&cxdev->videoqueue) ? pix 1004 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.bytesperline = cxdev->width * 2; pix 1005 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1006 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; pix 1030 drivers/media/usb/dvb-usb/cxusb-analog.c subfmt.format.width = f->fmt.pix.width & ~1; pix 1031 drivers/media/usb/dvb-usb/cxusb-analog.c subfmt.format.height = f->fmt.pix.height & ~1; pix 1040 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.width = subfmt.format.width; pix 1041 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.height = subfmt.format.height; pix 1042 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; pix 1043 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.field = field; pix 1044 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 1045 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; pix 1046 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1049 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->width = f->fmt.pix.width; pix 1050 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->height = f->fmt.pix.height; pix 1428 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width = v4l2->width; pix 1429 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.height = v4l2->height; pix 1430 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat = v4l2->format->fourcc; pix 1431 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.bytesperline = (v4l2->width * v4l2->format->depth + 7) >> 3; pix 1432 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * v4l2->height; pix 1433 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1437 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1439 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = v4l2->interlaced_fieldmode ? pix 1460 drivers/media/usb/em28xx/em28xx-video.c unsigned int width = f->fmt.pix.width; pix 1461 drivers/media/usb/em28xx/em28xx-video.c unsigned int height = f->fmt.pix.height; pix 1467 drivers/media/usb/em28xx/em28xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 1471 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat, fmt->fourcc); pix 1502 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width = width; pix 1503 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.height = height; pix 1504 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat = fmt->fourcc; pix 1505 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3; pix 1506 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height; pix 1507 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1509 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 1511 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = v4l2->interlaced_fieldmode ? pix 1551 drivers/media/usb/em28xx/em28xx-video.c return em28xx_set_video_format(dev, f->fmt.pix.pixelformat, pix 1552 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width, f->fmt.pix.height); pix 1588 drivers/media/usb/em28xx/em28xx-video.c f.fmt.pix.width = 720; pix 1589 drivers/media/usb/em28xx/em28xx-video.c f.fmt.pix.height = (norm & V4L2_STD_525_60) ? 480 : 576; pix 1593 drivers/media/usb/em28xx/em28xx-video.c v4l2->width = f.fmt.pix.width; pix 1594 drivers/media/usb/em28xx/em28xx-video.c v4l2->height = f.fmt.pix.height; pix 181 drivers/media/usb/go7007/go7007-v4l2.c if (fmt != NULL && !valid_pixelformat(fmt->fmt.pix.pixelformat)) pix 190 drivers/media/usb/go7007/go7007-v4l2.c if (fmt->fmt.pix.width > sensor_width) pix 192 drivers/media/usb/go7007/go7007-v4l2.c else if (fmt->fmt.pix.width < 144) pix 195 drivers/media/usb/go7007/go7007-v4l2.c width = fmt->fmt.pix.width & ~0x0f; pix 197 drivers/media/usb/go7007/go7007-v4l2.c if (fmt->fmt.pix.height > sensor_height) pix 199 drivers/media/usb/go7007/go7007-v4l2.c else if (fmt->fmt.pix.height < 96) pix 202 drivers/media/usb/go7007/go7007-v4l2.c height = fmt->fmt.pix.height & ~0x0f; pix 204 drivers/media/usb/go7007/go7007-v4l2.c width = fmt->fmt.pix.width; pix 221 drivers/media/usb/go7007/go7007-v4l2.c u32 pixelformat = fmt->fmt.pix.pixelformat; pix 225 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.width = width; pix 226 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.height = height; pix 227 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.pixelformat = pixelformat; pix 228 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 229 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.bytesperline = 0; pix 230 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.sizeimage = GO7007_BUF_SIZE; pix 231 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 238 drivers/media/usb/go7007/go7007-v4l2.c go->format = fmt->fmt.pix.pixelformat; pix 250 drivers/media/usb/go7007/go7007-v4l2.c format.format.width = fmt ? fmt->fmt.pix.width : width; pix 313 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.width = go->width; pix 314 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.height = go->height; pix 315 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.pixelformat = go->format; pix 316 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 317 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.bytesperline = 0; pix 318 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.sizeimage = GO7007_BUF_SIZE; pix 319 drivers/media/usb/go7007/go7007-v4l2.c fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1034 drivers/media/usb/gspca/gspca.c u32 priv = fmt->fmt.pix.priv; pix 1036 drivers/media/usb/gspca/gspca.c fmt->fmt.pix = gspca_dev->pixfmt; pix 1038 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.priv = priv; pix 1047 drivers/media/usb/gspca/gspca.c w = fmt->fmt.pix.width; pix 1048 drivers/media/usb/gspca/gspca.c h = fmt->fmt.pix.height; pix 1051 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.pixelformat, w, h); pix 1054 drivers/media/usb/gspca/gspca.c mode = wxh_to_nearest_mode(gspca_dev, w, h, fmt->fmt.pix.pixelformat); pix 1058 drivers/media/usb/gspca/gspca.c != fmt->fmt.pix.pixelformat) { pix 1062 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.pixelformat); pix 1066 drivers/media/usb/gspca/gspca.c fmt->fmt.pix = gspca_dev->cam.cam_mode[mode]; pix 1069 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.width = w; pix 1070 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.height = h; pix 1080 drivers/media/usb/gspca/gspca.c u32 priv = fmt->fmt.pix.priv; pix 1085 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.priv = priv; pix 1093 drivers/media/usb/gspca/gspca.c u32 priv = fmt->fmt.pix.priv; pix 1106 drivers/media/usb/gspca/gspca.c gspca_dev->pixfmt = fmt->fmt.pix; pix 1110 drivers/media/usb/gspca/gspca.c fmt->fmt.pix.priv = priv; pix 608 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.width = clamp(fmt->fmt.pix.width, 32U, 1280U); pix 609 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.height = clamp(fmt->fmt.pix.height, 32U, 1024U); pix 611 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.width += (fmt->fmt.pix.width & 1); pix 612 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.height += (fmt->fmt.pix.height & 1); pix 614 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.bytesperline = fmt->fmt.pix.width; pix 615 drivers/media/usb/gspca/stk1135.c fmt->fmt.pix.sizeimage = fmt->fmt.pix.width * fmt->fmt.pix.height; pix 1020 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.width = vid_info.width; pix 1021 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.height = vid_info.height; pix 1023 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.width = dev->width; pix 1024 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.height = dev->height; pix 1026 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 1027 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.sizeimage = dev->bulk_in_size; pix 1028 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.bytesperline = 0; pix 1029 drivers/media/usb/hdpvr/hdpvr-video.c if (f->fmt.pix.width == 720) { pix 1031 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 1032 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 1035 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 1036 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 78 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c .pix = { pix 403 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c vf->fmt.pix.width = val; pix 408 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c vf->fmt.pix.height = val; pix 418 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c int h = vf->fmt.pix.height; pix 419 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c int w = vf->fmt.pix.width; pix 445 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c vf->fmt.pix.width = w; pix 446 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c vf->fmt.pix.height = h; pix 461 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_ctrl_set_value(hcp, vf->fmt.pix.width); pix 462 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pvr2_ctrl_set_value(vcp, vf->fmt.pix.height); pix 389 drivers/media/usb/pwc/pwc-v4l.c memset(&f->fmt.pix, 0, sizeof(struct v4l2_pix_format)); pix 390 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width = width; pix 391 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.height = height; pix 392 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 393 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = pixfmt; pix 394 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.bytesperline = f->fmt.pix.width; pix 395 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.width * 3 / 2; pix 396 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 398 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width, pix 399 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.height, pix 400 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.bytesperline, pix 401 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.sizeimage, pix 402 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat)&255, pix 403 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>8)&255, pix 404 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>16)&255, pix 405 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>24)&255); pix 418 drivers/media/usb/pwc/pwc-v4l.c switch (f->fmt.pix.pixelformat) { pix 424 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; pix 430 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; pix 435 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; pix 438 drivers/media/usb/pwc/pwc-v4l.c size = pwc_get_size(pdev, f->fmt.pix.width, f->fmt.pix.height); pix 442 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat); pix 461 drivers/media/usb/pwc/pwc-v4l.c pixelformat = f->fmt.pix.pixelformat; pix 464 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width, f->fmt.pix.height, pdev->vframes, pix 470 drivers/media/usb/pwc/pwc-v4l.c ret = pwc_set_video_mode(pdev, f->fmt.pix.width, f->fmt.pix.height, pix 743 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = vc->width; pix 744 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = vc->height; pix 745 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= pix 747 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 749 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = V4L2_FIELD_TOP; pix 750 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.pixelformat = vc->fmt->fourcc; pix 751 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.bytesperline = f->fmt.pix.width * (vc->fmt->depth >> 3); pix 752 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 753 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 765 drivers/media/usb/s2255/s2255drv.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 770 drivers/media/usb/s2255/s2255drv.c field = f->fmt.pix.field; pix 773 drivers/media/usb/s2255/s2255drv.c __func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height); pix 776 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= NUM_LINES_1CIFS_NTSC * 2) { pix 777 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_NTSC * 2; pix 780 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_NTSC; pix 783 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.width >= LINE_SZ_4CIFS_NTSC) pix 784 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_4CIFS_NTSC; pix 786 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_1CIFS_NTSC; pix 789 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= NUM_LINES_1CIFS_PAL * 2) { pix 790 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_PAL * 2; pix 793 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_PAL; pix 796 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.width >= LINE_SZ_4CIFS_PAL) pix 797 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_4CIFS_PAL; pix 799 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_1CIFS_PAL; pix 801 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = field; pix 802 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; pix 803 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 804 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 806 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field); pix 824 drivers/media/usb/s2255/s2255drv.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 836 drivers/media/usb/s2255/s2255drv.c vc->width = f->fmt.pix.width; pix 837 drivers/media/usb/s2255/s2255drv.c vc->height = f->fmt.pix.height; pix 838 drivers/media/usb/s2255/s2255drv.c vc->field = f->fmt.pix.field; pix 357 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = dev->width; pix 358 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = dev->height; pix 359 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 360 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 361 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.bytesperline = dev->width * 2; pix 362 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; pix 363 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 381 drivers/media/usb/stk1160/stk1160-v4l.c width = clamp_t(unsigned int, f->fmt.pix.width, pix 383 drivers/media/usb/stk1160/stk1160-v4l.c height = clamp_t(unsigned int, f->fmt.pix.height, pix 391 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = base_width; pix 392 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = base_height; pix 411 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = (base_width * col_n) / (col_n + 1); pix 430 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = base_width / (col_n + 1); pix 439 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = (base_height * row_n) / (row_n + 1); pix 447 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = base_height / (row_n + 1); pix 451 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.pixelformat = dev->fmt->fourcc; pix 452 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 453 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 454 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 455 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 467 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width, f->fmt.pix.height); pix 493 drivers/media/usb/stk1160/stk1160-v4l.c dev->width = f->fmt.pix.width; pix 494 drivers/media/usb/stk1160/stk1160-v4l.c dev->height = f->fmt.pix.height; pix 893 drivers/media/usb/stkwebcam/stk-webcam.c struct v4l2_pix_format *pix_format = &f->fmt.pix; pix 922 drivers/media/usb/stkwebcam/stk-webcam.c switch (fmtd->fmt.pix.pixelformat) { pix 933 drivers/media/usb/stkwebcam/stk-webcam.c if (fmtd->fmt.pix.width > stk_sizes[i].w) pix 937 drivers/media/usb/stkwebcam/stk-webcam.c || (abs(fmtd->fmt.pix.width - stk_sizes[i-1].w) pix 938 drivers/media/usb/stkwebcam/stk-webcam.c < abs(fmtd->fmt.pix.width - stk_sizes[i].w))) { pix 939 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.height = stk_sizes[i-1].h; pix 940 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.width = stk_sizes[i-1].w; pix 944 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.height = stk_sizes[i].h; pix 945 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.width = stk_sizes[i].w; pix 950 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.field = V4L2_FIELD_NONE; pix 951 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 952 drivers/media/usb/stkwebcam/stk-webcam.c if (fmtd->fmt.pix.pixelformat == V4L2_PIX_FMT_SBGGR8) pix 953 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.bytesperline = fmtd->fmt.pix.width; pix 955 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.bytesperline = 2 * fmtd->fmt.pix.width; pix 956 drivers/media/usb/stkwebcam/stk-webcam.c fmtd->fmt.pix.sizeimage = fmtd->fmt.pix.bytesperline pix 957 drivers/media/usb/stkwebcam/stk-webcam.c * fmtd->fmt.pix.height; pix 1022 drivers/media/usb/stkwebcam/stk-webcam.c dev->vsettings.palette = fmtd->fmt.pix.pixelformat; pix 1024 drivers/media/usb/stkwebcam/stk-webcam.c dev->frame_size = fmtd->fmt.pix.sizeimage; pix 884 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width = fh->width; pix 885 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height = fh->height; pix 886 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.field = fh->vb_vidq.field; pix 887 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.pixelformat = fh->fmt->fourcc; pix 888 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 889 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.bytesperline = pix 890 drivers/media/usb/tm6000/tm6000-video.c (f->fmt.pix.width * fh->fmt->depth) >> 3; pix 891 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.sizeimage = pix 892 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 914 drivers/media/usb/tm6000/tm6000-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 917 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.pixelformat); pix 921 drivers/media/usb/tm6000/tm6000-video.c field = f->fmt.pix.field; pix 927 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width = dev->width; pix 928 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height = dev->height; pix 930 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width &= ~0x01; pix 932 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.field = field; pix 934 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.bytesperline = pix 935 drivers/media/usb/tm6000/tm6000-video.c (f->fmt.pix.width * fmt->depth) >> 3; pix 936 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.sizeimage = pix 937 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; pix 938 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 953 drivers/media/usb/tm6000/tm6000-video.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); pix 954 drivers/media/usb/tm6000/tm6000-video.c fh->width = f->fmt.pix.width; pix 955 drivers/media/usb/tm6000/tm6000-video.c fh->height = f->fmt.pix.height; pix 956 drivers/media/usb/tm6000/tm6000-video.c fh->vb_vidq.field = f->fmt.pix.field; pix 959 drivers/media/usb/tm6000/tm6000-video.c dev->fourcc = f->fmt.pix.pixelformat; pix 645 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.width = usbtv->width; pix 646 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.height = usbtv->height; pix 647 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; pix 648 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; pix 649 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.bytesperline = usbtv->width * 2; pix 650 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.sizeimage = (f->fmt.pix.bytesperline * f->fmt.pix.height); pix 651 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 816 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.width = usbvision->curwidth; pix 817 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.height = usbvision->curheight; pix 818 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.pixelformat = usbvision->palette.format; pix 819 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.bytesperline = pix 821 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.sizeimage = vf->fmt.pix.bytesperline * usbvision->curheight; pix 822 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 823 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.field = V4L2_FIELD_NONE; /* Always progressive image */ pix 836 drivers/media/usb/usbvision/usbvision-video.c if (vf->fmt.pix.pixelformat == pix 845 drivers/media/usb/usbvision/usbvision-video.c RESTRICT_TO_RANGE(vf->fmt.pix.width, MIN_FRAME_WIDTH, MAX_FRAME_WIDTH); pix 846 drivers/media/usb/usbvision/usbvision-video.c RESTRICT_TO_RANGE(vf->fmt.pix.height, MIN_FRAME_HEIGHT, MAX_FRAME_HEIGHT); pix 848 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.bytesperline = vf->fmt.pix.width* pix 850 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.sizeimage = vf->fmt.pix.bytesperline*vf->fmt.pix.height; pix 851 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 852 drivers/media/usb/usbvision/usbvision-video.c vf->fmt.pix.field = V4L2_FIELD_NONE; /* Always progressive image */ pix 879 drivers/media/usb/usbvision/usbvision-video.c usbvision_set_output(usbvision, vf->fmt.pix.width, vf->fmt.pix.height); pix 166 drivers/media/usb/uvc/uvc_v4l2.c fcc = (u8 *)&fmt->fmt.pix.pixelformat; pix 168 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.pixelformat, pix 170 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.width, fmt->fmt.pix.height); pix 177 drivers/media/usb/uvc/uvc_v4l2.c if (format->fcc == fmt->fmt.pix.pixelformat) pix 183 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.pixelformat = format->fcc; pix 190 drivers/media/usb/uvc/uvc_v4l2.c rw = fmt->fmt.pix.width; pix 191 drivers/media/usb/uvc/uvc_v4l2.c rh = fmt->fmt.pix.height; pix 211 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.width, fmt->fmt.pix.height); pix 250 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.width = frame->wWidth; pix 251 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.height = frame->wHeight; pix 252 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 253 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(format, frame); pix 254 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.sizeimage = probe->dwMaxVideoFrameSize; pix 255 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.colorspace = format->colorspace; pix 285 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.pixelformat = format->fcc; pix 286 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.width = frame->wWidth; pix 287 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.height = frame->wHeight; pix 288 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 289 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.bytesperline = uvc_v4l2_get_bytesperline(format, frame); pix 290 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.sizeimage = stream->ctrl.dwMaxVideoFrameSize; pix 291 drivers/media/usb/uvc/uvc_v4l2.c fmt->fmt.pix.colorspace = format->colorspace; pix 772 drivers/media/usb/zr364xx/zr364xx.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) { pix 774 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name)); pix 778 drivers/media/usb/zr364xx/zr364xx.c if (!(f->fmt.pix.width == 160 && f->fmt.pix.height == 120) && pix 779 drivers/media/usb/zr364xx/zr364xx.c !(f->fmt.pix.width == 640 && f->fmt.pix.height == 480)) { pix 780 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.width = 320; pix 781 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.height = 240; pix 784 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 785 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 786 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 787 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 789 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name), pix 790 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field); pix 803 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 804 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 805 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.width = cam->width; pix 806 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.height = cam->height; pix 807 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 808 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 809 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 839 drivers/media/usb/zr364xx/zr364xx.c cam->width = f->fmt.pix.width; pix 840 drivers/media/usb/zr364xx/zr364xx.c cam->height = f->fmt.pix.height; pix 843 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; pix 844 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; pix 845 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 846 drivers/media/usb/zr364xx/zr364xx.c cam->vb_vidq.field = f->fmt.pix.field; pix 848 drivers/media/usb/zr364xx/zr364xx.c if (f->fmt.pix.width == 160 && f->fmt.pix.height == 120) pix 850 drivers/media/usb/zr364xx/zr364xx.c else if (f->fmt.pix.width == 640 && f->fmt.pix.height == 480) pix 902 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name), pix 903 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field); pix 230 drivers/media/v4l2-core/v4l2-compat-ioctl32.c struct v4l2_pix_format pix; pix 304 drivers/media/v4l2-core/v4l2-compat-ioctl32.c return copy_in_user(&p64->fmt.pix, &p32->fmt.pix, pix 305 drivers/media/v4l2-core/v4l2-compat-ioctl32.c sizeof(p64->fmt.pix)) ? -EFAULT : 0; pix 375 drivers/media/v4l2-core/v4l2-compat-ioctl32.c return copy_in_user(&p32->fmt.pix, &p64->fmt.pix, pix 376 drivers/media/v4l2-core/v4l2-compat-ioctl32.c sizeof(p64->fmt.pix)) ? -EFAULT : 0; pix 279 drivers/media/v4l2-core/v4l2-ioctl.c const struct v4l2_pix_format *pix; pix 293 drivers/media/v4l2-core/v4l2-ioctl.c pix = &p->fmt.pix; pix 295 drivers/media/v4l2-core/v4l2-ioctl.c pix->width, pix->height, pix 296 drivers/media/v4l2-core/v4l2-ioctl.c (pix->pixelformat & 0xff), pix 297 drivers/media/v4l2-core/v4l2-ioctl.c (pix->pixelformat >> 8) & 0xff, pix 298 drivers/media/v4l2-core/v4l2-ioctl.c (pix->pixelformat >> 16) & 0xff, pix 299 drivers/media/v4l2-core/v4l2-ioctl.c (pix->pixelformat >> 24) & 0xff, pix 300 drivers/media/v4l2-core/v4l2-ioctl.c prt_names(pix->field, v4l2_field_names), pix 301 drivers/media/v4l2-core/v4l2-ioctl.c pix->bytesperline, pix->sizeimage, pix 302 drivers/media/v4l2-core/v4l2-ioctl.c pix->colorspace, pix->flags, pix->ycbcr_enc, pix 303 drivers/media/v4l2-core/v4l2-ioctl.c pix->quantization, pix->xfer_func); pix 1036 drivers/media/v4l2-core/v4l2-ioctl.c if (fmt->fmt.pix.priv == V4L2_PIX_FMT_PRIV_MAGIC) pix 1039 drivers/media/v4l2-core/v4l2-ioctl.c fmt->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1042 drivers/media/v4l2-core/v4l2-ioctl.c + sizeof(fmt->fmt.pix.priv); pix 1043 drivers/media/v4l2-core/v4l2-ioctl.c memset(((void *)&fmt->fmt.pix) + offset, 0, pix 1044 drivers/media/v4l2-core/v4l2-ioctl.c sizeof(fmt->fmt.pix) - offset); pix 1522 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1525 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1527 drivers/media/v4l2-core/v4l2-ioctl.c v4l_pix_format_touch(&p->fmt.pix); pix 1540 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1543 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1585 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.pix); pix 1588 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1590 drivers/media/v4l2-core/v4l2-ioctl.c v4l_pix_format_touch(&p->fmt.pix); pix 1618 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.pix); pix 1621 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1687 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.pix); pix 1690 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 1692 drivers/media/v4l2-core/v4l2-ioctl.c v4l_pix_format_touch(&p->fmt.pix); pix 1720 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.pix); pix 1723 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 2014 drivers/media/v4l2-core/v4l2-ioctl.c create->format.fmt.pix.priv = V4L2_PIX_FMT_PRIV_MAGIC; pix 2405 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 2406 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = channel->width; pix 2407 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = channel->height; pix 2409 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.colorspace = channel->colorspace; pix 2410 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.ycbcr_enc = channel->ycbcr_enc; pix 2411 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.quantization = channel->quantization; pix 2412 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.xfer_func = channel->xfer_func; pix 2414 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = channel->codec; pix 2415 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = 0; pix 2416 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = channel->sizeimage_encoded; pix 2424 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 2426 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, pix 2428 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, pix 2431 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_H264; pix 2432 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = 0; pix 2433 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = pix 2434 drivers/staging/media/allegro-dvt/allegro-core.c estimate_stream_size(f->fmt.pix.width, f->fmt.pix.height); pix 2444 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 2446 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = channel->width; pix 2447 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = channel->height; pix 2449 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.colorspace = channel->colorspace; pix 2450 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.ycbcr_enc = channel->ycbcr_enc; pix 2451 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.quantization = channel->quantization; pix 2452 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.xfer_func = channel->xfer_func; pix 2454 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = channel->pixelformat; pix 2455 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = channel->stride; pix 2456 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = channel->sizeimage_raw; pix 2464 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 2473 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, pix 2475 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, pix 2478 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_NV12; pix 2479 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 32); pix 2480 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = pix 2481 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline * f->fmt.pix.height * 3 / 2; pix 2496 drivers/staging/media/allegro-dvt/allegro-core.c channel->width = f->fmt.pix.width; pix 2497 drivers/staging/media/allegro-dvt/allegro-core.c channel->height = f->fmt.pix.height; pix 2498 drivers/staging/media/allegro-dvt/allegro-core.c channel->stride = f->fmt.pix.bytesperline; pix 2499 drivers/staging/media/allegro-dvt/allegro-core.c channel->sizeimage_raw = f->fmt.pix.sizeimage; pix 2501 drivers/staging/media/allegro-dvt/allegro-core.c channel->colorspace = f->fmt.pix.colorspace; pix 2502 drivers/staging/media/allegro-dvt/allegro-core.c channel->ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 2503 drivers/staging/media/allegro-dvt/allegro-core.c channel->quantization = f->fmt.pix.quantization; pix 2504 drivers/staging/media/allegro-dvt/allegro-core.c channel->xfer_func = f->fmt.pix.xfer_func; pix 207 drivers/staging/media/imx/imx-ic-prpencvf.c done->vbuf.field = vdev->fmt.fmt.pix.field; pix 232 drivers/staging/media/imx/imx-ic-prpencvf.c phys += vdev->fmt.fmt.pix.bytesperline; pix 365 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix = vdev->fmt.fmt.pix; pix 373 drivers/staging/media/imx/imx-ic-prpencvf.c interweave = V4L2_FIELD_IS_INTERLACED(image.pix.field) && pix 376 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.field == V4L2_FIELD_INTERLACED_BT; pix 379 drivers/staging/media/imx/imx-ic-prpencvf.c swap(image.pix.width, image.pix.height); pix 382 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.bytesperline = outcc->planar ? pix 383 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.width : pix 384 drivers/staging/media/imx/imx-ic-prpencvf.c (image.pix.width * outcc->bpp) >> 3; pix 402 drivers/staging/media/imx/imx-ic-prpencvf.c switch (image.pix.pixelformat) { pix 420 drivers/staging/media/imx/imx-ic-prpencvf.c burst_size = (image.pix.width & 0xf) ? 8 : 16; pix 431 drivers/staging/media/imx/imx-ic-prpencvf.c -image.pix.bytesperline : pix 432 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.bytesperline, pix 433 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.pixelformat); pix 436 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix.width, image.pix.height, pix 460 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; pix 589 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; pix 675 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; pix 218 drivers/staging/media/imx/imx-media-capture.c fourcc = f->fmt.pix.pixelformat; pix 235 drivers/staging/media/imx/imx-media-capture.c if (V4L2_FIELD_IS_INTERLACED(f->fmt.pix.field)) { pix 248 drivers/staging/media/imx/imx-media-capture.c imx_media_mbus_fmt_to_pix_fmt(&f->fmt.pix, &fmt_src->format, cc); pix 302 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix = f->fmt.pix; pix 351 drivers/staging/media/imx/imx-media-capture.c s->r.width = priv->vdev.fmt.fmt.pix.width; pix 352 drivers/staging/media/imx/imx-media-capture.c s->r.height = priv->vdev.fmt.fmt.pix.height; pix 466 drivers/staging/media/imx/imx-media-capture.c struct v4l2_pix_format *pix = &priv->vdev.fmt.fmt.pix; pix 473 drivers/staging/media/imx/imx-media-capture.c if (*nplanes != 1 || sizes[0] < pix->sizeimage) pix 478 drivers/staging/media/imx/imx-media-capture.c count = min_t(__u32, VID_MEM_LIMIT / pix->sizeimage, count); pix 487 drivers/staging/media/imx/imx-media-capture.c sizes[0] = pix->sizeimage; pix 505 drivers/staging/media/imx/imx-media-capture.c struct v4l2_pix_format *pix = &priv->vdev.fmt.fmt.pix; pix 507 drivers/staging/media/imx/imx-media-capture.c if (vb2_plane_size(vb, 0) < pix->sizeimage) { pix 510 drivers/staging/media/imx/imx-media-capture.c vb2_plane_size(vb, 0), (long)pix->sizeimage); pix 514 drivers/staging/media/imx/imx-media-capture.c vb2_set_plane_payload(vb, 0, pix->sizeimage); pix 546 drivers/staging/media/imx/imx-media-capture.c v4l2_fill_pix_format(&f.fmt.pix, &fmt_src.format); pix 552 drivers/staging/media/imx/imx-media-capture.c return (priv->vdev.fmt.fmt.pix.width != f.fmt.pix.width || pix 553 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix.height != f.fmt.pix.height || pix 795 drivers/staging/media/imx/imx-media-capture.c imx_media_mbus_fmt_to_pix_fmt(&vdev->fmt.fmt.pix, pix 799 drivers/staging/media/imx/imx-media-capture.c vdev->cc = imx_media_find_format(vdev->fmt.fmt.pix.pixelformat, pix 184 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix = q_data->cur_fmt; pix 197 drivers/staging/media/imx/imx-media-csc-scaler.c field = f->fmt.pix.field; pix 207 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix = f->fmt.pix; pix 208 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix = q_data_in->cur_fmt; pix 213 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix = f->fmt.pix; pix 214 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix = q_data_out->cur_fmt; pix 219 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix = (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ? pix 220 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix : test_in.pix; pix 223 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; pix 224 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.ycbcr_enc = q_data->cur_fmt.ycbcr_enc; pix 225 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.xfer_func = q_data->cur_fmt.xfer_func; pix 226 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.quantization = q_data->cur_fmt.quantization; pix 227 drivers/staging/media/imx/imx-media-csc-scaler.c } else if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) { pix 228 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 229 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; pix 230 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.xfer_func = V4L2_XFER_FUNC_DEFAULT; pix 231 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.quantization = V4L2_QUANTIZATION_DEFAULT; pix 258 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.width = f->fmt.pix.width; pix 259 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.height = f->fmt.pix.height; pix 260 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.pixelformat = f->fmt.pix.pixelformat; pix 261 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.field = f->fmt.pix.field; pix 262 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.bytesperline = f->fmt.pix.bytesperline; pix 263 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.sizeimage = f->fmt.pix.sizeimage; pix 273 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; pix 274 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 275 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.xfer_func = f->fmt.pix.xfer_func; pix 276 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.quantization = f->fmt.pix.quantization; pix 279 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; pix 280 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 281 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.xfer_func = f->fmt.pix.xfer_func; pix 282 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.quantization = f->fmt.pix.quantization; pix 490 drivers/staging/media/imx/imx-media-csc-scaler.c im->pix = *fmt; pix 492 drivers/staging/media/imx/imx-media-csc-scaler.c im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); pix 494 drivers/staging/media/imx/imx-media-csc-scaler.c im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); pix 652 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix = *in_fmt; pix 653 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix = *out_fmt; pix 658 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix.width = out_fmt->height; pix 659 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix.height = out_fmt->width; pix 665 drivers/staging/media/imx/imx-media-csc-scaler.c if (test_in.pix.width != in_fmt->width || pix 666 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix.height != in_fmt->height || pix 667 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix.bytesperline != in_fmt->bytesperline || pix 668 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix.sizeimage != in_fmt->sizeimage) { pix 678 drivers/staging/media/imx/imx-media-csc-scaler.c if (test_out.pix.width != out_fmt->width || pix 679 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix.height != out_fmt->height || pix 680 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix.bytesperline != out_fmt->bytesperline || pix 681 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix.sizeimage != out_fmt->sizeimage) { pix 690 drivers/staging/media/imx/imx-media-csc-scaler.c *in_fmt = test_in.pix; pix 691 drivers/staging/media/imx/imx-media-csc-scaler.c *out_fmt = test_out.pix; pix 271 drivers/staging/media/imx/imx-media-csi.c done->vbuf.field = vdev->fmt.fmt.pix.field; pix 296 drivers/staging/media/imx/imx-media-csi.c phys += vdev->fmt.fmt.pix.bytesperline; pix 426 drivers/staging/media/imx/imx-media-csi.c image.pix = vdev->fmt.fmt.pix; pix 442 drivers/staging/media/imx/imx-media-csi.c interweave = V4L2_FIELD_IS_INTERLACED(image.pix.field) && pix 445 drivers/staging/media/imx/imx-media-csi.c image.pix.field == V4L2_FIELD_INTERLACED_BT; pix 447 drivers/staging/media/imx/imx-media-csi.c switch (image.pix.pixelformat) { pix 467 drivers/staging/media/imx/imx-media-csi.c burst_size = (image.pix.width & 0x3f) ? pix 468 drivers/staging/media/imx/imx-media-csi.c ((image.pix.width & 0x1f) ? pix 469 drivers/staging/media/imx/imx-media-csi.c ((image.pix.width & 0xf) ? 8 : 16) : 32) : 64; pix 480 drivers/staging/media/imx/imx-media-csi.c burst_size = (image.pix.width & 0x1f) ? pix 481 drivers/staging/media/imx/imx-media-csi.c ((image.pix.width & 0xf) ? 8 : 16) : 32; pix 493 drivers/staging/media/imx/imx-media-csi.c burst_size = (image.pix.width & 0xf) ? 8 : 16; pix 501 drivers/staging/media/imx/imx-media-csi.c image.phys0 += image.pix.bytesperline; pix 502 drivers/staging/media/imx/imx-media-csi.c image.phys1 += image.pix.bytesperline; pix 508 drivers/staging/media/imx/imx-media-csi.c ipu_cpmem_set_stride(priv->idmac_ch, image.pix.bytesperline); pix 551 drivers/staging/media/imx/imx-media-csi.c -image.pix.bytesperline : pix 552 drivers/staging/media/imx/imx-media-csi.c image.pix.bytesperline, pix 553 drivers/staging/media/imx/imx-media-csi.c image.pix.pixelformat); pix 608 drivers/staging/media/imx/imx-media-csi.c outfmt = &vdev->fmt.fmt.pix; pix 574 drivers/staging/media/imx/imx-media-utils.c int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix, pix 610 drivers/staging/media/imx/imx-media-utils.c pix->width = width; pix 611 drivers/staging/media/imx/imx-media-utils.c pix->height = mbus->height; pix 612 drivers/staging/media/imx/imx-media-utils.c pix->pixelformat = cc->fourcc; pix 613 drivers/staging/media/imx/imx-media-utils.c pix->colorspace = mbus->colorspace; pix 614 drivers/staging/media/imx/imx-media-utils.c pix->xfer_func = mbus->xfer_func; pix 615 drivers/staging/media/imx/imx-media-utils.c pix->ycbcr_enc = mbus->ycbcr_enc; pix 616 drivers/staging/media/imx/imx-media-utils.c pix->quantization = mbus->quantization; pix 617 drivers/staging/media/imx/imx-media-utils.c pix->field = mbus->field; pix 618 drivers/staging/media/imx/imx-media-utils.c pix->bytesperline = stride; pix 619 drivers/staging/media/imx/imx-media-utils.c pix->sizeimage = cc->planar ? ((stride * pix->height * cc->bpp) >> 3) : pix 620 drivers/staging/media/imx/imx-media-utils.c stride * pix->height; pix 633 drivers/staging/media/imx/imx-media-utils.c ret = imx_media_mbus_fmt_to_pix_fmt(&image->pix, mbus, NULL); pix 649 drivers/staging/media/imx/imx-media-utils.c fmt = imx_media_find_format(image->pix.pixelformat, CS_SEL_ANY, true); pix 654 drivers/staging/media/imx/imx-media-utils.c mbus->width = image->pix.width; pix 655 drivers/staging/media/imx/imx-media-utils.c mbus->height = image->pix.height; pix 657 drivers/staging/media/imx/imx-media-utils.c mbus->field = image->pix.field; pix 658 drivers/staging/media/imx/imx-media-utils.c mbus->colorspace = image->pix.colorspace; pix 659 drivers/staging/media/imx/imx-media-utils.c mbus->xfer_func = image->pix.xfer_func; pix 660 drivers/staging/media/imx/imx-media-utils.c mbus->ycbcr_enc = image->pix.ycbcr_enc; pix 661 drivers/staging/media/imx/imx-media-utils.c mbus->quantization = image->pix.quantization; pix 249 drivers/staging/media/imx/imx-media-vdic.c image.pix = vdev->fmt.fmt.pix; pix 252 drivers/staging/media/imx/imx-media-vdic.c image.pix.height /= 2; pix 261 drivers/staging/media/imx/imx-media-vdic.c burst_size = (image.pix.width & 0xf) ? 8 : 16; pix 177 drivers/staging/media/imx/imx-media.h int imx_media_mbus_fmt_to_pix_fmt(struct v4l2_pix_format *pix, pix 634 drivers/staging/media/imx/imx7-media-csi.c done->vbuf.field = vdev->fmt.fmt.pix.field; pix 716 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_pix_format *out_pix = &vdev->fmt.fmt.pix; pix 765 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_pix_format *out_pix = &vdev->fmt.fmt.pix; pix 118 drivers/staging/media/omap4iss/iss_video.c struct v4l2_pix_format *pix) pix 120 drivers/staging/media/omap4iss/iss_video.c unsigned int bpl = pix->bytesperline; pix 124 drivers/staging/media/omap4iss/iss_video.c memset(pix, 0, sizeof(*pix)); pix 125 drivers/staging/media/omap4iss/iss_video.c pix->width = mbus->width; pix 126 drivers/staging/media/omap4iss/iss_video.c pix->height = mbus->height; pix 137 drivers/staging/media/omap4iss/iss_video.c min_bpl = pix->width * ALIGN(formats[i].bpp, 8) / 8; pix 152 drivers/staging/media/omap4iss/iss_video.c pix->pixelformat = formats[i].pixelformat; pix 153 drivers/staging/media/omap4iss/iss_video.c pix->bytesperline = bpl; pix 154 drivers/staging/media/omap4iss/iss_video.c pix->sizeimage = pix->bytesperline * pix->height; pix 155 drivers/staging/media/omap4iss/iss_video.c pix->colorspace = mbus->colorspace; pix 156 drivers/staging/media/omap4iss/iss_video.c pix->field = mbus->field; pix 159 drivers/staging/media/omap4iss/iss_video.c if (pix->pixelformat == V4L2_PIX_FMT_NV12) pix 160 drivers/staging/media/omap4iss/iss_video.c pix->sizeimage += (pix->bytesperline * pix->height) / 2; pix 165 drivers/staging/media/omap4iss/iss_video.c static void iss_video_pix_to_mbus(const struct v4l2_pix_format *pix, pix 171 drivers/staging/media/omap4iss/iss_video.c mbus->width = pix->width; pix 172 drivers/staging/media/omap4iss/iss_video.c mbus->height = pix->height; pix 179 drivers/staging/media/omap4iss/iss_video.c if (formats[i].pixelformat == pix->pixelformat) pix 184 drivers/staging/media/omap4iss/iss_video.c mbus->colorspace = pix->colorspace; pix 185 drivers/staging/media/omap4iss/iss_video.c mbus->field = pix->field; pix 285 drivers/staging/media/omap4iss/iss_video.c if (vfh->format.fmt.pix.pixelformat != pixfmt.pixelformat || pix 286 drivers/staging/media/omap4iss/iss_video.c vfh->format.fmt.pix.height != pixfmt.height || pix 287 drivers/staging/media/omap4iss/iss_video.c vfh->format.fmt.pix.width != pixfmt.width || pix 288 drivers/staging/media/omap4iss/iss_video.c vfh->format.fmt.pix.bytesperline != pixfmt.bytesperline || pix 289 drivers/staging/media/omap4iss/iss_video.c vfh->format.fmt.pix.sizeimage != pixfmt.sizeimage) pix 310 drivers/staging/media/omap4iss/iss_video.c sizes[0] = vfh->format.fmt.pix.sizeimage; pix 334 drivers/staging/media/omap4iss/iss_video.c unsigned long size = vfh->format.fmt.pix.sizeimage; pix 607 drivers/staging/media/omap4iss/iss_video.c iss_video_pix_to_mbus(&format->fmt.pix, &fmt); pix 608 drivers/staging/media/omap4iss/iss_video.c iss_video_mbus_to_pix(video, &fmt, &format->fmt.pix); pix 632 drivers/staging/media/omap4iss/iss_video.c iss_video_pix_to_mbus(&format->fmt.pix, &fmt.format); pix 640 drivers/staging/media/omap4iss/iss_video.c iss_video_mbus_to_pix(video, &fmt.format, &format->fmt.pix); pix 906 drivers/staging/media/omap4iss/iss_video.c video->bpl_value = vfh->format.fmt.pix.bytesperline; pix 249 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 253 drivers/staging/media/soc_camera/soc_camera.c pixfmtstr(pix->pixelformat), pix->width, pix->height); pix 255 drivers/staging/media/soc_camera/soc_camera.c if (pix->pixelformat != V4L2_PIX_FMT_JPEG && pix 257 drivers/staging/media/soc_camera/soc_camera.c pix->bytesperline = 0; pix 258 drivers/staging/media/soc_camera/soc_camera.c pix->sizeimage = 0; pix 265 drivers/staging/media/soc_camera/soc_camera.c xlate = soc_camera_xlate_by_fourcc(icd, pix->pixelformat); pix 269 drivers/staging/media/soc_camera/soc_camera.c ret = soc_mbus_bytes_per_line(pix->width, xlate->host_fmt); pix 273 drivers/staging/media/soc_camera/soc_camera.c pix->bytesperline = max_t(u32, pix->bytesperline, ret); pix 275 drivers/staging/media/soc_camera/soc_camera.c ret = soc_mbus_image_size(xlate->host_fmt, pix->bytesperline, pix 276 drivers/staging/media/soc_camera/soc_camera.c pix->height); pix 280 drivers/staging/media/soc_camera/soc_camera.c pix->sizeimage = max_t(u32, pix->sizeimage, ret); pix 533 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 537 drivers/staging/media/soc_camera/soc_camera.c pixfmtstr(pix->pixelformat), pix->width, pix->height); pix 548 drivers/staging/media/soc_camera/soc_camera.c icd->current_fmt->host_fmt->fourcc != pix->pixelformat) { pix 554 drivers/staging/media/soc_camera/soc_camera.c icd->user_width = pix->width; pix 555 drivers/staging/media/soc_camera/soc_camera.c icd->user_height = pix->height; pix 556 drivers/staging/media/soc_camera/soc_camera.c icd->bytesperline = pix->bytesperline; pix 557 drivers/staging/media/soc_camera/soc_camera.c icd->sizeimage = pix->sizeimage; pix 558 drivers/staging/media/soc_camera/soc_camera.c icd->colorspace = pix->colorspace; pix 559 drivers/staging/media/soc_camera/soc_camera.c icd->field = pix->field; pix 661 drivers/staging/media/soc_camera/soc_camera.c .fmt.pix = { pix 880 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 887 drivers/staging/media/soc_camera/soc_camera.c pix->width = icd->user_width; pix 888 drivers/staging/media/soc_camera/soc_camera.c pix->height = icd->user_height; pix 889 drivers/staging/media/soc_camera/soc_camera.c pix->bytesperline = icd->bytesperline; pix 890 drivers/staging/media/soc_camera/soc_camera.c pix->sizeimage = icd->sizeimage; pix 891 drivers/staging/media/soc_camera/soc_camera.c pix->field = icd->field; pix 892 drivers/staging/media/soc_camera/soc_camera.c pix->pixelformat = icd->current_fmt->host_fmt->fourcc; pix 893 drivers/staging/media/soc_camera/soc_camera.c pix->colorspace = icd->colorspace; pix 219 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_SUNXI_TILED_NV12; pix 220 drivers/staging/media/sunxi/cedrus/cedrus_video.c cedrus_prepare_format(&f->fmt.pix); pix 225 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix = ctx->dst_fmt; pix 237 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG2_SLICE; pix 238 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.sizeimage = SZ_1K; pix 239 drivers/staging/media/sunxi/cedrus/cedrus_video.c cedrus_prepare_format(&f->fmt.pix); pix 244 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix = ctx->src_fmt; pix 254 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_pix_format *pix_fmt = &f->fmt.pix; pix 270 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_pix_format *pix_fmt = &f->fmt.pix; pix 301 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt = f->fmt.pix; pix 323 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->src_fmt = f->fmt.pix; pix 326 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.colorspace = f->fmt.pix.colorspace; pix 327 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.xfer_func = f->fmt.pix.xfer_func; pix 328 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; pix 329 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.quantization = f->fmt.pix.quantization; pix 219 drivers/staging/most/video/video.c f->fmt.pix.width = 8; pix 220 drivers/staging/most/video/video.c f->fmt.pix.height = 8; pix 221 drivers/staging/most/video/video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; pix 222 drivers/staging/most/video/video.c f->fmt.pix.bytesperline = 0; pix 223 drivers/staging/most/video/video.c f->fmt.pix.sizeimage = 188 * 2; pix 224 drivers/staging/most/video/video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; pix 225 drivers/staging/most/video/video.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 226 drivers/staging/most/video/video.c f->fmt.pix.priv = 0; pix 232 drivers/staging/most/video/video.c if (format->fmt.pix.pixelformat != V4L2_PIX_FMT_MPEG) pix 188 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (fmt->fourcc == f->fmt.pix.pixelformat) pix 905 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width = dev->capture.width; pix 906 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height = dev->capture.height; pix 907 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 908 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; pix 909 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = dev->capture.stride; pix 910 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = dev->capture.buffersize; pix 913 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 915 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 917 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 918 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.priv = 0; pix 920 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix, pix 935 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); pix 936 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 940 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.field = V4L2_FIELD_NONE; pix 944 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.pixelformat); pix 946 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.pix.width, MIN_WIDTH, dev->max_width, 1, pix 947 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.pix.height, MIN_HEIGHT, dev->max_height, pix 949 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = f->fmt.pix.width * mfmt->ybbp; pix 956 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = pix 957 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c ((f->fmt.pix.width + 15) & ~15) * 3; pix 965 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = pix 966 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (f->fmt.pix.bytesperline + align_mask) & pix 971 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline); pix 977 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = ((f->fmt.pix.height + 15) & ~15) * pix 978 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (((f->fmt.pix.width + 31) & ~31) * mfmt->depth) >> 3; pix 981 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage < MIN_BUFFER_SIZE) pix 982 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = MIN_BUFFER_SIZE; pix 984 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_RGB24) pix 985 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 986 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c else if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_JPEG) pix 987 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; pix 989 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; pix 990 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.priv = 0; pix 994 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.pixelformat); pix 996 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix, pix 1034 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->fmt.pix.width <= max_video_width && pix 1035 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height <= max_video_height) pix 1081 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.width = f->fmt.pix.width; pix 1082 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.height = f->fmt.pix.height; pix 1085 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.crop.width = f->fmt.pix.width; pix 1086 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.crop.height = f->fmt.pix.height; pix 1115 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.width = f->fmt.pix.width; pix 1116 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.height = f->fmt.pix.height; pix 1119 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.crop.width = f->fmt.pix.width; pix 1120 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.crop.height = f->fmt.pix.height; pix 1141 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, pix 1142 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); pix 1169 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.width = f->fmt.pix.width; pix 1170 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.height = f->fmt.pix.height; pix 1173 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.crop.width = f->fmt.pix.width; pix 1174 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.crop.height = f->fmt.pix.height; pix 1201 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, pix 1202 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height, pix 1203 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat pix 1222 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage; pix 1228 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage, pix 1231 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (f->fmt.pix.sizeimage < pix 1233 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (100 << 10) : f->fmt.pix.sizeimage; pix 1238 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage); pix 1244 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->current_buffer.size = f->fmt.pix.sizeimage; pix 1250 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c dev->capture.stride = f->fmt.pix.bytesperline; pix 1300 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); pix 1301 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = formats[0].fourcc; pix 1830 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c .fmt.pix.pixelformat = V4L2_PIX_FMT_JPEG, pix 1831 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c .fmt.pix.width = 1024, pix 1832 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c .fmt.pix.bytesperline = 0, pix 1833 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c .fmt.pix.height = 768, pix 1834 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c .fmt.pix.sizeimage = 1024 * 768, pix 84 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.pixelformat = video->fcc; pix 85 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.width = video->width; pix 86 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.height = video->height; pix 87 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 88 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.bytesperline = video->bpp * video->width / 8; pix 89 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.sizeimage = video->imagesize; pix 90 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 91 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.priv = 0; pix 109 drivers/usb/gadget/function/uvc_v4l2.c if (format->fcc == fmt->fmt.pix.pixelformat) pix 115 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.pixelformat); pix 119 drivers/usb/gadget/function/uvc_v4l2.c bpl = format->bpp * fmt->fmt.pix.width / 8; pix 120 drivers/usb/gadget/function/uvc_v4l2.c imagesize = bpl ? bpl * fmt->fmt.pix.height : fmt->fmt.pix.sizeimage; pix 124 drivers/usb/gadget/function/uvc_v4l2.c video->width = fmt->fmt.pix.width; pix 125 drivers/usb/gadget/function/uvc_v4l2.c video->height = fmt->fmt.pix.height; pix 128 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.field = V4L2_FIELD_NONE; pix 129 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.bytesperline = bpl; pix 130 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.sizeimage = imagesize; pix 131 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; pix 132 drivers/usb/gadget/function/uvc_v4l2.c fmt->fmt.pix.priv = 0; pix 375 drivers/video/fbdev/s3c-fb.c static int s3c_fb_align_word(unsigned int bpp, unsigned int pix) pix 380 drivers/video/fbdev/s3c-fb.c return pix; pix 383 drivers/video/fbdev/s3c-fb.c return ALIGN(pix, pix_per_word); pix 2233 include/uapi/linux/videodev2.h struct v4l2_pix_format pix; /* V4L2_BUF_TYPE_VIDEO_CAPTURE */ pix 245 include/video/imx-ipu-v3.h struct v4l2_pix_format pix; pix 320 samples/v4l/v4l2-pci-skeleton.c struct v4l2_pix_format *pix) pix 322 samples/v4l/v4l2-pci-skeleton.c pix->pixelformat = V4L2_PIX_FMT_YUYV; pix 325 samples/v4l/v4l2-pci-skeleton.c pix->width = 720; pix 326 samples/v4l/v4l2-pci-skeleton.c pix->height = (skel->std & V4L2_STD_525_60) ? 480 : 576; pix 327 samples/v4l/v4l2-pci-skeleton.c pix->field = V4L2_FIELD_INTERLACED; pix 328 samples/v4l/v4l2-pci-skeleton.c pix->colorspace = V4L2_COLORSPACE_SMPTE170M; pix 331 samples/v4l/v4l2-pci-skeleton.c pix->width = skel->timings.bt.width; pix 332 samples/v4l/v4l2-pci-skeleton.c pix->height = skel->timings.bt.height; pix 334 samples/v4l/v4l2-pci-skeleton.c pix->field = V4L2_FIELD_ALTERNATE; pix 335 samples/v4l/v4l2-pci-skeleton.c pix->height /= 2; pix 337 samples/v4l/v4l2-pci-skeleton.c pix->field = V4L2_FIELD_NONE; pix 339 samples/v4l/v4l2-pci-skeleton.c pix->colorspace = V4L2_COLORSPACE_REC709; pix 346 samples/v4l/v4l2-pci-skeleton.c pix->bytesperline = pix->width * 2; pix 347 samples/v4l/v4l2-pci-skeleton.c pix->sizeimage = pix->bytesperline * pix->height; pix 348 samples/v4l/v4l2-pci-skeleton.c pix->priv = 0; pix 355 samples/v4l/v4l2-pci-skeleton.c struct v4l2_pix_format *pix = &f->fmt.pix; pix 363 samples/v4l/v4l2-pci-skeleton.c if (pix->pixelformat != V4L2_PIX_FMT_YUYV) pix 365 samples/v4l/v4l2-pci-skeleton.c skeleton_fill_pix_format(skel, pix); pix 387 samples/v4l/v4l2-pci-skeleton.c skel->format = f->fmt.pix; pix 396 samples/v4l/v4l2-pci-skeleton.c f->fmt.pix = skel->format; pix 1165 scripts/kconfig/gconf.c GdkPixbuf *pix; pix 1167 scripts/kconfig/gconf.c pix = gdk_pixbuf_new_from_xpm_data((const char **) pix 1184 scripts/kconfig/gconf.c COL_PIXBUF, pix, pix 1192 scripts/kconfig/gconf.c g_object_unref(pix);