/linux-master/drivers/staging/media/meson/vdec/ |
H A D | codec_hevc_common.h | 33 static inline int codec_hevc_use_fbc(u32 pixfmt, int is_10bit) argument 40 static inline int codec_hevc_use_downsample(u32 pixfmt, int is_10bit) argument 46 static inline int codec_hevc_use_mmu(u32 revision, u32 pixfmt, int is_10bit) argument 49 codec_hevc_use_fbc(pixfmt, is_10bit);
|
H A D | vdec_platform.c | 18 .pixfmt = V4L2_PIX_FMT_H264, 30 .pixfmt = V4L2_PIX_FMT_MPEG1, 41 .pixfmt = V4L2_PIX_FMT_MPEG2, 56 .pixfmt = V4L2_PIX_FMT_VP9, 68 .pixfmt = V4L2_PIX_FMT_H264, 80 .pixfmt = V4L2_PIX_FMT_MPEG1, 91 .pixfmt = V4L2_PIX_FMT_MPEG2, 106 .pixfmt = V4L2_PIX_FMT_VP9, 118 .pixfmt = V4L2_PIX_FMT_H264, 130 .pixfmt [all...] |
/linux-master/drivers/media/usb/pwc/ |
H A D | pwc-ctrl.c | 141 static int set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt, argument 186 if (pEntry->compressed && pixfmt == V4L2_PIX_FMT_YUV420) 190 pdev->pixfmt = pixfmt; 216 static int set_video_mode_Timon(struct pwc_device *pdev, int size, int pixfmt, argument 249 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) 253 pdev->pixfmt = pixfmt; 267 static int set_video_mode_Kiara(struct pwc_device *pdev, int size, int pixfmt, argument 300 if (pChoose->bandlength > 0 && pixfmt 319 pwc_set_video_mode(struct pwc_device *pdev, int width, int height, int pixfmt, int frames, int *compression, int send_to_cam) argument [all...] |
H A D | pwc-uncompress.c | 33 if (pdev->pixfmt != V4L2_PIX_FMT_YUV420)
|
/linux-master/drivers/media/pci/cx18/ |
H A D | cx18-ioctl.c | 58 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; local 60 pixfmt->width = cx->cxhdl.width; 61 pixfmt->height = cx->cxhdl.height; 62 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; 63 pixfmt->field = V4L2_FIELD_INTERLACED; 65 pixfmt->pixelformat = s->pixelformat; 66 pixfmt->sizeimage = s->vb_bytes_per_frame; 67 pixfmt->bytesperline = s->vb_bytes_per_line; 69 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; 70 pixfmt 81 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; local [all...] |
/linux-master/drivers/media/usb/gspca/ |
H A D | w996Xcf.c | 432 fw = SC(sd->gspca_dev.pixfmt.width) / max_width; 433 fh = SC(sd->gspca_dev.pixfmt.height) / max_height; 435 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; 436 ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; 456 reg_w(sd, 0x14, sd->gspca_dev.pixfmt.width); 457 reg_w(sd, 0x15, sd->gspca_dev.pixfmt.height); 460 reg_w(sd, 0x30, sd->gspca_dev.pixfmt.width); 461 reg_w(sd, 0x31, sd->gspca_dev.pixfmt.height); 466 reg_w(sd, 0x2c, sd->gspca_dev.pixfmt.width / 2); 467 reg_w(sd, 0x2d, sd->gspca_dev.pixfmt [all...] |
H A D | vicam.c | 110 if (gspca_dev->pixfmt.width == 256) 112 if (gspca_dev->pixfmt.height <= 122) { 114 unscaled_height = gspca_dev->pixfmt.height * 2; 116 unscaled_height = gspca_dev->pixfmt.height;
|
H A D | gspca.c | 54 __u32 pixfmt, int w, int h) 56 if ((pixfmt >> 24) >= '0' && (pixfmt >> 24) <= 'z') { 59 pixfmt & 0xff, 60 (pixfmt >> 8) & 0xff, 61 (pixfmt >> 16) & 0xff, 62 pixfmt >> 24, 67 pixfmt, 424 if (gspca_dev->image_len + len > PAGE_ALIGN(gspca_dev->pixfmt.sizeimage)) { 427 PAGE_ALIGN(gspca_dev->pixfmt 53 PDEBUG_MODE(struct gspca_dev *gspca_dev, int debug, char *txt, __u32 pixfmt, int w, int h) argument 947 gspca_get_mode(struct gspca_dev *gspca_dev, int mode, int pixfmt) argument [all...] |
H A D | tv8532.c | 257 sd->packet = gspca_dev->pixfmt.height / 2; 273 data + 2, gspca_dev->pixfmt.width); 275 data + gspca_dev->pixfmt.width + 5, 276 gspca_dev->pixfmt.width);
|
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 335 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; local 337 pixfmt->width = itv->cxhdl.width; 338 pixfmt->height = itv->cxhdl.height; 339 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; 340 pixfmt->field = V4L2_FIELD_INTERLACED; 342 pixfmt->pixelformat = V4L2_PIX_FMT_NV12_16L16; 344 pixfmt->sizeimage = pixfmt->height * 720 * 3 / 2; 345 pixfmt->bytesperline = 720; 347 pixfmt 399 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; local 1365 int pixfmt; local [all...] |
/linux-master/drivers/media/platform/amphion/ |
H A D | vdec.c | 71 .pixfmt = V4L2_PIX_FMT_NV12M_8L128, 78 .pixfmt = V4L2_PIX_FMT_NV12_8L128, 85 .pixfmt = V4L2_PIX_FMT_NV12M_10BE_8L128, 92 .pixfmt = V4L2_PIX_FMT_NV12_10BE_8L128, 99 .pixfmt = V4L2_PIX_FMT_H264, 106 .pixfmt = V4L2_PIX_FMT_H264_MVC, 113 .pixfmt = V4L2_PIX_FMT_HEVC, 120 .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_G, 127 .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_L, 134 .pixfmt [all...] |
H A D | vpu_helpers.c | 35 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { 36 if (!vpu_iface_check_format(inst, pfmt->pixfmt)) 55 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { 56 if (pfmt->pixfmt == pixelfmt && (!type || type == pfmt->type)) 73 if (!sibling || sibling->sibling != fmt->pixfmt || 88 if (sibling && sibling->pixfmt == fmtb) 101 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { 102 if (!vpu_iface_check_format(inst, pfmt->pixfmt))
|
H A D | vpu_dbg.c | 91 inst->out_format.pixfmt, 92 inst->out_format.pixfmt >> 8, 93 inst->out_format.pixfmt >> 16, 94 inst->out_format.pixfmt >> 24, 115 inst->cap_format.pixfmt, 116 inst->cap_format.pixfmt >> 8, 117 inst->cap_format.pixfmt >> 16, 118 inst->cap_format.pixfmt >> 24,
|
/linux-master/drivers/video/fbdev/ |
H A D | gxt4500.c | 148 int pixfmt; /* pixel format, see DFA_PIX_* values */ member in struct:gxt4500_par 300 par->pixfmt = DFA_PIX_32BIT; 302 par->pixfmt = DFA_PIX_24BIT; 305 par->pixfmt = DFA_PIX_24BIT; 309 par->pixfmt = DFA_PIX_16BIT_1555; 311 par->pixfmt = DFA_PIX_16BIT_565; 314 par->pixfmt = DFA_PIX_8BIT; 327 int pixfmt) 329 var->bits_per_pixel = pixsize[pixfmt] * 8; 335 switch (pixfmt) { 326 gxt4500_unpack_pixfmt(struct fb_var_screeninfo *var, int pixfmt) argument 382 unsigned int dfa_ctl, pixfmt, stride; local [all...] |
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | venc.c | 36 .pixfmt = V4L2_PIX_FMT_NV12, 41 .pixfmt = V4L2_PIX_FMT_H264, 46 .pixfmt = V4L2_PIX_FMT_VP8, 51 .pixfmt = V4L2_PIX_FMT_HEVC, 56 .pixfmt = V4L2_PIX_FMT_MPEG4, 61 .pixfmt = V4L2_PIX_FMT_H263, 68 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) argument 75 if (fmt[i].pixfmt == pixfmt) 83 !venus_helper_check_codec(inst, fmt[i].pixfmt)) [all...] |
H A D | vdec.c | 34 .pixfmt = V4L2_PIX_FMT_NV12, 39 .pixfmt = V4L2_PIX_FMT_QC08C, 44 .pixfmt = V4L2_PIX_FMT_QC10C, 49 .pixfmt = V4L2_PIX_FMT_P010, 54 .pixfmt = V4L2_PIX_FMT_H264, 60 .pixfmt = V4L2_PIX_FMT_VP8, 66 .pixfmt = V4L2_PIX_FMT_VP9, 72 .pixfmt = V4L2_PIX_FMT_HEVC, 78 .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_G, 84 .pixfmt 117 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) argument [all...] |
H A D | hfi_platform.h | 42 u32 pixfmt; member in struct:hfi_platform_codec_freq_data
|
/linux-master/drivers/media/platform/ti/davinci/ |
H A D | vpif_capture.c | 468 struct v4l2_pix_format *pixfmt = &common->fmt.fmt.pix; local 476 if (pixfmt->width && pixfmt->height) { 477 if (pixfmt->field == V4L2_FIELD_ANY || 478 pixfmt->field == V4L2_FIELD_NONE) 479 pixfmt->field = V4L2_FIELD_NONE; 482 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10 || 483 pixfmt->pixelformat == V4L2_PIX_FMT_SBGGR8) 486 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10) 949 struct v4l2_pix_format *pixfmt local [all...] |
/linux-master/drivers/staging/media/imx/ |
H A D | imx-media-capture.c | 140 __capture_try_fmt(struct v4l2_pix_format *pixfmt, struct v4l2_rect *compose) argument 149 cc = imx_media_find_pixel_format(pixfmt->pixelformat, PIXFMT_SEL_ANY); 151 imx_media_enum_pixel_formats(&pixfmt->pixelformat, 0, 153 cc = imx_media_find_pixel_format(pixfmt->pixelformat, 158 if (V4L2_FIELD_IS_INTERLACED(pixfmt->field)) { 159 switch (pixfmt->field) { 161 pixfmt->field = V4L2_FIELD_INTERLACED_TB; 164 pixfmt->field = V4L2_FIELD_INTERLACED_BT; 171 v4l2_fill_mbus_format(&fmt_src, pixfmt, 0); 172 imx_media_mbus_fmt_to_pix_fmt(pixfmt, 396 __capture_legacy_try_fmt(struct capture_priv *priv, struct v4l2_subdev_format *fmt_src, struct v4l2_pix_format *pixfmt) argument [all...] |
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 373 int v4l2_fill_pixfmt_mp(struct v4l2_pix_format_mplane *pixfmt, argument 384 pixfmt->width = width; 385 pixfmt->height = height; 386 pixfmt->pixelformat = pixelformat; 387 pixfmt->num_planes = info->mem_planes; 390 plane = &pixfmt->plane_fmt[0]; 417 plane = &pixfmt->plane_fmt[i]; 428 int v4l2_fill_pixfmt(struct v4l2_pix_format *pixfmt, u32 pixelformat, argument 442 pixfmt->width = width; 443 pixfmt [all...] |
/linux-master/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-isp-video.c | 43 const struct v4l2_pix_format_mplane *vid_fmt = &isp->video_capture.pixfmt; 161 unsigned long size = video->pixfmt.plane_fmt[i].sizeimage; 378 f->fmt.pix_mp = isp->video_capture.pixfmt; 440 isp->video_capture.pixfmt = *pixm; 588 iv->pixfmt.width = IS_DEFAULT_WIDTH; 589 iv->pixfmt.height = IS_DEFAULT_HEIGHT; 590 iv->pixfmt.pixelformat = iv->format->fourcc; 591 iv->pixfmt.colorspace = V4L2_COLORSPACE_SRGB;
|
/linux-master/drivers/media/platform/nvidia/tegra-vde/ |
H A D | v4l2.c | 223 struct v4l2_pix_format_mplane *pixfmt; local 229 pixfmt = &ctx->coded_fmt.fmt.pix_mp; 232 pixfmt = &ctx->decoded_fmt.fmt.pix_mp; 242 size = pixfmt->plane_fmt[i].sizeimage; 272 switch (pixfmt->pixelformat) { 432 static void tegra_fill_pixfmt_mp(struct v4l2_pix_format_mplane *pixfmt, argument 442 pixfmt->width = width; 443 pixfmt->height = height; 444 pixfmt->pixelformat = pixelformat; 445 pixfmt [all...] |
/linux-master/drivers/media/platform/verisilicon/ |
H A D | hantro_v4l2.c | 783 struct v4l2_pix_format_mplane *pixfmt; local 788 pixfmt = &ctx->dst_fmt; 791 pixfmt = &ctx->src_fmt; 799 if (*num_planes != pixfmt->num_planes) 801 for (i = 0; i < pixfmt->num_planes; ++i) 802 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) 807 *num_planes = pixfmt->num_planes; 808 for (i = 0; i < pixfmt->num_planes; ++i) 809 sizes[i] = pixfmt->plane_fmt[i].sizeimage; 815 struct v4l2_pix_format_mplane *pixfmt) 814 hantro_buf_plane_check(struct vb2_buffer *vb, struct v4l2_pix_format_mplane *pixfmt) argument [all...] |
/linux-master/drivers/staging/media/deprecated/atmel/ |
H A D | atmel-isc-base.c | 859 struct v4l2_pix_format *pixfmt = &f->fmt.pix; local 884 direct_fmt = find_format_by_fourcc(isc, pixfmt->pixelformat); 910 (char *)&pixfmt->pixelformat, (char *)&sd_fmt->fourcc); 927 if (pixfmt->width > isc->max_width) 928 pixfmt->width = isc->max_width; 929 if (pixfmt->height > isc->max_height) 930 pixfmt->height = isc->max_height; 942 isc->try_config.fourcc = pixfmt->pixelformat; 945 pixfmt->pixelformat = isc->try_config.fourcc = sd_fmt->fourcc; 963 v4l2_fill_mbus_format(&format.format, pixfmt, mbus_cod [all...] |
/linux-master/drivers/media/platform/atmel/ |
H A D | atmel-isi.c | 589 struct v4l2_pix_format *pixfmt = &f->fmt.pix; local 600 isi_fmt = find_format_by_fourcc(isi, pixfmt->pixelformat); 603 pixfmt->pixelformat = isi_fmt->fourcc; 607 pixfmt->width = clamp(pixfmt->width, 0U, MAX_SUPPORT_WIDTH); 608 pixfmt->height = clamp(pixfmt->height, 0U, MAX_SUPPORT_HEIGHT); 610 v4l2_fill_mbus_format(&format.format, pixfmt, isi_fmt->mbus_code); 619 v4l2_fill_pix_format(pixfmt, &format.format); 621 pixfmt [all...] |