Home
last modified time | relevance | path

Searched refs:dst_format (Results 1 – 14 of 14) sorted by relevance

/linux/sound/core/oss/
H A Dlinear.c55 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
102 snd_pcm_format_t src_format, snd_pcm_format_t dst_format) in init_data() argument
107 dst_bytes = snd_pcm_format_width(dst_format) / 8; in init_data()
109 dst_le = snd_pcm_format_little_endian(dst_format) > 0; in init_data()
123 data->dst_ofs = snd_pcm_format_physical_width(dst_format) / 8 - in init_data()
126 snd_pcm_format_signed(dst_format)) { in init_data()
136 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_linear() argument
147 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_linear()
149 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
152 !snd_pcm_format_linear(dst_format->format))) in snd_pcm_plugin_build_linear()
[all …]
H A Dcopy.c34 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer()
48 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_copy() argument
59 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_copy()
61 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_copy()
63 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
70 err = snd_pcm_plugin_build(plug, "copy", src_format, dst_format, in snd_pcm_plugin_build_copy()
H A Drate.c70 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
129 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink()
178 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_src_frames()
211 if (plugin->src_format.rate < plugin->dst_format.rate) { in rate_dst_frames()
287 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_rate() argument
298 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
304 if (snd_BUG_ON(dst_format->format != SNDRV_PCM_FORMAT_S16)) in snd_pcm_plugin_build_rate()
306 if (snd_BUG_ON(src_format->rate == dst_format->rate)) in snd_pcm_plugin_build_rate()
310 src_format, dst_format, in snd_pcm_plugin_build_rate()
317 if (src_format->rate < dst_format->rate) { in snd_pcm_plugin_build_rate()
[all …]
H A Droute.c49 ndsts = plugin->dst_format.channels; in route_transfer()
51 format = plugin->dst_format.format; in route_transfer()
74 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_route() argument
83 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_route()
85 if (snd_BUG_ON(src_format->format != dst_format->format)) in snd_pcm_plugin_build_route()
89 src_format, dst_format, 0, &plugin); in snd_pcm_plugin_build_route()
H A Dpcm_plugin.h43 struct snd_pcm_plugin_format dst_format; /* destination format */ member
73 struct snd_pcm_plugin_format *dst_format,
89 struct snd_pcm_plugin_format *dst_format,
93 struct snd_pcm_plugin_format *dst_format,
97 struct snd_pcm_plugin_format *dst_format,
101 struct snd_pcm_plugin_format *dst_format,
105 struct snd_pcm_plugin_format *dst_format,
H A Dmulaw.c169 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
215 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode()
288 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build_mulaw() argument
301 if (snd_BUG_ON(src_format->rate != dst_format->rate)) in snd_pcm_plugin_build_mulaw()
303 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
306 if (dst_format->format == SNDRV_PCM_FORMAT_MU_LAW) { in snd_pcm_plugin_build_mulaw()
311 format = dst_format; in snd_pcm_plugin_build_mulaw()
322 src_format, dst_format, in snd_pcm_plugin_build_mulaw()
H A Dpcm_plugin.c45 format = &plugin->dst_format; in snd_pcm_plugin_alloc()
138 struct snd_pcm_plugin_format *dst_format, in snd_pcm_plugin_build() argument
147 if (snd_BUG_ON(!src_format || !dst_format)) in snd_pcm_plugin_build()
159 plugin->dst_format = *dst_format; in snd_pcm_plugin_build()
160 plugin->dst_width = snd_pcm_format_physical_width(dst_format->format); in snd_pcm_plugin_build()
165 channels = dst_format->channels; in snd_pcm_plugin_build()
560 format = &plugin->dst_format; in snd_pcm_plug_client_channels_buf()
H A Dio.c34 int channel, channels = plugin->dst_format.channels; in io_playback_transfer()
60 int channel, channels = plugin->dst_format.channels; in io_capture_transfer()
H A Dpcm_oss.c1478 …_bytes = (runtime->oss.plugin_last->dst_width * runtime->oss.plugin_last->dst_format.channels) / 8; in snd_pcm_oss_read2()
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-scaler.c413 u32 pix_format, enum buffer_format dst_format) in dcss_scaler_res_set() argument
439 if (dst_format == BUF_FMT_YUV422) in dcss_scaler_res_set()
443 if (src_is_444 && dst_format == BUF_FMT_YUV422) { in dcss_scaler_res_set()
477 u32 src_format, u32 dst_format, in dcss_scaler_fractions_set() argument
536 if (dst_format == BUF_FMT_YUV422) in dcss_scaler_fractions_set()
646 enum buffer_format dst_format, in dcss_scaler_yuv_coef_set() argument
653 (dst_format == BUF_FMT_YUV422 && in dcss_scaler_yuv_coef_set()
677 if (dst_format != BUF_FMT_ARGB8888_YUV444) in dcss_scaler_yuv_coef_set()
679 if (dst_format == BUF_FMT_YUV420) /* should not happen */ in dcss_scaler_yuv_coef_set()
778 enum buffer_format dst_format = BUF_FMT_ARGB8888_YUV444; in dcss_scaler_setup() local
[all …]
/linux/drivers/gpu/drm/sysfb/
H A Ddrm_sysfb_modeset.c201 static drm_sysfb_blit_func drm_sysfb_get_blit_func(u32 dst_format, u32 src_format) in drm_sysfb_get_blit_func() argument
203 if (src_format == dst_format) { in drm_sysfb_get_blit_func()
206 switch (dst_format) { in drm_sysfb_get_blit_func()
341 const struct drm_format_info *dst_format = sysfb_crtc_state->format; in drm_sysfb_plane_helper_atomic_update() local
362 iosys_map_incr(&dst, drm_fb_clip_offset(dst_pitch, dst_format, &dst_clip)); in drm_sysfb_plane_helper_atomic_update()
382 const struct drm_format_info *dst_format = sysfb->fb_format; in drm_sysfb_plane_helper_atomic_disable() local
398 dst_vmap += drm_fb_clip_offset(dst_pitch, dst_format, &dst_clip); in drm_sysfb_plane_helper_atomic_disable()
400 memset_io(dst_vmap, 0, linepixels * dst_format->cpp[0]); in drm_sysfb_plane_helper_atomic_disable()
/linux/drivers/media/platform/cadence/
H A Dcdns-csi2tx.c208 struct v4l2_mbus_framefmt *dst_format; in csi2tx_set_pad_format() local
217 dst_format = __csi2tx_get_pad_format(subdev, sd_state, fmt); in csi2tx_set_pad_format()
218 if (!dst_format) in csi2tx_set_pad_format()
221 *dst_format = *src_format; in csi2tx_set_pad_format()
/linux/drivers/gpu/drm/
H A Ddrm_mipi_dbi.c282 const struct drm_format_info *dst_format; in mipi_dbi_fb_dirty() local
308 dst_format = drm_format_info(dbidev->pixel_format); in mipi_dbi_fb_dirty()
310 dst_format = fb->format; in mipi_dbi_fb_dirty()
311 len = drm_format_info_min_pitch(dst_format, 0, width) * height; in mipi_dbi_fb_dirty()
415 const struct drm_format_info *dst_format; in mipi_dbi_blank() local
422 dst_format = drm_format_info(dbidev->pixel_format); in mipi_dbi_blank()
423 len = drm_format_info_min_pitch(dst_format, 0, width) * height; in mipi_dbi_blank()
/linux/drivers/gpu/drm/tests/
H A Ddrm_format_helper_test.c574 static size_t conversion_buf_size(u32 dst_format, unsigned int dst_pitch, in conversion_buf_size() argument
577 const struct drm_format_info *dst_fi = drm_format_info(dst_format); in conversion_buf_size()