Home
last modified time | relevance | path

Searched refs:formats (Results 1 – 25 of 895) sorted by relevance

12345678910>>...36

/Linux-v5.4/drivers/firmware/google/
Dframebuffer-coreboot.c23 static const struct simplefb_format formats[] = SIMPLEFB_FORMATS; variable
39 for (i = 0; i < ARRAY_SIZE(formats); ++i) { in framebuffer_probe()
40 if (fb->bits_per_pixel == formats[i].bits_per_pixel && in framebuffer_probe()
41 fb->red_mask_pos == formats[i].red.offset && in framebuffer_probe()
42 fb->red_mask_size == formats[i].red.length && in framebuffer_probe()
43 fb->green_mask_pos == formats[i].green.offset && in framebuffer_probe()
44 fb->green_mask_size == formats[i].green.length && in framebuffer_probe()
45 fb->blue_mask_pos == formats[i].blue.offset && in framebuffer_probe()
46 fb->blue_mask_size == formats[i].blue.length && in framebuffer_probe()
47 fb->reserved_mask_pos == formats[i].transp.offset && in framebuffer_probe()
[all …]
/Linux-v5.4/drivers/staging/media/hantro/
Dhantro_v4l2.c36 const struct hantro_fmt *formats; in hantro_get_formats() local
39 formats = ctx->dev->variant->enc_fmts; in hantro_get_formats()
42 formats = ctx->dev->variant->dec_fmts; in hantro_get_formats()
46 return formats; in hantro_get_formats()
50 hantro_find_format(const struct hantro_fmt *formats, unsigned int num_fmts, in hantro_find_format() argument
56 if (formats[i].fourcc == fourcc) in hantro_find_format()
57 return &formats[i]; in hantro_find_format()
62 hantro_get_default_fmt(const struct hantro_fmt *formats, unsigned int num_fmts, in hantro_get_default_fmt() argument
68 if (bitstream == (formats[i].codec_mode != in hantro_get_default_fmt()
70 return &formats[i]; in hantro_get_default_fmt()
[all …]
/Linux-v5.4/sound/firewire/motu/
Dmotu-proc.c48 struct snd_motu_packet_format *formats; in proc_read_format() local
58 formats = &motu->tx_packet_formats; in proc_read_format()
62 formats->msg_chunks, in proc_read_format()
63 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
64 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
71 formats = &motu->rx_packet_formats; in proc_read_format()
75 formats->msg_chunks, in proc_read_format()
76 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
77 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
Dmotu-pcm.c14 struct snd_motu_packet_format *formats = rule->private; in motu_rate_constraint() local
29 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_rate_constraint()
30 formats->differed_part_pcm_chunks[mode]; in motu_rate_constraint()
44 struct snd_motu_packet_format *formats = rule->private; in motu_channels_constraint() local
62 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_channels_constraint()
63 formats->differed_part_pcm_chunks[mode]; in motu_channels_constraint()
73 struct snd_motu_packet_format *formats) in limit_channels_and_rates() argument
85 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in limit_channels_and_rates()
86 formats->differed_part_pcm_chunks[mode]; in limit_channels_and_rates()
104 struct snd_motu_packet_format *formats; in init_hw_info() local
[all …]
Dmotu-protocol-v2.c170 static void calculate_fixed_part(struct snd_motu_packet_format *formats, in calculate_fixed_part() argument
177 formats->msg_chunks = 2; in calculate_fixed_part()
218 formats->fixed_part_pcm_chunks[0] = pcm_chunks[0]; in calculate_fixed_part()
219 formats->fixed_part_pcm_chunks[1] = pcm_chunks[1]; in calculate_fixed_part()
220 formats->fixed_part_pcm_chunks[2] = pcm_chunks[2]; in calculate_fixed_part()
223 static void calculate_differed_part(struct snd_motu_packet_format *formats, in calculate_differed_part() argument
248 formats->differed_part_pcm_chunks[0] = pcm_chunks[0]; in calculate_differed_part()
249 formats->differed_part_pcm_chunks[1] = pcm_chunks[1]; in calculate_differed_part()
Dmotu-protocol-v3.c156 static void calculate_fixed_part(struct snd_motu_packet_format *formats, in calculate_fixed_part() argument
163 formats->msg_chunks = 2; in calculate_fixed_part()
217 formats->fixed_part_pcm_chunks[0] = round_up(2 + pcm_chunks[0], 4) - 2; in calculate_fixed_part()
218 formats->fixed_part_pcm_chunks[1] = round_up(2 + pcm_chunks[1], 4) - 2; in calculate_fixed_part()
220 formats->fixed_part_pcm_chunks[2] = in calculate_fixed_part()
224 static void calculate_differed_part(struct snd_motu_packet_format *formats, in calculate_differed_part() argument
272 formats->differed_part_pcm_chunks[i] = pcm_chunks[i]; in calculate_differed_part()
/Linux-v5.4/Documentation/media/uapi/v4l/
Dpixfmt.rst20 version (see :ref:`planar-apis`). Image formats are negotiated with
22 focus on video capturing and output, for overlay frame buffer formats
35 yuv-formats
36 hsv-formats
37 depth-formats
39 sdr-formats
40 tch-formats
41 meta-formats
Dpixfmt-intro.rst15 necessary to have standard image data formats which both sides will
16 interpret the same way. V4L2 includes several such formats, and this
18 image data formats in V4L2.
20 V4L2 drivers are not limited to these formats, however. Driver-specific
21 formats are possible. In that case the application may depend on a codec
22 to convert images to one of the standard formats when needed. But the
29 Even so, ultimately, some standard formats are needed, so the V4L2
31 formats.
33 The V4L2 standard formats are mainly uncompressed formats. The pixels
51 For some formats, data is stored in separate, discontiguous memory
[all …]
Dvidioc-g-dv-timings.rst61 the formats in the :ref:`cea861` and :ref:`vesadmt` standards. If
100 formats the height of the active video in each field is
126 - Vertical front porch in lines. For interlaced formats this refers
130 - Vertical sync length in lines. For interlaced formats this refers
134 - Vertical back porch in lines. For interlaced formats this refers
139 interlaced field formats. Must be 0 for progressive formats.
143 interlaced field formats. Must be 0 for progressive formats.
147 interlaced field formats. Must be 0 for progressive formats.
259 - CEA-861 specific: set for CEA-861 formats with a framerate that is
260 a multiple of six. These formats can be optionally played at 1 /
[all …]
Dplanar-apis.rst20 of such formats see :ref:`pixfmt`.
35 Multi-planar formats
38 Multi-planar API introduces new multi-planar formats. Those formats use
41 can handle all single-planar formats as well (as long as they are passed
43 handle multi-planar formats.
52 single- and multi-planar formats.
55 New structures for describing multi-planar formats are added: struct
58 Drivers may define new multi-planar formats, which have distinct
Ddev-subdev.rst37 - negotiate image formats on individual pads
77 .. _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
149 even controls. Finding a combination of formats on all pads in a video
[all …]
/Linux-v5.4/sound/firewire/oxfw/
Doxfw-pcm.c13 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 …]
Doxfw-stream.c60 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()
196 u8 **formats; in keep_resources() local
204 formats = oxfw->rx_stream_formats; in keep_resources()
208 formats = oxfw->tx_stream_formats; in keep_resources()
219 if (formats[i] == NULL) in keep_resources()
[all …]
/Linux-v5.4/drivers/gpu/drm/arm/
Dmalidp_mw.c191 u32 *formats; in get_writeback_formats() local
194 formats = kcalloc(map->n_pixel_formats, sizeof(*formats), in get_writeback_formats()
196 if (!formats) in get_writeback_formats()
201 formats[n++] = map->pixel_formats[i].format; in get_writeback_formats()
206 return formats; in get_writeback_formats()
212 u32 *formats; in malidp_mw_connector_init() local
222 formats = get_writeback_formats(malidp, &n_formats); in malidp_mw_connector_init()
223 if (!formats) in malidp_mw_connector_init()
229 formats, n_formats); in malidp_mw_connector_init()
230 kfree(formats); in malidp_mw_connector_init()
/Linux-v5.4/drivers/media/platform/vivid/
Dvivid-sdr-cap.c32 static const struct vivid_format formats[] = { variable
442 if (f->index >= ARRAY_SIZE(formats)) in vidioc_enum_fmt_sdr_cap()
444 f->pixelformat = formats[f->index].pixelformat; in vidioc_enum_fmt_sdr_cap()
468 for (i = 0; i < ARRAY_SIZE(formats); i++) { in vidioc_s_fmt_sdr_cap()
469 if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { in vidioc_s_fmt_sdr_cap()
470 dev->sdr_pixelformat = formats[i].pixelformat; in vidioc_s_fmt_sdr_cap()
471 dev->sdr_buffersize = formats[i].buffersize; in vidioc_s_fmt_sdr_cap()
472 f->fmt.sdr.buffersize = formats[i].buffersize; in vidioc_s_fmt_sdr_cap()
476 dev->sdr_pixelformat = formats[0].pixelformat; in vidioc_s_fmt_sdr_cap()
477 dev->sdr_buffersize = formats[0].buffersize; in vidioc_s_fmt_sdr_cap()
[all …]
/Linux-v5.4/sound/soc/uniphier/
Daio-ld11.c225 .formats = SNDRV_PCM_FMTBIT_S32_LE,
232 .formats = SNDRV_PCM_FMTBIT_S32_LE,
249 .formats = SNDRV_PCM_FMTBIT_S32_LE,
264 .formats = SNDRV_PCM_FMTBIT_S32_LE,
271 .formats = SNDRV_PCM_FMTBIT_S32_LE,
286 .formats = SNDRV_PCM_FMTBIT_S32_LE,
301 .formats = SNDRV_PCM_FMTBIT_S32_LE,
316 .formats = SNDRV_PCM_FMTBIT_S32_LE,
331 .formats = SNDRV_PCM_FMTBIT_S32_LE,
348 .formats = SNDRV_PCM_FMTBIT_S32_LE,
Daio-pxs2.c178 .formats = SNDRV_PCM_FMTBIT_S32_LE,
193 .formats = SNDRV_PCM_FMTBIT_S32_LE,
200 .formats = SNDRV_PCM_FMTBIT_S32_LE,
215 .formats = SNDRV_PCM_FMTBIT_S32_LE,
222 .formats = SNDRV_PCM_FMTBIT_S32_LE,
237 .formats = SNDRV_PCM_FMTBIT_S32_LE,
252 .formats = SNDRV_PCM_FMTBIT_S32_LE,
/Linux-v5.4/sound/soc/intel/skylake/
Dskl-pcm.c39 .formats = SNDRV_PCM_FMTBIT_S16_LE |
706 .formats = SNDRV_PCM_FMTBIT_S16_LE |
715 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
728 .formats = SNDRV_PCM_FMTBIT_S16_LE |
741 .formats = SNDRV_PCM_FMTBIT_S16_LE |
753 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
765 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
777 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
789 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
804 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE |
[all …]
/Linux-v5.4/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_dc.c36 .formats = &atmel_hlcdc_plane_rgb_formats,
66 .formats = &atmel_hlcdc_plane_rgb_formats,
82 .formats = &atmel_hlcdc_plane_rgb_formats,
101 .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats,
123 .formats = &atmel_hlcdc_plane_rgb_formats,
159 .formats = &atmel_hlcdc_plane_rgb_formats,
175 .formats = &atmel_hlcdc_plane_rgb_formats,
194 .formats = &atmel_hlcdc_plane_rgb_formats,
213 .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats,
239 .formats = &atmel_hlcdc_plane_rgb_formats,
[all …]
/Linux-v5.4/sound/soc/mediatek/mt6797/
Dmt6797-dai-hostless.c69 .formats = MTK_HOSTLESS_FORMATS,
76 .formats = MTK_HOSTLESS_FORMATS,
88 .formats = MTK_HOSTLESS_FORMATS,
95 .formats = MTK_HOSTLESS_FORMATS,
/Linux-v5.4/sound/soc/mediatek/mt8183/
Dmt8183-dai-hostless.c69 .formats = MTK_HOSTLESS_FORMATS,
76 .formats = MTK_HOSTLESS_FORMATS,
88 .formats = MTK_HOSTLESS_FORMATS,
95 .formats = MTK_HOSTLESS_FORMATS,
/Linux-v5.4/sound/soc/codecs/
Dbt-sco.c31 .formats = SNDRV_PCM_FMTBIT_S16_LE,
38 .formats = SNDRV_PCM_FMTBIT_S16_LE,
48 .formats = SNDRV_PCM_FMTBIT_S16_LE,
55 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Dlochnagar-sc.c159 .formats = SNDRV_PCM_FMTBIT_S32_LE,
166 .formats = SNDRV_PCM_FMTBIT_S32_LE,
179 .formats = SNDRV_PCM_FMTBIT_S32_LE,
186 .formats = SNDRV_PCM_FMTBIT_S32_LE,
199 .formats = SNDRV_PCM_FMTBIT_S32_LE,
206 .formats = SNDRV_PCM_FMTBIT_S32_LE,
/Linux-v5.4/sound/soc/qcom/qdsp6/
Dq6afe-dai.c22 .formats = SNDRV_PCM_FMTBIT_S16_LE | \
43 .formats = SNDRV_PCM_FMTBIT_S16_LE | \
629 .formats = SNDRV_PCM_FMTBIT_S16_LE |
652 .formats = SNDRV_PCM_FMTBIT_S16_LE |
670 .formats = SNDRV_PCM_FMTBIT_S16_LE |
683 .formats = SNDRV_PCM_FMTBIT_S16_LE |
706 .formats = SNDRV_PCM_FMTBIT_S16_LE |
719 .formats = SNDRV_PCM_FMTBIT_S16_LE |
743 .formats = SNDRV_PCM_FMTBIT_S16_LE |
756 .formats = SNDRV_PCM_FMTBIT_S16_LE |
[all …]
/Linux-v5.4/sound/usb/
Dquirks-table.h46 .formats = SNDRV_PCM_FMTBIT_S16_LE,
506 .formats = SNDRV_PCM_FMTBIT_S16_LE,
523 .formats = SNDRV_PCM_FMTBIT_S16_LE,
994 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1011 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1615 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1633 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1682 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1700 .formats = SNDRV_PCM_FMTBIT_S32_LE,
2095 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
[all …]

12345678910>>...36