Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dyuv-formats.rst27 pixfmt-packed-yuv
28 pixfmt-grey
29 pixfmt-y10
30 pixfmt-y12
31 pixfmt-y14
32 pixfmt-y10b
33 pixfmt-y10p
34 pixfmt-y16
35 pixfmt-y16-be
36 pixfmt-y8i
[all …]
Dpixfmt-bayer.rst22 pixfmt-srggb8
23 pixfmt-srggb10
24 pixfmt-srggb10p
25 pixfmt-srggb10alaw8
26 pixfmt-srggb10dpcm8
27 pixfmt-srggb10-ipu3
28 pixfmt-srggb12
29 pixfmt-srggb12p
30 pixfmt-srggb14
31 pixfmt-srggb14p
[all …]
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
Dmeta-formats.rst15 pixfmt-meta-d4xx
16 pixfmt-meta-intel-ipu3
17 pixfmt-meta-rkisp1
18 pixfmt-meta-uvc
19 pixfmt-meta-vsp1-hgo
20 pixfmt-meta-vsp1-hgt
21 pixfmt-meta-vivid
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
Dtch-formats.rst15 pixfmt-tch-td16
16 pixfmt-tch-td08
17 pixfmt-tch-tu16
18 pixfmt-tch-tu08
Ddepth-formats.rst15 pixfmt-inzi
16 pixfmt-z16
17 pixfmt-cnf4
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
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 …]
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()
/kernel/linux/linux-5.10/drivers/media/platform/davinci/
Dvpbe_osd.c104 #define is_rgb_pixfmt(pixfmt) \ argument
105 (((pixfmt) == PIXFMT_RGB565) || ((pixfmt) == PIXFMT_RGB888))
106 #define is_yc_pixfmt(pixfmt) \ argument
107 (((pixfmt) == PIXFMT_YCBCRI) || ((pixfmt) == PIXFMT_YCRCBI) || \
108 ((pixfmt) == PIXFMT_NV12))
200 enum osd_pix_format pixfmt) in _osd_set_palette_map() argument
209 switch (pixfmt) { in _osd_set_palette_map()
316 enum osd_pix_format pixfmt) in _osd_enable_color_key() argument
318 switch (pixfmt) { in _osd_enable_color_key()
537 if (cfg->pixfmt != PIXFMT_OSD_ATTR) in osd_enable_layer()
[all …]
Dvpbe_display.c397 if (cfg->pixfmt == PIXFMT_NV12) { in vpbe_set_osd_display_params()
419 struct v4l2_pix_format *pixfmt = &layer->pix_fmt; in vpbe_disp_calculate_scale_factor() local
447 cfg->xsize = pixfmt->width; in vpbe_disp_calculate_scale_factor()
448 cfg->ysize = pixfmt->height; in vpbe_disp_calculate_scale_factor()
454 if (pixfmt->width < expected_xsize) { in vpbe_disp_calculate_scale_factor()
455 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; in vpbe_disp_calculate_scale_factor()
486 if (pixfmt->height < expected_ysize) { in vpbe_disp_calculate_scale_factor()
487 v_scale = expected_ysize / pixfmt->height; in vpbe_disp_calculate_scale_factor()
564 struct v4l2_pix_format *pixfmt, int check) in vpbe_try_format() argument
573 if ((pixfmt->pixelformat != V4L2_PIX_FMT_UYVY) && in vpbe_try_format()
[all …]
Dvpfe_capture.c735 struct v4l2_pix_format *pixfmt) in vpfe_check_format() argument
742 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
748 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
749 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
765 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
770 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
774 if (pixfmt->field == V4L2_FIELD_ANY) { in vpfe_check_format()
776 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
783 if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { in vpfe_check_format()
788 switch (pixfmt->field) { in vpfe_check_format()
[all …]
Dvpif_capture.c467 struct v4l2_pix_format *pixfmt = &common->fmt.fmt.pix; in vpif_update_std_info() local
475 if (pixfmt->width && pixfmt->height) { in vpif_update_std_info()
476 if (pixfmt->field == V4L2_FIELD_ANY || in vpif_update_std_info()
477 pixfmt->field == V4L2_FIELD_NONE) in vpif_update_std_info()
478 pixfmt->field = V4L2_FIELD_NONE; in vpif_update_std_info()
481 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10 || in vpif_update_std_info()
482 pixfmt->pixelformat == V4L2_PIX_FMT_SBGGR8) in vpif_update_std_info()
485 if (pixfmt->pixelformat == V4L2_PIX_FMT_SGRBG10) in vpif_update_std_info()
959 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in vpif_try_fmt_vid_cap() local
965 pixfmt->field = common->fmt.fmt.pix.field; in vpif_try_fmt_vid_cap()
[all …]
Ddm355_ccdc.c716 static int ccdc_set_pixel_format(u32 pixfmt) in ccdc_set_pixel_format() argument
722 if (pixfmt == V4L2_PIX_FMT_SBGGR8) in ccdc_set_pixel_format()
724 else if (pixfmt != V4L2_PIX_FMT_SBGGR16) in ccdc_set_pixel_format()
727 if (pixfmt == V4L2_PIX_FMT_YUYV) in ccdc_set_pixel_format()
729 else if (pixfmt == V4L2_PIX_FMT_UYVY) in ccdc_set_pixel_format()
739 u32 pixfmt; in ccdc_get_pixel_format() local
743 pixfmt = V4L2_PIX_FMT_SBGGR8; in ccdc_get_pixel_format()
745 pixfmt = V4L2_PIX_FMT_SBGGR16; in ccdc_get_pixel_format()
748 pixfmt = V4L2_PIX_FMT_YUYV; in ccdc_get_pixel_format()
750 pixfmt = V4L2_PIX_FMT_UYVY; in ccdc_get_pixel_format()
[all …]
Ddm644x_ccdc.c570 static int ccdc_set_pixel_format(u32 pixfmt) in ccdc_set_pixel_format() argument
574 if (pixfmt == V4L2_PIX_FMT_SBGGR8) in ccdc_set_pixel_format()
576 else if (pixfmt != V4L2_PIX_FMT_SBGGR16) in ccdc_set_pixel_format()
579 if (pixfmt == V4L2_PIX_FMT_YUYV) in ccdc_set_pixel_format()
581 else if (pixfmt == V4L2_PIX_FMT_UYVY) in ccdc_set_pixel_format()
592 u32 pixfmt; in ccdc_get_pixel_format() local
596 pixfmt = V4L2_PIX_FMT_SBGGR8; in ccdc_get_pixel_format()
598 pixfmt = V4L2_PIX_FMT_SBGGR16; in ccdc_get_pixel_format()
601 pixfmt = V4L2_PIX_FMT_YUYV; in ccdc_get_pixel_format()
603 pixfmt = V4L2_PIX_FMT_UYVY; in ccdc_get_pixel_format()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/pwc/
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 …]
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dgxt4500.c147 int pixfmt; /* pixel format, see DFA_PIX_* values */ member
299 par->pixfmt = DFA_PIX_32BIT; in gxt4500_var_to_par()
301 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
304 par->pixfmt = DFA_PIX_24BIT; in gxt4500_var_to_par()
308 par->pixfmt = DFA_PIX_16BIT_1555; in gxt4500_var_to_par()
310 par->pixfmt = DFA_PIX_16BIT_565; in gxt4500_var_to_par()
313 par->pixfmt = DFA_PIX_8BIT; in gxt4500_var_to_par()
326 int pixfmt) in gxt4500_unpack_pixfmt() argument
328 var->bits_per_pixel = pixsize[pixfmt] * 8; in gxt4500_unpack_pixfmt()
334 switch (pixfmt) { in gxt4500_unpack_pixfmt()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
Dw996Xcf.c433 fw = SC(sd->gspca_dev.pixfmt.width) / max_width; in w9968cf_set_crop_window()
434 fh = SC(sd->gspca_dev.pixfmt.height) / max_height; in w9968cf_set_crop_window()
436 cw = (fw >= fh) ? max_width : SC(sd->gspca_dev.pixfmt.width) / fh; in w9968cf_set_crop_window()
437 ch = (fw >= fh) ? SC(sd->gspca_dev.pixfmt.height) / fw : max_height; in w9968cf_set_crop_window()
457 reg_w(sd, 0x14, sd->gspca_dev.pixfmt.width); in w9968cf_mode_init_regs()
458 reg_w(sd, 0x15, sd->gspca_dev.pixfmt.height); in w9968cf_mode_init_regs()
461 reg_w(sd, 0x30, sd->gspca_dev.pixfmt.width); in w9968cf_mode_init_regs()
462 reg_w(sd, 0x31, sd->gspca_dev.pixfmt.height); in w9968cf_mode_init_regs()
467 reg_w(sd, 0x2c, sd->gspca_dev.pixfmt.width / 2); in w9968cf_mode_init_regs()
468 reg_w(sd, 0x2d, sd->gspca_dev.pixfmt.width / 4); in w9968cf_mode_init_regs()
[all …]
Dgspca.c54 __u32 pixfmt, int w, int h) in PDEBUG_MODE() argument
56 if ((pixfmt >> 24) >= '0' && (pixfmt >> 24) <= 'z') { in PDEBUG_MODE()
59 pixfmt & 0xff, in PDEBUG_MODE()
60 (pixfmt >> 8) & 0xff, in PDEBUG_MODE()
61 (pixfmt >> 16) & 0xff, in PDEBUG_MODE()
62 pixfmt >> 24, in PDEBUG_MODE()
67 pixfmt, in PDEBUG_MODE()
424 if (gspca_dev->image_len + len > PAGE_ALIGN(gspca_dev->pixfmt.sizeimage)) { in gspca_frame_add()
427 PAGE_ALIGN(gspca_dev->pixfmt.sizeimage)); in gspca_frame_add()
534 bandwidth = gspca_dev->pixfmt.sizeimage; in which_bandwidth()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_video.c355 struct v4l2_pix_format *pixfmt = &f->fmt.pix; in sun6i_video_try_fmt() local
358 if (!is_pixformat_valid(pixfmt->pixelformat)) in sun6i_video_try_fmt()
359 pixfmt->pixelformat = supported_pixformats[0]; in sun6i_video_try_fmt()
361 v4l_bound_align_image(&pixfmt->width, MIN_WIDTH, MAX_WIDTH, 1, in sun6i_video_try_fmt()
362 &pixfmt->height, MIN_HEIGHT, MAX_WIDTH, 1, 1); in sun6i_video_try_fmt()
364 bpp = sun6i_csi_get_bpp(pixfmt->pixelformat); in sun6i_video_try_fmt()
365 pixfmt->bytesperline = (pixfmt->width * bpp) >> 3; in sun6i_video_try_fmt()
366 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in sun6i_video_try_fmt()
368 if (pixfmt->field == V4L2_FIELD_ANY) in sun6i_video_try_fmt()
369 pixfmt->field = V4L2_FIELD_NONE; in sun6i_video_try_fmt()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-ioctl.c340 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in ivtv_g_fmt_vid_cap() local
342 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap()
343 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
344 pixfmt->colorspace = V4L2_COLORSPACE_SMPTE170M; in ivtv_g_fmt_vid_cap()
345 pixfmt->field = V4L2_FIELD_INTERLACED; in ivtv_g_fmt_vid_cap()
347 pixfmt->pixelformat = V4L2_PIX_FMT_HM12; in ivtv_g_fmt_vid_cap()
349 pixfmt->sizeimage = pixfmt->height * 720 * 3 / 2; in ivtv_g_fmt_vid_cap()
350 pixfmt->bytesperline = 720; in ivtv_g_fmt_vid_cap()
352 pixfmt->pixelformat = V4L2_PIX_FMT_MPEG; in ivtv_g_fmt_vid_cap()
353 pixfmt->sizeimage = 128 * 1024; in ivtv_g_fmt_vid_cap()
[all …]
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-common.c353 int v4l2_fill_pixfmt_mp(struct v4l2_pix_format_mplane *pixfmt, in v4l2_fill_pixfmt_mp() argument
364 pixfmt->width = width; in v4l2_fill_pixfmt_mp()
365 pixfmt->height = height; in v4l2_fill_pixfmt_mp()
366 pixfmt->pixelformat = pixelformat; in v4l2_fill_pixfmt_mp()
367 pixfmt->num_planes = info->mem_planes; in v4l2_fill_pixfmt_mp()
370 plane = &pixfmt->plane_fmt[0]; in v4l2_fill_pixfmt_mp()
397 plane = &pixfmt->plane_fmt[i]; in v4l2_fill_pixfmt_mp()
408 int v4l2_fill_pixfmt(struct v4l2_pix_format *pixfmt, u32 pixelformat, in v4l2_fill_pixfmt() argument
422 pixfmt->width = width; in v4l2_fill_pixfmt()
423 pixfmt->height = height; in v4l2_fill_pixfmt()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/
Dvenc.c36 .pixfmt = V4L2_PIX_FMT_NV12,
40 .pixfmt = V4L2_PIX_FMT_MPEG4,
44 .pixfmt = V4L2_PIX_FMT_H263,
48 .pixfmt = V4L2_PIX_FMT_H264,
52 .pixfmt = V4L2_PIX_FMT_VP8,
56 .pixfmt = V4L2_PIX_FMT_HEVC,
63 find_format(struct venus_inst *inst, u32 pixfmt, u32 type) in find_format() argument
70 if (fmt[i].pixfmt == pixfmt) in find_format()
78 !venus_helper_check_codec(inst, fmt[i].pixfmt)) in find_format()
100 venus_helper_check_codec(inst, fmt[i].pixfmt); in find_format_by_index()
[all …]
Dvdec.c34 .pixfmt = V4L2_PIX_FMT_NV12,
38 .pixfmt = V4L2_PIX_FMT_MPEG4,
43 .pixfmt = V4L2_PIX_FMT_MPEG2,
48 .pixfmt = V4L2_PIX_FMT_H263,
53 .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_G,
58 .pixfmt = V4L2_PIX_FMT_VC1_ANNEX_L,
63 .pixfmt = V4L2_PIX_FMT_H264,
68 .pixfmt = V4L2_PIX_FMT_VP8,
73 .pixfmt = V4L2_PIX_FMT_VP9,
78 .pixfmt = V4L2_PIX_FMT_XVID,
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/hantro/
Dhantro_v4l2.c579 struct v4l2_pix_format_mplane *pixfmt; in hantro_queue_setup() local
584 pixfmt = &ctx->dst_fmt; in hantro_queue_setup()
587 pixfmt = &ctx->src_fmt; in hantro_queue_setup()
595 if (*num_planes != pixfmt->num_planes) in hantro_queue_setup()
597 for (i = 0; i < pixfmt->num_planes; ++i) in hantro_queue_setup()
598 if (sizes[i] < pixfmt->plane_fmt[i].sizeimage) in hantro_queue_setup()
603 *num_planes = pixfmt->num_planes; in hantro_queue_setup()
604 for (i = 0; i < pixfmt->num_planes; ++i) in hantro_queue_setup()
605 sizes[i] = pixfmt->plane_fmt[i].sizeimage; in hantro_queue_setup()
611 struct v4l2_pix_format_mplane *pixfmt) in hantro_buf_plane_check() argument
[all …]

12345