/linux/drivers/media/platform/qcom/camss/ ! |
H A D | camss-format.c | 17 * @formats: supported media bus formats array 18 * @nformats: size of @formats array 23 u8 camss_format_get_bpp(const struct camss_format_info *formats, unsigned int nformats, u32 code) in camss_format_get_bpp() argument 28 if (code == formats[i].code) in camss_format_get_bpp() 29 return formats[i].mbus_bpp; in camss_format_get_bpp() 33 return formats[0].mbus_bpp; in camss_format_get_bpp() 69 * @formats: a pointer to formats array 70 * @nformats: size of @formats array 74 int camss_format_find_format(u32 code, u32 pixelformat, const struct camss_format_info *formats, in camss_format_find_format() argument 80 if (formats[i].code == code && in camss_format_find_format() [all …]
|
H A D | camss-csiphy.c | 98 .formats = formats_8x16 103 .formats = formats_8x96 108 .formats = formats_sdm845 113 * @formats: supported media bus formats array 114 * @nformats: size of @formats array 119 static u8 csiphy_get_bpp(const struct csiphy_format_info *formats, in csiphy_get_bpp() argument 125 if (code == formats[i].code) in csiphy_get_bpp() 126 return formats[i].bpp; in csiphy_get_bpp() 130 return formats[0].bpp; in csiphy_get_bpp() 144 u8 bpp = csiphy_get_bpp(csiphy->res->formats->formats, csiphy->res->formats->nformats, in csiphy_set_clock_rates() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ ! |
H A D | pixfmt-intro.rst | 4 Standard Image Formats 8 necessary to have standard image data formats which both sides will 9 interpret the same way. V4L2 includes several such formats, and this 11 image data formats in V4L2. 13 V4L2 drivers are not limited to these formats, however. Driver-specific 14 formats are possible. In that case the application may depend on a codec 15 to convert images to one of the standard formats when needed. But the 22 Even so, ultimately, some standard formats are needed, so the V4L2 24 formats. 26 The V4L2 standard formats are mainly uncompressed formats. The pixels [all …]
|
H A D | pixfmt.rst | 6 Image Formats 13 version (see :ref:`planar-apis`). Image formats are negotiated with 15 focus on video capturing and output, for overlay frame buffer formats 28 yuv-formats 29 hsv-formats 30 depth-formats 32 sdr-formats 33 tch-formats 34 meta-formats
|
H A D | vidioc-g-dv-timings.rst | 60 the formats in the :ref:`cea861` and :ref:`vesadmt` standards. If 102 formats the height of the active video in each field is 128 - Vertical front porch in lines. For interlaced formats this refers 132 - Vertical sync length in lines. For interlaced formats this refers 136 - Vertical back porch in lines. For interlaced formats this refers 141 interlaced field formats. Must be 0 for progressive formats. 145 interlaced field formats. Must be 0 for progressive formats. 149 interlaced field formats. Must be 0 for progressive formats. 262 - CEA-861 specific: set for CEA-861 formats with a framerate that is 263 a multiple of six. These formats can be optionally played at 1 / [all …]
|
H A D | dev-subdev.rst | 30 - negotiate image formats on individual pads 77 .. _pad-level-formats: 79 Pad-level Formats 84 Pad-level formats are only applicable to very complex devices that 94 Image formats are typically negotiated on video capture and output 122 configured differently. Applications need to configure the formats at 130 negotiate formats on a per-pad basis. 134 formats. The pipeline is checked for formats mismatch at 147 Acceptable formats on pads can (and usually do) depend on a number of 148 external parameters, such as formats on other pads, active links, or [all …]
|
H A D | planar-apis.rst | 13 of such formats see :ref:`pixfmt`. 28 Multi-planar formats 31 Multi-planar API introduces new multi-planar formats. Those formats use 34 can handle all single-planar formats as well (as long as they are passed 36 handle multi-planar formats. 45 single- and multi-planar formats. 48 New structures for describing multi-planar formats are added: struct 51 Drivers may define new multi-planar formats, which have distinct
|
H A D | format.rst | 7 Data Formats 15 within one kind many different formats are possible, in particular there is an 16 abundance of image formats. Although drivers must provide a default and 24 A single mechanism exists to negotiate all data formats using the 30 format. The data formats supported by the V4L2 API are covered in the 32 image formats see :ref:`pixfmt`. 74 enumerate all image formats supported by video capture, overlay or 82 Drivers are not supposed to convert image formats in kernel space. 83 They must enumerate only formats directly supported by the hardware. 88 Enumerating formats an application has no a-priori knowledge of
|
H A D | pixfmt-packed-yuv.rst | 6 Packed YUV formats 9 Similarly to the packed RGB formats, the packed YUV formats store the Y, Cb and 25 These formats do not subsample the chroma components and store each pixels as a 28 The next table lists the packed YUV 4:4:4 formats with less than 8 bits per 44 .. flat-table:: Packed YUV 4:4:4 Image Formats (less than 8bpc) 150 For the YUV444 and YUV555 formats, the value of alpha bits is undefined 156 The next table lists the packed YUV 4:4:4 formats with 8 bits per component. 162 .. flat-table:: Packed YUV Image Formats (8bpc) 260 The next table lists the packed YUV 4:4:4 formats with 12 bits per component. 264 .. flat-table:: Packed YUV 4:4:4 Image Formats (12bpc) [all …]
|
/linux/sound/soc/qcom/qdsp6/ ! |
H A D | q6dsp-lpass-ports.c | 16 .formats = SNDRV_PCM_FMTBIT_S16_LE | \ 34 .formats = SNDRV_PCM_FMTBIT_S16_LE | \ 52 .formats = SNDRV_PCM_FMTBIT_S16_LE | \ 70 .formats = SNDRV_PCM_FMTBIT_S16_LE | \ 88 .formats = SNDRV_PCM_FMTBIT_S16_LE | \ 108 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE | 126 .formats = SNDRV_PCM_FMTBIT_S16_LE | 143 .formats = SNDRV_PCM_FMTBIT_S16_LE | 158 .formats = SNDRV_PCM_FMTBIT_S16_LE | 171 .formats = SNDRV_PCM_FMTBIT_S16_LE | [all …]
|
/linux/sound/soc/mediatek/mt8186/ ! |
H A D | mt8186-dai-hostless.c | 119 .formats = MTK_HOSTLESS_FORMATS, 126 .formats = MTK_HOSTLESS_FORMATS, 138 .formats = MTK_HOSTLESS_FORMATS, 145 .formats = MTK_HOSTLESS_FORMATS, 157 .formats = MTK_HOSTLESS_FORMATS, 164 .formats = MTK_HOSTLESS_FORMATS, 176 .formats = MTK_HOSTLESS_FORMATS, 183 .formats = MTK_HOSTLESS_FORMATS, 196 .formats = MTK_HOSTLESS_FORMATS, 208 .formats = MTK_HOSTLESS_FORMATS, [all …]
|
/linux/drivers/firmware/google/ ! |
H A D | framebuffer-coreboot.c | 24 static const struct simplefb_format formats[] = SIMPLEFB_FORMATS; variable 56 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in framebuffer_probe() 57 if (fb->bits_per_pixel == formats[i].bits_per_pixel && in framebuffer_probe() 58 fb->red_mask_pos == formats[i].red.offset && in framebuffer_probe() 59 fb->red_mask_size == formats[i].red.length && in framebuffer_probe() 60 fb->green_mask_pos == formats[i].green.offset && in framebuffer_probe() 61 fb->green_mask_size == formats[i].green.length && in framebuffer_probe() 62 fb->blue_mask_pos == formats[i].blue.offset && in framebuffer_probe() 63 fb->blue_mask_size == formats[i].blue.length) in framebuffer_probe() 64 pdata.format = formats[i].name; in framebuffer_probe()
|
/linux/drivers/gpu/drm/sysfb/ ! |
H A D | drm_sysfb_modeset.c | 52 /* only handle formats with depth != 0 and alpha channel */ in to_nonalpha_fourcc() 96 * drm_sysfb_build_fourcc_list - Filters a list of supported color formats against 97 * the device's native formats 99 * @native_fourccs: 4CC codes of natively supported color formats 101 * @fourccs_out: Returns 4CC codes of supported color formats 105 * supported formats and additional emulated formats. 109 * of supported color formats. The returned list can be handed over to 110 * drm_universal_plane_init() et al. Native formats will go before 111 * emulated formats. Native formats with alpha channel will be replaced 112 * by equal formats without alpha channel, as primary planes usually [all …]
|
/linux/drivers/media/platform/verisilicon/ ! |
H A D | hantro_v4l2.c | 42 const struct hantro_fmt *formats; in hantro_get_formats() local 50 formats = ctx->dev->variant->enc_fmts; in hantro_get_formats() 53 formats = ctx->dev->variant->dec_fmts; in hantro_get_formats() 57 return formats; in hantro_get_formats() 103 * Allow only downconversion for postproc formats for now. in hantro_check_depth_match() 115 const struct hantro_fmt *formats; in hantro_find_format() local 118 formats = hantro_get_formats(ctx, &num_fmts, HANTRO_AUTO_POSTPROC); in hantro_find_format() 120 if (formats[i].fourcc == fourcc) in hantro_find_format() 121 return &formats[i]; in hantro_find_format() 123 formats = hantro_get_postproc_formats(ctx, &num_fmts); in hantro_find_format() [all …]
|
/linux/sound/firewire/oxfw/ ! |
H A D | oxfw-pcm.c | 13 u8 **formats = rule->private; in hw_rule_rate() local 25 if (formats[i] == NULL) in hw_rule_rate() 28 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_rate() 44 u8 **formats = rule->private; in hw_rule_channels() local 55 if (formats[i] == NULL) in hw_rule_channels() 58 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_channels() 80 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) in limit_channels_and_rates() argument 93 if (formats[i] == NULL) in limit_channels_and_rates() 96 err = snd_oxfw_stream_parse_format(formats[i], &formation); in limit_channels_and_rates() 113 u8 **formats; in init_hw_params() local [all …]
|
H A D | oxfw-stream.c | 60 u8 **formats; in set_stream_format() local 67 formats = oxfw->tx_stream_formats; in set_stream_format() 70 formats = oxfw->rx_stream_formats; in set_stream_format() 76 err = snd_oxfw_stream_parse_format(formats[i], &formation); in set_stream_format() 91 len = 5 + formats[i][4] * 2; in set_stream_format() 93 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format() 204 u8 **formats; in keep_resources() local 212 formats = oxfw->rx_stream_formats; in keep_resources() 216 formats = oxfw->tx_stream_formats; in keep_resources() 227 if (formats[i] == NULL) in keep_resources() [all …]
|
/linux/sound/soc/sof/amd/ ! |
H A D | vangogh.c | 31 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 40 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 55 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 64 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 79 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 88 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 103 .formats = SNDRV_PCM_FMTBIT_S32_LE, 116 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 125 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
|
H A D | acp70.c | 34 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 43 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 58 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 67 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 82 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 91 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 106 .formats = SNDRV_PCM_FMTBIT_S32_LE, 119 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
|
H A D | rembrandt.c | 34 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 43 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 58 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 67 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 82 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 91 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 106 .formats = SNDRV_PCM_FMTBIT_S32_LE, 119 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
|
H A D | acp63.c | 34 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 43 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 58 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 67 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 82 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 91 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 | 106 .formats = SNDRV_PCM_FMTBIT_S32_LE, 119 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S8 |
|
/linux/drivers/gpu/drm/ ! |
H A D | drm_writeback.c | 65 * Immutable blob property to store the supported pixel formats table. The 67 * Userspace can use this blob to find out what pixel formats are supported 155 * @formats: Array of supported pixel formats for the writeback engine 156 * @n_formats: Length of the formats array 175 const u32 *formats, int n_formats, in drm_writeback_connector_init() argument 191 con_funcs, formats, n_formats); in drm_writeback_connector_init() 223 * @formats: Array of supported pixel formats for the writeback engine 224 * @n_formats: Length of the formats array 242 struct drm_encoder *enc, const u32 *formats, in __drm_writeback_connector_init() argument 259 blob = drm_property_create_blob(dev, n_formats * sizeof(*formats), in __drm_writeback_connector_init() [all …]
|
/linux/sound/firewire/motu/ ! |
H A D | motu-pcm.c | 14 struct snd_motu_packet_format *formats = rule->private; in motu_rate_constraint() local 29 pcm_channels = formats->pcm_chunks[mode]; in motu_rate_constraint() 43 struct snd_motu_packet_format *formats = rule->private; in motu_channels_constraint() local 61 pcm_channels = formats->pcm_chunks[mode]; in motu_channels_constraint() 71 struct snd_motu_packet_format *formats) in limit_channels_and_rates() argument 83 pcm_channels = formats->pcm_chunks[mode]; in limit_channels_and_rates() 101 struct snd_motu_packet_format *formats; in init_hw_info() local 105 hw->formats = SNDRV_PCM_FMTBIT_S32; in init_hw_info() 107 formats = &motu->tx_packet_formats; in init_hw_info() 109 hw->formats = SNDRV_PCM_FMTBIT_S32; in init_hw_info() [all …]
|
/linux/sound/soc/fsl/ ! |
H A D | fsl_rpmsg.c | 119 .formats = FSL_RPMSG_FORMATS, 126 .formats = FSL_RPMSG_FORMATS, 141 .formats = SNDRV_PCM_FMTBIT_S16_LE, 146 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 156 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 165 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 172 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 180 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | 218 dai_drv->playback.formats = rpmsg->soc_data->formats; in fsl_rpmsg_probe() 219 dai_drv->capture.formats = rpmsg->soc_data->formats; in fsl_rpmsg_probe() [all …]
|
/linux/drivers/gpu/drm/xlnx/ ! |
H A D | zynqmp_disp.c | 83 * @swap: Flag to swap R & B for RGB formats, and U & V for YUV formats 108 * @formats: Array of supported formats 109 * @num_formats: Number of formats in @formats array 113 const struct zynqmp_disp_format *formats; member 198 /* List of video layer formats */ 303 /* List of graphics layer formats */ 368 /* List of live video layer formats */ 888 if (layer->info->formats[i].drm_fmt == drm_fmt) in zynqmp_disp_layer_find_format() 889 return &layer->info->formats[i]; in zynqmp_disp_layer_find_format() 914 if (layer->info->formats[i].bus_fmt == media_bus_format) in zynqmp_disp_layer_find_live_format() [all …]
|
/linux/sound/usb/ ! |
H A D | quirks-table.h | 85 * e.g. QUIRK_DATA_AUDIOFORMAT(n) { .formats = xxx, ... } 131 .formats = SNDRV_PCM_FMTBIT_S16_LE, 159 * The device advertises 8 formats, but only a rate of 48kHz is honored by the 170 .formats = SNDRV_PCM_FMTBIT_S16_LE, 453 .formats = SNDRV_PCM_FMTBIT_S16_LE, 468 .formats = SNDRV_PCM_FMTBIT_S16_LE, 778 .formats = SNDRV_PCM_FMTBIT_S24_3LE, 793 .formats = SNDRV_PCM_FMTBIT_S24_3LE, 1224 .formats = SNDRV_PCM_FMTBIT_S32_LE, 1240 .formats = SNDRV_PCM_FMTBIT_S32_LE, [all …]
|