Home
last modified time | relevance | path

Searched refs:pixfmt (Results 1 – 25 of 94) sorted by relevance

1234

/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-bayer.rst22 pixfmt-srggb8
23 pixfmt-srggb8-pisp-comp
24 pixfmt-srggb10
25 pixfmt-srggb10p
26 pixfmt-srggb10alaw8
27 pixfmt-srggb10dpcm8
28 pixfmt-srggb10-ipu3
29 pixfmt-srggb12
30 pixfmt-srggb12p
31 pixfmt-srggb14
[all …]
H A Dsdr-formats.rst15 pixfmt-sdr-cu08
16 pixfmt-sdr-cu16le
17 pixfmt-sdr-cs08
18 pixfmt-sdr-cs14le
19 pixfmt-sdr-ru12le
20 pixfmt-sdr-pcu16be
21 pixfmt-sdr-pcu18be
22 pixfmt-sdr-pcu20be
H A Dpixfmt.rst22 pixfmt-v4l2
23 pixfmt-v4l2-mplane
24 pixfmt-intro
25 pixfmt-indexed
26 pixfmt-rgb
27 pixfmt-bayer
31 pixfmt-compressed
35 pixfmt-reserved
H A Dtch-formats.rst15 pixfmt-tch-td16
16 pixfmt-tch-td08
17 pixfmt-tch-tu16
18 pixfmt-tch-tu08
H A Ddepth-formats.rst15 pixfmt-inzi
16 pixfmt-z16
17 pixfmt-cnf4
/linux/drivers/staging/media/meson/vdec/
H A Dvdec_platform.c18 .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_H264,
118 .pixfmt = V4L2_PIX_FMT_MPEG1,
129 .pixfmt = V4L2_PIX_FMT_MPEG2,
[all …]
H A Dcodec_hevc_common.h33 static inline int codec_hevc_use_fbc(u32 pixfmt, int is_10bit) in codec_hevc_use_fbc() argument
40 static inline int codec_hevc_use_downsample(u32 pixfmt, int is_10bit) in codec_hevc_use_downsample() argument
46 static inline int codec_hevc_use_mmu(u32 revision, u32 pixfmt, int is_10bit) in codec_hevc_use_mmu() argument
49 codec_hevc_use_fbc(pixfmt, is_10bit); in codec_hevc_use_mmu()
/linux/drivers/media/usb/pwc/
H A Dpwc-ctrl.c141 static int set_video_mode_Nala(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Nala() argument
186 if (pEntry->compressed && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Nala()
190 pdev->pixfmt = pixfmt; in set_video_mode_Nala()
216 static int set_video_mode_Timon(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Timon() argument
249 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Timon()
253 pdev->pixfmt = pixfmt; in set_video_mode_Timon()
267 static int set_video_mode_Kiara(struct pwc_device *pdev, int size, int pixfmt, in set_video_mode_Kiara() argument
300 if (pChoose->bandlength > 0 && pixfmt == V4L2_PIX_FMT_YUV420) in set_video_mode_Kiara()
304 pdev->pixfmt = pixfmt; in set_video_mode_Kiara()
320 int pixfmt, int frames, int *compression, int send_to_cam) in pwc_set_video_mode() argument
[all …]
/linux/drivers/video/fbdev/
H A Dgxt4500.c148 int pixfmt; /* pixel format, see DFA_PIX_* values */ member
300 par->pixfmt = DFA_PIX_32BIT; in gxt4500_var_to_par()
302 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
305 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
309 par->pixfmt = DFA_PIX_16BIT_1555; in gxt4500_var_to_par()
311 par->pixfmt = DFA_PIX_16BIT_565; in gxt4500_var_to_par()
314 par->pixfmt = DFA_PIX_8BIT; in gxt4500_var_to_par()
327 int pixfmt) in gxt4500_unpack_pixfmt() argument
329 var->bits_per_pixel = pixsize[pixfmt] * 8; in gxt4500_unpack_pixfmt()
335 switch (pixfmt) { in gxt4500_unpack_pixfmt()
[all …]
/linux/drivers/media/usb/gspca/
H A Dw996Xcf.c432 fw = SC(sd->gspca_dev.pixfmt.width) / max_width; in w9968cf_set_crop_window()
433 fh = SC(sd->gspca_dev.pixfmt.height) / max_height; in w9968cf_set_crop_window()
435 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; in w9968cf_set_crop_window()
436 ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; in w9968cf_set_crop_window()
456 reg_w(sd, 0x14, sd->gspca_dev.pixfmt.width); in w9968cf_mode_init_regs()
457 reg_w(sd, 0x15, sd->gspca_dev.pixfmt.height); in w9968cf_mode_init_regs()
460 reg_w(sd, 0x30, sd->gspca_dev.pixfmt.width); in w9968cf_mode_init_regs()
461 reg_w(sd, 0x31, sd->gspca_dev.pixfmt.height); in w9968cf_mode_init_regs()
466 reg_w(sd, 0x2c, sd->gspca_dev.pixfmt.width / 2); in w9968cf_mode_init_regs()
467 reg_w(sd, 0x2d, sd->gspca_dev.pixfmt.width / 4); in w9968cf_mode_init_regs()
[all …]
H A Dtouptek.c239 unsigned int w = gspca_dev->pixfmt.width; in setexposure()
328 unsigned int w = gspca_dev->pixfmt.width; in configure_wh()
374 reg_w(gspca_dev, gspca_dev->pixfmt.height, REG_Y_OUTPUT_SIZE); in configure_wh()
420 gspca_dev->pixfmt.width); in configure_encrypted()
560 if (sd->this_f + len == gspca_dev->pixfmt.sizeimage) { in sd_pkt_scan()
563 sd->this_f, gspca_dev->pixfmt.sizeimage, len); in sd_pkt_scan()
568 sd->this_f, gspca_dev->pixfmt.sizeimage, len); in sd_pkt_scan()
H A Dov519.c3451 if (gspca_dev->pixfmt.width != 800) in sd_isoc_init()
3495 hsegs = (sd->gspca_dev.pixfmt.width >> 3) - 1; in ov511_mode_init_regs()
3496 vsegs = (sd->gspca_dev.pixfmt.height >> 3) - 1; in ov511_mode_init_regs()
3529 if (sd->gspca_dev.pixfmt.width == 320) in ov511_mode_init_regs()
3539 if (sd->gspca_dev.pixfmt.width != 640) { in ov511_mode_init_regs()
3573 needed = fps * sd->gspca_dev.pixfmt.width * in ov511_mode_init_regs()
3574 sd->gspca_dev.pixfmt.height * 3 / 2; in ov511_mode_init_regs()
3641 hsegs = sd->gspca_dev.pixfmt.width / 16; in ov518_mode_init_regs()
3642 vsegs = sd->gspca_dev.pixfmt.height / 4; in ov518_mode_init_regs()
3682 sd->gspca_dev.pixfmt.width == 640) { in ov518_mode_init_regs()
[all …]
H A Dvicam.c110 if (gspca_dev->pixfmt.width == 256) in vicam_read_frame()
112 if (gspca_dev->pixfmt.height <= 122) { in vicam_read_frame()
114 unscaled_height = gspca_dev->pixfmt.height * 2; in vicam_read_frame()
116 unscaled_height = gspca_dev->pixfmt.height; in vicam_read_frame()
H A Dnw80x.c1704 sd->ae_res = gspca_dev->pixfmt.width * gspca_dev->pixfmt.height; in setautogain()
1713 sd->ae_res = gspca_dev->pixfmt.width * in setautogain()
1714 gspca_dev->pixfmt.height; in setautogain()
1854 if (gspca_dev->pixfmt.width == 320) in sd_start()
1861 if (gspca_dev->pixfmt.width == 320) in sd_start()
1868 if (gspca_dev->pixfmt.width == 320) in sd_start()
H A Dtv8532.c257 sd->packet = gspca_dev->pixfmt.height / 2; in sd_pkt_scan()
273 data + 2, gspca_dev->pixfmt.width); in sd_pkt_scan()
275 data + gspca_dev->pixfmt.width + 5, in sd_pkt_scan()
276 gspca_dev->pixfmt.width); in sd_pkt_scan()
/linux/drivers/media/pci/cx18/
H A Dcx18-ioctl.c58 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in cx18_g_fmt_vid_cap() local
60 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
61 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
62 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in cx18_g_fmt_vid_cap()
63 pixfmt->field = V4L2_FIELD_INTERLACED; in cx18_g_fmt_vid_cap()
65 pixfmt->pixelformat = s->pixelformat; in cx18_g_fmt_vid_cap()
66 pixfmt->sizeimage = s->vb_bytes_per_frame; in cx18_g_fmt_vid_cap()
67 pixfmt->bytesperline = s->vb_bytes_per_line; in cx18_g_fmt_vid_cap()
69 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in cx18_g_fmt_vid_cap()
70 pixfmt->sizeimage = 128 * 1024; in cx18_g_fmt_vid_cap()
[all …]
/linux/drivers/media/pci/ivtv/
H A Divtv-ioctl.c335 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in ivtv_g_fmt_vid_cap() local
337 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap()
338 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
339 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in ivtv_g_fmt_vid_cap()
340 pixfmt->field = V4L2_FIELD_INTERLACED; in ivtv_g_fmt_vid_cap()
342 pixfmt->pixelformat = V4L2_PIX_FMT_NV12_16L16; in ivtv_g_fmt_vid_cap()
344 pixfmt->sizeimage = pixfmt->height * 720 * 3 / 2; in ivtv_g_fmt_vid_cap()
345 pixfmt->bytesperline = 720; in ivtv_g_fmt_vid_cap()
347 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in ivtv_g_fmt_vid_cap()
348 pixfmt->sizeimage = 128 * 1024; in ivtv_g_fmt_vid_cap()
[all …]
/linux/drivers/media/platform/amphion/
H A Dvdec.c71 .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 = V4L2_PIX_FMT_MPEG2,
[all …]
H A Dvpu_helpers.c35 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_check_type()
36 if (!vpu_iface_check_format(inst, pfmt->pixfmt)) in vpu_helper_check_type()
55 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_find_format()
56 if (pfmt->pixfmt == pixelfmt && (!type || type == pfmt->type)) in vpu_helper_find_format()
73 if (!sibling || sibling->sibling != fmt->pixfmt || in vpu_helper_find_sibling()
88 if (sibling && sibling->pixfmt == fmtb) in vpu_helper_match_format()
101 for (pfmt = inst->formats; pfmt->pixfmt; pfmt++) { in vpu_helper_enum_format()
102 if (!vpu_iface_check_format(inst, pfmt->pixfmt)) in vpu_helper_enum_format()
H A Dvpu_dbg.c91 inst->out_format.pixfmt, in vpu_dbg_instance()
92 inst->out_format.pixfmt >> 8, in vpu_dbg_instance()
93 inst->out_format.pixfmt >> 16, in vpu_dbg_instance()
94 inst->out_format.pixfmt >> 24, in vpu_dbg_instance()
115 inst->cap_format.pixfmt, in vpu_dbg_instance()
116 inst->cap_format.pixfmt >> 8, in vpu_dbg_instance()
117 inst->cap_format.pixfmt >> 16, in vpu_dbg_instance()
118 inst->cap_format.pixfmt >> 24, in vpu_dbg_instance()
/linux/drivers/media/platform/ti/davinci/
H A Dvpif_capture.c466 struct v4l2_pix_format *pixfmt = &common->fmt.fmt.pix; in vpif_update_std_info() local
474 if (pixfmt->width && pixfmt->height) { in vpif_update_std_info()
475 if (pixfmt->field == V4L2_FIELD_ANY || in vpif_update_std_info()
476 pixfmt->field == V4L2_FIELD_NONE) in vpif_update_std_info()
477 pixfmt->field = V4L2_FIELD_NONE; in vpif_update_std_info()
480 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10 || in vpif_update_std_info()
481 pixfmt->pixelformat == V4L2_PIX_FMT_SBGGR8) in vpif_update_std_info()
484 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10) in vpif_update_std_info()
947 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in vpif_try_fmt_vid_cap() local
953 pixfmt->field = common->fmt.fmt.pix.field; in vpif_try_fmt_vid_cap()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-common.c377 int v4l2_fill_pixfmt_mp(struct v4l2_pix_format_mplane *pixfmt, in v4l2_fill_pixfmt_mp() argument
388 pixfmt->width = width; in v4l2_fill_pixfmt_mp()
389 pixfmt->height = height; in v4l2_fill_pixfmt_mp()
390 pixfmt->pixelformat = pixelformat; in v4l2_fill_pixfmt_mp()
391 pixfmt->num_planes = info->mem_planes; in v4l2_fill_pixfmt_mp()
394 plane = &pixfmt->plane_fmt[0]; in v4l2_fill_pixfmt_mp()
421 plane = &pixfmt->plane_fmt[i]; in v4l2_fill_pixfmt_mp()
432 int v4l2_fill_pixfmt(struct v4l2_pix_format *pixfmt, u32 pixelformat, in v4l2_fill_pixfmt() argument
446 pixfmt->width = width; in v4l2_fill_pixfmt()
447 pixfmt->height = height; in v4l2_fill_pixfmt()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c788 struct v4l2_pix_format_mplane *pixfmt; in hantro_queue_setup() local
793 pixfmt = &ctx->dst_fmt; in hantro_queue_setup()
796 pixfmt = &ctx->src_fmt; in hantro_queue_setup()
804 if (*num_planes != pixfmt->num_planes) in hantro_queue_setup()
806 for (i = 0; i < pixfmt->num_planes; ++i) in hantro_queue_setup()
807 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup()
812 *num_planes = pixfmt->num_planes; in hantro_queue_setup()
813 for (i = 0; i < pixfmt->num_planes; ++i) in hantro_queue_setup()
814 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup()
820 struct v4l2_pix_format_mplane *pixfmt) in hantro_buf_plane_check() argument
[all …]
/linux/drivers/media/platform/atmel/
H A Datmel-isi.c587 struct v4l2_pix_format *pixfmt = &f->fmt.pix; in isi_try_fmt() local
598 isi_fmt = find_format_by_fourcc(isi, pixfmt->pixelformat); in isi_try_fmt()
601 pixfmt->pixelformat = isi_fmt->fourcc; in isi_try_fmt()
605 pixfmt->width = clamp(pixfmt->width, 0U, MAX_SUPPORT_WIDTH); in isi_try_fmt()
606 pixfmt->height = clamp(pixfmt->height, 0U, MAX_SUPPORT_HEIGHT); in isi_try_fmt()
608 v4l2_fill_mbus_format(&format.format, pixfmt, isi_fmt->mbus_code); in isi_try_fmt()
617 v4l2_fill_pix_format(pixfmt, &format.format); in isi_try_fmt()
619 pixfmt->field = V4L2_FIELD_NONE; in isi_try_fmt()
620 pixfmt->bytesperline = pixfmt->width * isi_fmt->bpp; in isi_try_fmt()
621 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in isi_try_fmt()
/linux/drivers/media/i2c/
H A Ds5k5baf.c306 int pixfmt; member
909 u16 reg_fmt = s5k5baf_formats[state->pixfmt].reg_p_fmt; in s5k5baf_hw_set_config()
1009 state->pixfmt = 0; in s5k5baf_initialize_data()
1267 int pixfmt; in s5k5baf_try_isp_format() local
1274 pixfmt = s5k5baf_find_pixfmt(mf); in s5k5baf_try_isp_format()
1276 mf->colorspace = s5k5baf_formats[pixfmt].colorspace; in s5k5baf_try_isp_format()
1277 mf->code = s5k5baf_formats[pixfmt].code; in s5k5baf_try_isp_format()
1280 return pixfmt; in s5k5baf_try_isp_format()
1288 const struct s5k5baf_pixfmt *pixfmt; in s5k5baf_get_fmt() local
1304 pixfmt = &s5k5baf_formats[state->pixfmt]; in s5k5baf_get_fmt()
[all …]

1234