Home
last modified time | relevance | path

Searched refs:sformat (Results 1 – 16 of 16) sorted by relevance

/third_party/alsa-lib/src/pcm/
Dpcm_iec958.c59 snd_pcm_format_t sformat; member
248 if (iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_LE || in snd_pcm_iec958_hw_refine_cprepare()
249 iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_BE) { in snd_pcm_iec958_hw_refine_cprepare()
277 _snd_pcm_hw_params_set_format(sparams, iec->sformat); in snd_pcm_iec958_hw_refine_sprepare()
346 if (iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_LE || in snd_pcm_iec958_hw_params()
347 iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_BE) { in snd_pcm_iec958_hw_params()
350 iec->byteswap = iec->sformat != SND_PCM_FORMAT_IEC958_SUBFRAME; in snd_pcm_iec958_hw_params()
352 iec->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, iec->sformat); in snd_pcm_iec958_hw_params()
357 if (iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_LE || in snd_pcm_iec958_hw_params()
358 iec->sformat == SND_PCM_FORMAT_IEC958_SUBFRAME_BE) { in snd_pcm_iec958_hw_params()
[all …]
Dpcm_softvol.c46 snd_pcm_format_t sformat; member
331 svol->sformat); in softvol_convert_stereo_vol()
336 channels, frames, svol->sformat); in softvol_convert_stereo_vol()
349 switch (svol->sformat) { in softvol_convert_stereo_vol()
354 !snd_pcm_format_cpu_endian(svol->sformat)); in softvol_convert_stereo_vol()
360 !snd_pcm_format_cpu_endian(svol->sformat)); in softvol_convert_stereo_vol()
392 svol->sformat); in softvol_convert_mono_vol()
396 channels, frames, svol->sformat); in softvol_convert_mono_vol()
404 switch (svol->sformat) { in softvol_convert_mono_vol()
409 !snd_pcm_format_cpu_endian(svol->sformat)); in softvol_convert_mono_vol()
[all …]
Dpcm_mulaw.c54 snd_pcm_format_t sformat; member
247 if (mulaw->sformat == SND_PCM_FORMAT_MU_LAW) { in snd_pcm_mulaw_hw_refine_cprepare()
269 _snd_pcm_hw_params_set_format(sparams, mulaw->sformat); in snd_pcm_mulaw_hw_refine_sprepare()
337 if (mulaw->sformat == SND_PCM_FORMAT_MU_LAW) { in snd_pcm_mulaw_hw_params()
341 mulaw->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, mulaw->sformat); in snd_pcm_mulaw_hw_params()
345 if (mulaw->sformat == SND_PCM_FORMAT_MU_LAW) { in snd_pcm_mulaw_hw_params()
349 mulaw->getput_idx = snd_pcm_linear_get_index(mulaw->sformat, SND_PCM_FORMAT_S16); in snd_pcm_mulaw_hw_params()
400 snd_pcm_format_name(mulaw->sformat)); in snd_pcm_mulaw_dump()
438 int snd_pcm_mulaw_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *sla… in snd_pcm_mulaw_open() argument
444 if (snd_pcm_format_linear(sformat) != 1 && in snd_pcm_mulaw_open()
[all …]
Dpcm_alaw.c54 snd_pcm_format_t sformat; member
230 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) { in snd_pcm_alaw_hw_refine_cprepare()
254 _snd_pcm_hw_params_set_format(sparams, alaw->sformat); in snd_pcm_alaw_hw_refine_sprepare()
322 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) { in snd_pcm_alaw_hw_params()
326 alaw->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, alaw->sformat); in snd_pcm_alaw_hw_params()
330 if (alaw->sformat == SND_PCM_FORMAT_A_LAW) { in snd_pcm_alaw_hw_params()
334 alaw->getput_idx = snd_pcm_linear_get_index(alaw->sformat, SND_PCM_FORMAT_S16); in snd_pcm_alaw_hw_params()
385 snd_pcm_format_name(alaw->sformat)); in snd_pcm_alaw_dump()
424 int snd_pcm_alaw_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slav… in snd_pcm_alaw_open() argument
430 if (snd_pcm_format_linear(sformat) != 1 && in snd_pcm_alaw_open()
[all …]
Dpcm_linear.c47 snd_pcm_format_t sformat; member
246 _snd_pcm_hw_params_set_format(sparams, linear->sformat); in snd_pcm_linear_hw_refine_sprepare()
312 snd_pcm_format_physical_width(linear->sformat) == 24 || in snd_pcm_linear_hw_params()
314 snd_pcm_format_width(linear->sformat) == 20); in snd_pcm_linear_hw_params()
318 linear->put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, linear->sformat); in snd_pcm_linear_hw_params()
320 linear->get_idx = snd_pcm_linear_get_index(linear->sformat, SND_PCM_FORMAT_S32); in snd_pcm_linear_hw_params()
326 linear->sformat); in snd_pcm_linear_hw_params()
328 linear->conv_idx = snd_pcm_linear_convert_index(linear->sformat, in snd_pcm_linear_hw_params()
388 snd_pcm_format_name(linear->sformat)); in snd_pcm_linear_dump()
428 int snd_pcm_linear_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *sl… in snd_pcm_linear_open() argument
[all …]
Dpcm_adpcm.c85 snd_pcm_format_t sformat; member
333 if (adpcm->sformat == SND_PCM_FORMAT_IMA_ADPCM) { in snd_pcm_adpcm_hw_refine_cprepare()
358 _snd_pcm_hw_params_set_format(sparams, adpcm->sformat); in snd_pcm_adpcm_hw_refine_sprepare()
426 if (adpcm->sformat == SND_PCM_FORMAT_IMA_ADPCM) { in snd_pcm_adpcm_hw_params()
430 adpcm->getput_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, adpcm->sformat); in snd_pcm_adpcm_hw_params()
434 if (adpcm->sformat == SND_PCM_FORMAT_IMA_ADPCM) { in snd_pcm_adpcm_hw_params()
438 adpcm->getput_idx = snd_pcm_linear_get_index(adpcm->sformat, SND_PCM_FORMAT_S16); in snd_pcm_adpcm_hw_params()
512 snd_pcm_format_name(adpcm->sformat)); in snd_pcm_adpcm_dump()
551 int snd_pcm_adpcm_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *sla… in snd_pcm_adpcm_open() argument
557 if (snd_pcm_format_linear(sformat) != 1 && in snd_pcm_adpcm_open()
[all …]
Dpcm_lfloat.c54 snd_pcm_format_t sformat; member
200 snd_pcm_format_linear(lfloat->sformat) ? in snd_pcm_lfloat_hw_refine_cprepare()
218 _snd_pcm_hw_params_set_format(sparams, lfloat->sformat); in snd_pcm_lfloat_hw_refine_sprepare()
344 snd_pcm_format_name(lfloat->sformat)); in snd_pcm_lfloat_dump()
383 int snd_pcm_lfloat_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sformat, snd_pcm_t *sl… in snd_pcm_lfloat_open() argument
389 if (snd_pcm_format_linear(sformat) != 1 && in snd_pcm_lfloat_open()
390 snd_pcm_format_float(sformat) != 1) in snd_pcm_lfloat_open()
397 lfloat->sformat = sformat; in snd_pcm_lfloat_open()
475 snd_pcm_format_t sformat; in _snd_pcm_lfloat_open() local
495 SND_PCM_HW_PARAM_FORMAT, SCONF_MANDATORY, &sformat); in _snd_pcm_lfloat_open()
[all …]
Dpcm_route.c103 snd_pcm_format_t sformat; member
479 if (route->sformat != SND_PCM_FORMAT_UNKNOWN) { in snd_pcm_route_hw_refine_sprepare()
480 _snd_pcm_hw_params_set_format(sparams, route->sformat); in snd_pcm_route_hw_refine_sprepare()
502 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_hw_refine_schange()
526 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_hw_refine_cchange()
687 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_dump()
691 snd_pcm_format_name(route->sformat)); in snd_pcm_route_dump()
1017 snd_pcm_format_t sformat, int schannels, in snd_pcm_route_open() argument
1027 if (sformat != SND_PCM_FORMAT_UNKNOWN && in snd_pcm_route_open()
1028 snd_pcm_format_linear(sformat) != 1) in snd_pcm_route_open()
[all …]
Dpcm_plug.c50 snd_pcm_format_t sformat; member
498 …int (*f)(snd_pcm_t **_pcm, const char *name, snd_pcm_format_t sformat, snd_pcm_t *slave, int close… in snd_pcm_plug_change_format()
719 if (plug->sformat >= 0) { in snd_pcm_plug_hw_refine_sprepare()
720 _snd_pcm_hw_params_set_format(sparams, plug->sformat); in snd_pcm_plug_hw_refine_sprepare()
814 if (plug->sformat == -2 || (pcm->mode & SND_PCM_NO_AUTO_FORMAT)) in snd_pcm_plug_hw_refine_schange()
901 if (plug->sformat == -2 || (pcm->mode & SND_PCM_NO_AUTO_FORMAT)) in snd_pcm_plug_hw_refine_cchange()
1107 snd_pcm_format_t sformat, int schannels, int srate, in snd_pcm_plug_open() argument
1123 plug->sformat = sformat; in snd_pcm_plug_open()
1236 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; in _snd_pcm_plug_open() local
1294 SND_PCM_HW_PARAM_FORMAT, SCONF_UNCHANGED, &sformat, in _snd_pcm_plug_open()
[all …]
Dpcm_rate.c57 snd_pcm_format_t sformat; member
162 if (rate->sformat != SND_PCM_FORMAT_UNKNOWN) { in snd_pcm_rate_hw_refine_sprepare()
163 _snd_pcm_hw_params_set_format(sparams, rate->sformat); in snd_pcm_rate_hw_refine_sprepare()
181 if (rate->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_rate_hw_refine_schange()
214 if (rate->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_rate_hw_refine_cchange()
1247 if (rate->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_rate_dump()
1253 snd_pcm_format_name(rate->sformat)); in snd_pcm_rate_dump()
1462 snd_pcm_format_t sformat, unsigned int srate, in snd_pcm_rate_open() argument
1476 if (sformat != SND_PCM_FORMAT_UNKNOWN && in snd_pcm_rate_open()
1477 snd_pcm_format_linear(sformat) != 1) in snd_pcm_rate_open()
[all …]
Dpcm_share.c1373 snd_pcm_format_t sformat, int srate, in snd_pcm_share_open() argument
1492 slave->format = sformat; in snd_pcm_share_open()
1613 snd_pcm_format_t sformat = SND_PCM_FORMAT_UNKNOWN; in _snd_pcm_share_open() local
1646 SND_PCM_HW_PARAM_FORMAT, 0, &sformat, in _snd_pcm_share_open()
1714 err = snd_pcm_share_open(pcmp, name, sname, sformat, srate, in _snd_pcm_share_open()
/third_party/alsa-lib/include/
Dpcm_plugin.h90 snd_pcm_format_t sformat, snd_pcm_t *slave,
100 snd_pcm_format_t sformat, snd_pcm_t *slave,
110 snd_pcm_format_t sformat, snd_pcm_t *slave,
120 snd_pcm_format_t sformat, snd_pcm_t *slave,
130 snd_pcm_format_t sformat, snd_pcm_t *slave,
147 snd_pcm_format_t sformat, int schannels,
160 snd_pcm_format_t sformat, unsigned int srate,
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_format.h128 SVGA3dSurfaceFormat sformat,
Dsvga_format.c2136 SVGA3dSurfaceFormat sformat, in svga_format_is_shareable() argument
2146 if (default_format == sformat) in svga_format_is_shareable()
2154 if (*compat_format == sformat) in svga_format_is_shareable()
2165 svga_format_name(sformat)); in svga_format_is_shareable()
/third_party/ffmpeg/libavcodec/
Dmfenc.c590 enum AVSampleFormat sformat = ff_media_type_to_sample_fmt((IMFAttributes *)type); in mf_enca_input_score() local
591 if (sformat == AV_SAMPLE_FMT_NONE) in mf_enca_input_score()
594 if (sformat == avctx->sample_fmt) in mf_enca_input_score()
613 enum AVSampleFormat sformat = ff_media_type_to_sample_fmt((IMFAttributes *)type); in mf_enca_input_adjust() local
614 if (sformat != avctx->sample_fmt) { in mf_enca_input_adjust()
/third_party/python/Lib/test/
Dtest_buffer.py2581 sformat = '@' + sfmt if randrange(2) else sfmt
2582 ssize = struct.calcsize(sformat)
2586 ex = ndarray(list(range(32)), shape=[32//ssize], format=sformat)