Home
last modified time | relevance | path

Searched full:format (Results 1 – 25 of 4467) sorted by relevance

12345678910>>...179

/Linux-v5.4/include/drm/
Ddrm_fourcc.h33 * case the format can't be specified otherwise, so we don't end up
34 * with two values describing the same format.
54 * struct drm_format_info - information about a DRM format
57 /** @format: 4CC format identifier (DRM_FORMAT_*) */
58 u32 format; member
79 * describing the pixel format.
103 * generic format table. Drivers could supply accurate
131 /** @has_alpha: Does the format embeds an alpha component? */
134 /** @is_yuv: Is it a YUV format? */
139 * struct drm_format_name_buf - name of a DRM format
[all …]
/Linux-v5.4/tools/power/cpupower/po/
Dfr.po73 #, c-format
80 #, c-format
87 #, c-format
92 #, c-format
97 #, c-format
102 #, c-format
107 #, c-format
112 #, c-format
117 #, c-format
124 #, c-format
[all …]
Dcs.po76 #, c-format
83 #, c-format
90 #, c-format
95 #, c-format
100 #, c-format
105 #, c-format
110 #, c-format
115 #, c-format
120 #, c-format
127 #, c-format
[all …]
Dit.po73 #, c-format
80 #, c-format
87 #, c-format
92 #, c-format
97 #, c-format
102 #, c-format
107 #, c-format
112 #, c-format
117 #, c-format
124 #, c-format
[all …]
Dpt.po71 #, c-format
78 #, c-format
85 #, c-format
90 #, c-format
95 #, c-format
100 #, c-format
105 #, c-format
110 #, c-format
115 #, c-format
122 #, c-format
[all …]
Dde.po73 #, c-format
82 #, c-format
91 #, c-format
96 #, c-format
101 #, c-format
106 #, c-format
111 #, c-format
117 #, c-format
123 #, c-format
132 #, c-format
[all …]
/Linux-v5.4/drivers/media/platform/xilinx/
Dxilinx-vip.c46 * xvip_get_format_by_code - Retrieve format information for a media bus code
47 * @code: the format media bus code
49 * Return: a pointer to the format information structure corresponding to the
50 * given V4L2 media bus format @code, or ERR_PTR if no corresponding format can
58 const struct xvip_video_format *format = &xvip_video_formats[i]; in xvip_get_format_by_code() local
60 if (format->code == code) in xvip_get_format_by_code()
61 return format; in xvip_get_format_by_code()
69 * xvip_get_format_by_fourcc - Retrieve format information for a 4CC
70 * @fourcc: the format 4CC
72 * Return: a pointer to the format information structure corresponding to the
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_fourcc.c4 * DRM core format related functions
43 * Computes a drm fourcc pixel format code for the given @bpp/@depth values.
104 * Computes a drm fourcc pixel format code for the given @bpp/@depth values.
134 * drm_get_format_name - fill a string with a drm fourcc format's name
135 * @format: format to compute name of
138 const char *drm_get_format_name(uint32_t format, struct drm_format_name_buf *buf) in drm_get_format_name() argument
142 printable_char(format & 0xff), in drm_get_format_name()
143 printable_char((format >> 8) & 0xff), in drm_get_format_name()
144 printable_char((format >> 16) & 0xff), in drm_get_format_name()
145 printable_char((format >> 24) & 0x7f), in drm_get_format_name()
[all …]
/Linux-v5.4/drivers/media/platform/vsp1/
Dvsp1_rwpf.c65 struct v4l2_mbus_framefmt *format; in vsp1_rwpf_set_format() local
76 /* Default to YUV if the requested format is not supported. */ in vsp1_rwpf_set_format()
77 if (fmt->format.code != MEDIA_BUS_FMT_ARGB8888_1X32 && in vsp1_rwpf_set_format()
78 fmt->format.code != MEDIA_BUS_FMT_AHSV8888_1X32 && in vsp1_rwpf_set_format()
79 fmt->format.code != MEDIA_BUS_FMT_AYUV8_1X32) in vsp1_rwpf_set_format()
80 fmt->format.code = MEDIA_BUS_FMT_AYUV8_1X32; in vsp1_rwpf_set_format()
82 format = vsp1_entity_get_pad_format(&rwpf->entity, config, fmt->pad); in vsp1_rwpf_set_format()
86 * The RWPF performs format conversion but can't scale, only the in vsp1_rwpf_set_format()
87 * format code can be changed on the source pad. in vsp1_rwpf_set_format()
89 format->code = fmt->format.code; in vsp1_rwpf_set_format()
[all …]
Dvsp1_drm.c69 struct v4l2_subdev_format format; in vsp1_du_insert_uif() local
85 memset(&format, 0, sizeof(format)); in vsp1_du_insert_uif()
86 format.which = V4L2_SUBDEV_FORMAT_ACTIVE; in vsp1_du_insert_uif()
87 format.pad = prev_pad; in vsp1_du_insert_uif()
89 ret = v4l2_subdev_call(&prev->subdev, pad, get_fmt, NULL, &format); in vsp1_du_insert_uif()
93 format.pad = UIF_PAD_SINK; in vsp1_du_insert_uif()
95 ret = v4l2_subdev_call(&uif->subdev, pad, set_fmt, NULL, &format); in vsp1_du_insert_uif()
99 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on UIF sink\n", in vsp1_du_insert_uif()
100 __func__, format.format.width, format.format.height, in vsp1_du_insert_uif()
101 format.format.code); in vsp1_du_insert_uif()
[all …]
/Linux-v5.4/drivers/staging/media/omap4iss/
Diss_ipipe.c79 * Format- and pipeline-related configuration helpers
85 struct v4l2_mbus_framefmt *format; in ipipe_configure() local
88 format = &ipipe->formats[IPIPE_PAD_SINK]; in ipipe_configure()
101 (format->height - 2) & IPIPE_SRC_VSZ_MASK); in ipipe_configure()
103 (format->width - 1) & IPIPE_SRC_HSZ_MASK); in ipipe_configure()
115 format = &ipipe->formats[IPIPE_PAD_SOURCE_VP]; in ipipe_configure()
189 * ipipe_try_format - Try video format on a pad
193 * @fmt: Format
202 struct v4l2_mbus_framefmt *format; in ipipe_try_format() local
225 format = __ipipe_get_format(ipipe, cfg, IPIPE_PAD_SINK, which); in ipipe_try_format()
[all …]
Diss_ipipeif.c100 * Format- and pipeline-related configuration helpers
125 struct v4l2_mbus_framefmt *format; in ipipeif_configure() local
131 format = &ipipeif->formats[IPIPEIF_PAD_SINK]; in ipipeif_configure()
137 /* Select ISIF/IPIPEIF input format */ in ipipeif_configure()
138 switch (format->code) { in ipipeif_configure()
182 info = omap4iss_video_format_info(format->code); in ipipeif_configure()
195 (format->width - 1) & ISIF_LNH_MASK); in ipipeif_configure()
197 (format->height - 1) & ISIF_LNV_MASK); in ipipeif_configure()
201 format->height - 1); in ipipeif_configure()
204 format = &ipipeif->formats[IPIPEIF_PAD_SOURCE_ISIF_SF]; in ipipeif_configure()
[all …]
/Linux-v5.4/sound/core/
Dpcm_misc.c189 /* FIXME: the following format is not defined properly yet */
253 * snd_pcm_format_signed - Check the PCM format is signed linear
254 * @format: the format to check
256 * Return: 1 if the given PCM format is signed linear, 0 if unsigned
259 int snd_pcm_format_signed(snd_pcm_format_t format) in snd_pcm_format_signed() argument
262 if ((INT)format < 0 || (INT)format > (INT)SNDRV_PCM_FORMAT_LAST) in snd_pcm_format_signed()
264 if ((val = pcm_formats[(INT)format].signd) < 0) in snd_pcm_format_signed()
271 * snd_pcm_format_unsigned - Check the PCM format is unsigned linear
272 * @format: the format to check
274 * Return: 1 if the given PCM format is unsigned linear, 0 if signed
[all …]
/Linux-v5.4/drivers/media/platform/vimc/
Dvimc-common.c278 v4l2_fill_mbus_format(&fmt->format, &vdev_fmt, vpix->code); in vimc_get_mbus_format()
304 source_fmt.format.width, source_fmt.format.height, in vimc_link_validate()
305 source_fmt.format.code, source_fmt.format.colorspace, in vimc_link_validate()
306 source_fmt.format.quantization, source_fmt.format.xfer_func, in vimc_link_validate()
307 source_fmt.format.ycbcr_enc, in vimc_link_validate()
310 sink_fmt.format.width, sink_fmt.format.height, in vimc_link_validate()
311 sink_fmt.format.code, sink_fmt.format.colorspace, in vimc_link_validate()
312 sink_fmt.format.quantization, sink_fmt.format.xfer_func, in vimc_link_validate()
313 sink_fmt.format.ycbcr_enc); in vimc_link_validate()
316 if (source_fmt.format.width != sink_fmt.format.width in vimc_link_validate()
[all …]
/Linux-v5.4/drivers/gpu/drm/tegra/
Dplane.c55 copy->format = state->format; in tegra_plane_atomic_duplicate_state()
74 uint32_t format, in tegra_plane_format_mod_supported() argument
77 const struct drm_format_info *info = drm_format_info(format); in tegra_plane_format_mod_supported()
123 int tegra_plane_format(u32 fourcc, u32 *format, u32 *swap) in tegra_plane_format() argument
131 *format = WIN_COLOR_DEPTH_B4G4R4A4; in tegra_plane_format()
135 *format = WIN_COLOR_DEPTH_B5G5R5A1; in tegra_plane_format()
139 *format = WIN_COLOR_DEPTH_B5G6R5; in tegra_plane_format()
143 *format = WIN_COLOR_DEPTH_A1B5G5R5; in tegra_plane_format()
147 *format = WIN_COLOR_DEPTH_B8G8R8A8; in tegra_plane_format()
151 *format = WIN_COLOR_DEPTH_R8G8B8A8; in tegra_plane_format()
[all …]
/Linux-v5.4/drivers/gpu/drm/shmobile/
Dshmob_drm_plane.c26 const struct shmob_drm_format_info *format; member
46 bpp = splane->format->yuv ? 8 : splane->format->bpp; in shmob_drm_plane_compute_base()
51 if (splane->format->yuv) { in shmob_drm_plane_compute_base()
52 bpp = splane->format->bpp - 8; in shmob_drm_plane_compute_base()
64 u32 format; in __shmob_drm_plane_setup() local
67 format = LDBBSIFR_EN | (splane->alpha << LDBBSIFR_LAY_SHIFT); in __shmob_drm_plane_setup()
69 switch (splane->format->fourcc) { in __shmob_drm_plane_setup()
74 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW; in __shmob_drm_plane_setup()
80 format |= LDBBSIFR_SWPL | LDBBSIFR_SWPW | LDBBSIFR_SWPB; in __shmob_drm_plane_setup()
84 format |= LDBBSIFR_SWPL; in __shmob_drm_plane_setup()
[all …]
/Linux-v5.4/scripts/gdb/linux/
Dtimerlist.py38 text = " #{}: <{}>, {}, ".format(idx, timer, function)
39 text += "S:{:02x}\n".format(int(timer['state']))
40 text += " # expires at {}-{} nsecs [in {} to {} nsecs]\n".format(
56 text = " .base: {}\n".format(base.address)
57 text += " .index: {}\n".format(base['index'])
59 text += " .resolution: {} nsecs\n".format(constants.LX_hrtimer_resolution)
61 text += " .get_time: {}\n".format(base['get_time'])
63 text += " .offset: {} nsecs\n".format(base['offset'])
75 text = "cpu: {}\n".format(cpu)
77 text += " clock {}:\n".format(i)
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dpixfmt-reserved.rst13 Reserved Format Identifiers
18 register your own format, send an e-mail to the linux-media mailing list
21 format with other developers add a link to your documentation and send a
23 you think your format should be listed in a standard format section
48 - Compressed format of the ET61X251 driver.
53 - 8 bit RGB format used by the BTTV driver.
58 - YUV 4:2:0 format used by the IVTV driver,
61 The format is documented in the kernel sources in the file
67 - YUV format used by the gspca cpia1 driver.
72 - JPEG-Light format (Pegasus Lossless JPEG) used in Divio webcams NW
[all …]
Dvidioc-subdev-g-fmt.rst19 VIDIOC_SUBDEV_G_FMT - VIDIOC_SUBDEV_S_FMT - Get or set the data format on a subdev pad
45 These ioctls are used to negotiate the frame format at specific subdev
48 To retrieve the current format applications set the ``pad`` field of a
53 driver fills the members of the ``format`` field.
55 To change the current format applications set both the ``pad`` and
56 ``which`` fields and all members of the ``format`` field. When they call
58 driver verifies the requested format, adjusts it based on the hardware
61 format as would be returned by a ``VIDIOC_SUBDEV_G_FMT`` call.
69 For instance, to try a format at the output pad of a sub-device,
70 applications would first set the try format at the sub-device input with
[all …]
Ddev-subdev.rst85 need to expose low-level format configuration to user space. Generic
91 For the purpose of this section, the term *format* means the
92 combination of media bus data format, frame width and frame height.
95 devices using the format and
98 to the requested format at the pipeline input and/or output.
113 Image Format Negotiation on Pipelines
126 can expose pad-level image format configuration to applications. When
138 Pad-level image format configuration support can be tested by calling
140 0. If the driver returns an ``EINVAL`` error code pad-level format
144 Format Negotiation
[all …]
/Linux-v5.4/drivers/acpi/acpica/
Dutxferror.c27 * format - Printf format string + additional args
35 acpi_error(const char *module_name, u32 line_number, const char *format, ...) in acpi_error() argument
42 va_start(arg_list, format); in acpi_error()
43 acpi_os_vprintf(format, arg_list); in acpi_error()
59 * format - Printf format string + additional args in ACPI_EXPORT_SYMBOL()
69 u32 line_number, acpi_status status, const char *format, ...) in ACPI_EXPORT_SYMBOL()
85 va_start(arg_list, format); in ACPI_EXPORT_SYMBOL()
86 acpi_os_vprintf(format, arg_list); in ACPI_EXPORT_SYMBOL()
101 * format - Printf format string + additional args in ACPI_EXPORT_SYMBOL()
109 acpi_warning(const char *module_name, u32 line_number, const char *format, ...) in ACPI_EXPORT_SYMBOL()
[all …]
/Linux-v5.4/sound/core/oss/
Dpcm_plugin.c51 struct snd_pcm_plugin_format *format; in snd_pcm_plugin_alloc() local
58 format = &plugin->src_format; in snd_pcm_plugin_alloc()
60 format = &plugin->dst_format; in snd_pcm_plugin_alloc()
62 if ((width = snd_pcm_format_physical_width(format->format)) < 0) in snd_pcm_plugin_alloc()
64 size = frames * format->channels * width; in snd_pcm_plugin_alloc()
79 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
85 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
88 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc()
90 size /= format->channels; in snd_pcm_plugin_alloc()
91 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
[all …]
/Linux-v5.4/drivers/media/v4l2-core/
Dv4l2-common.c235 const struct v4l2_format_info *v4l2_format_info(u32 format) in v4l2_format_info() argument
239 …{ .format = V4L2_PIX_FMT_BGR24, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .hdiv … in v4l2_format_info()
240 …{ .format = V4L2_PIX_FMT_RGB24, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .hdiv … in v4l2_format_info()
241 …{ .format = V4L2_PIX_FMT_HSV24, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .hdiv … in v4l2_format_info()
242 …{ .format = V4L2_PIX_FMT_BGR32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
243 …{ .format = V4L2_PIX_FMT_XBGR32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
244 …{ .format = V4L2_PIX_FMT_BGRX32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
245 …{ .format = V4L2_PIX_FMT_RGB32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
246 …{ .format = V4L2_PIX_FMT_XRGB32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
247 …{ .format = V4L2_PIX_FMT_RGBX32, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv … in v4l2_format_info()
[all …]
/Linux-v5.4/drivers/media/platform/qcom/camss/
Dcamss-csiphy.c77 * csiphy_get_bpp - map media bus format to bits per pixel
80 * @code: media bus format code
93 WARN(1, "Unknown format\n"); in csiphy_get_bpp()
309 * __csiphy_get_format - Get pointer to format structure
312 * @pad: pad from which format is requested
313 * @which: TRY or ACTIVE format
315 * Return pointer to TRY or ACTIVE format structure
330 * csiphy_try_format - Handle try format by pad subdev method
333 * @pad: pad on which format is requested
334 * @fmt: pointer to v4l2 format structure
[all …]
/Linux-v5.4/sound/usb/
Dformat.c21 #include "format.h"
24 * parse the audio format type I descriptor
25 * and returns the corresponding pcm format
29 * @format: the format tag (wFormatTag)
30 * @fmt: the format type descriptor (v1/v2) or AudioStreaming descriptor (v3)
34 u64 format, void *_fmt) in parse_audio_format_i_type() argument
45 format = 1ULL << format; in parse_audio_format_i_type()
54 if (format & UAC2_FORMAT_TYPE_I_RAW_DATA) { in parse_audio_format_i_type()
60 format <<= 1; in parse_audio_format_i_type()
69 if (format & UAC3_FORMAT_TYPE_I_RAW_DATA) in parse_audio_format_i_type()
[all …]

12345678910>>...179