Home
last modified time | relevance | path

Searched refs:bits_per_sample (Results 1 – 25 of 45) sorted by relevance

12

/third_party/gstreamer/gstplugins_base/gst-libs/gst/riff/
Driff-media.c1241 wd = GST_ROUND_UP_8 (strf->bits_per_sample); in gst_riff_create_audio_caps()
1247 wd = GST_ROUND_UP_8 (strf->bits_per_sample); in gst_riff_create_audio_caps()
1250 if (strf->bits_per_sample > 32) { in gst_riff_create_audio_caps()
1252 strf->bits_per_sample); in gst_riff_create_audio_caps()
1253 strf->bits_per_sample = wd; in gst_riff_create_audio_caps()
1291 strf->bits_per_sample); in gst_riff_create_audio_caps()
1349 strf->bits_per_sample); in gst_riff_create_audio_caps()
1357 if (strf->bits_per_sample != 8) { in gst_riff_create_audio_caps()
1359 strf->bits_per_sample); in gst_riff_create_audio_caps()
1360 strf->bits_per_sample = 8; in gst_riff_create_audio_caps()
[all …]
Driff-read.c493 strf->bits_per_sample = GUINT16_FROM_LE (strf->bits_per_sample); in gst_riff_parse_strf_auds()
520 GST_INFO_OBJECT (element, " bits/sample %d", strf->bits_per_sample); in gst_riff_parse_strf_auds()
/third_party/ffmpeg/libavformat/
Dxa.c45 int channels, srate, bits_per_sample; in xa_probe() local
58 bits_per_sample = AV_RL16(p->buf + 22); in xa_probe()
60 bits_per_sample < 4 || bits_per_sample > 32) in xa_probe()
Drtpdec_rfc4175.c46 int bits_per_sample = 0; in rfc4175_parse_format() local
55 bits_per_sample = 16; in rfc4175_parse_format()
59 bits_per_sample = 20; in rfc4175_parse_format()
70 stream->codecpar->bits_per_coded_sample = bits_per_sample; in rfc4175_parse_format()
Davs.c38 int bits_per_sample; member
75 avs->bits_per_sample = avio_rl16(s->pb); in avs_read_header()
197 avs->st_video->codecpar->bits_per_coded_sample=avs->bits_per_sample; in avs_read_packet()
Dxmv.c81 uint16_t bits_per_sample; ///< Bits per compressed sample. member
191 packet->bits_per_sample = avio_rl16(pb); in xmv_read_header()
194 packet->bit_rate = (uint64_t)packet->bits_per_sample * in xmv_read_header()
200 packet->bits_per_sample); in xmv_read_header()
345 ast->codecpar->bits_per_coded_sample = packet->bits_per_sample; in xmv_process_packet_header()
Dmxfdec.c201 int bits_per_sample; member
1271 descriptor->bits_per_sample = avio_rb32(pb); in mxf_read_generic_descriptor()
2655 if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24) in mxf_parse_structural_metadata()
2657 else if (descriptor->bits_per_sample == 32) in mxf_parse_structural_metadata()
2660 if (descriptor->bits_per_sample > 16 && descriptor->bits_per_sample <= 24) in mxf_parse_structural_metadata()
2662 else if (descriptor->bits_per_sample == 32) in mxf_parse_structural_metadata()
3559 int64_t bits_per_sample = par->bits_per_coded_sample; in mxf_set_audio_pts() local
3561 if (!bits_per_sample) in mxf_set_audio_pts()
3562 bits_per_sample = av_get_bits_per_sample(par->codec_id); in mxf_set_audio_pts()
3567 || bits_per_sample <= 0 in mxf_set_audio_pts()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/audio/paudio/
DSDL_paudio.c341 paud_init.bits_per_sample = 8; in PAUDIO_OpenDevice()
347 paud_init.bits_per_sample = 8; in PAUDIO_OpenDevice()
353 paud_init.bits_per_sample = 16; in PAUDIO_OpenDevice()
359 paud_init.bits_per_sample = 16; in PAUDIO_OpenDevice()
365 paud_init.bits_per_sample = 16; in PAUDIO_OpenDevice()
371 paud_init.bits_per_sample = 16; in PAUDIO_OpenDevice()
/third_party/ffmpeg/libavfilter/
Daf_hdcd.c968 int bits_per_sample; /**< bits per sample 16, 20, or 24 */ member
1003 OFFSET(bits_per_sample), AV_OPT_TYPE_INT, { .i64=16 }, 16, 24, A, "bits_per_sample"},
1388 …gain = hdcd_envelope(samples, envelope_run, stride, ctx->bits_per_sample, gain, target_gain, peak_… in hdcd_process()
1400 … gain = hdcd_envelope(samples, lead, stride, ctx->bits_per_sample, gain, target_gain, peak_extend); in hdcd_process()
1440 …gain[0] = hdcd_envelope(samples, envelope_run, stride, ctx->bits_per_sample, gain[0], ctx->val_tar… in hdcd_process_stereo()
1441 …gain[1] = hdcd_envelope(samples + 1, envelope_run, stride, ctx->bits_per_sample, gain[1], ctx->val… in hdcd_process_stereo()
1462 …gain[0] = hdcd_envelope(samples, lead, stride, ctx->bits_per_sample, gain[0], ctx->val_target_gain… in hdcd_process_stereo()
1463 …gain[1] = hdcd_envelope(samples + 1, lead, stride, ctx->bits_per_sample, gain[1], ctx->val_target_… in hdcd_process_stereo()
1537 int a = 32 - s->bits_per_sample; in filter_frame()
1721 s->bits_per_sample != 16) { in config_input()
[all …]
/third_party/ffmpeg/libavcodec/
Dwmalosslessdec.c84 …uint8_t bits_per_sample; ///< integer audio sample size for the unscaled IM… member
212 s->bits_per_sample = AV_RL16(edata_ptr); in decode_init()
213 if (s->bits_per_sample == 16) in decode_init()
215 else if (s->bits_per_sample == 24) { in decode_init()
220 s->bits_per_sample); in decode_init()
468 if(s->cdlms[c][i].order & 8 && s->bits_per_sample == 16) { in decode_cdlms()
524 ave_mean = get_bits(&s->gb, s->bits_per_sample); in decode_channel_residues()
530 s->channel_residues[ch][0] = get_sbits_long(&s->gb, s->bits_per_sample + 1); in decode_channel_residues()
532 s->channel_residues[ch][0] = get_sbits_long(&s->gb, s->bits_per_sample); in decode_channel_residues()
627 int range = 1 << (s->bits_per_sample - 1); in mclms_update()
[all …]
Davdct.c60 {"bits_per_sample", "", OFFSET(bits_per_sample), AV_OPT_TYPE_INT, {.i64 = 8 }, 0, 14, 0,},
97 avctx->bits_per_raw_sample = dsp->bits_per_sample; in avcodec_dct_init()
Dwmaprodec.c192 …uint8_t bits_per_sample; ///< integer audio sample size for the unscaled IM… member
262 PRINT("ed sample bit depth", s->bits_per_sample); in dump_context()
347 s->bits_per_sample = 16; in decode_init()
355 s->bits_per_sample = 16; in decode_init()
360 s->bits_per_sample = 16; in decode_init()
366 s->bits_per_sample = AV_RL16(edata_ptr); in decode_init()
369 if (s->bits_per_sample > 32 || s->bits_per_sample < 1) { in decode_init()
370 avpriv_request_sample(avctx, "bits per sample is %d", s->bits_per_sample); in decode_init()
549 / (1ll << (s->bits_per_sample - 1))); in decode_init()
1296 int quant_step = 90 * s->bits_per_sample >> 4; in decode_subframe()
Davdct.h69 int bits_per_sample; member
Davcodec.c117 int bits_per_sample; in get_bit_rate() local
127 bits_per_sample = av_get_bits_per_sample(ctx->codec_id); in get_bit_rate()
128 if (bits_per_sample) { in get_bit_rate()
130 if (bit_rate > INT64_MAX / bits_per_sample) { in get_bit_rate()
133 bit_rate *= bits_per_sample; in get_bit_rate()
/third_party/libsnd/src/
Dalac.c50 uint32_t bits_per_sample, kuki_size ; member
257 plac->bits_per_sample = info->bits_per_sample ; in alac_reader_init()
282 switch (info->bits_per_sample) in alac_reader_init()
294 printf ("%s : info->bits_per_sample %u\n", __func__, info->bits_per_sample) ; in alac_reader_init()
328 plac->bits_per_sample = 16 ; in alac_writer_init()
333 plac->bits_per_sample = 20 ; in alac_writer_init()
338 plac->bits_per_sample = 24 ; in alac_writer_init()
343 plac->bits_per_sample = 32 ; in alac_writer_init()
Dflac.c223 int shift = 16 - frame->header.bits_per_sample ; in flac_buffer_copy()
263 int shift = 32 - frame->header.bits_per_sample ; in flac_buffer_copy()
283 …float norm = (psf->norm_float == SF_TRUE) ? 1.0 / (1 << (frame->header.bits_per_sample - 1)) : 1.0… in flac_buffer_copy()
304 …double norm = (psf->norm_double == SF_TRUE) ? 1.0 / (1 << (frame->header.bits_per_sample - 1)) : 1… in flac_buffer_copy()
470 switch (metadata->data.stream_info.bits_per_sample) in sf_flac_meta_callback()
484 …allback : bits_per_sample %d not yet implemented.\n", metadata->data.stream_info.bits_per_sample) ; in sf_flac_meta_callback()
Dcaf.c266 pcaf->alac.bits_per_sample = 16 ; in decode_desc_chunk()
270 pcaf->alac.bits_per_sample = 20 ; in decode_desc_chunk()
274 pcaf->alac.bits_per_sample = 24 ; in decode_desc_chunk()
278 pcaf->alac.bits_per_sample = 32 ; in decode_desc_chunk()
/third_party/alsa-utils/axfer/
Dcontainer-riff-wave.c105 uint16_t bits_per_sample; member
196 be16toh(subchunk->bits_per_sample); in parse_wave_fmt_subchunk()
205 le16toh(subchunk->bits_per_sample); in parse_wave_fmt_subchunk()
446 subchunk->bits_per_sample = in build_wave_format_subchunk()
455 subchunk->bits_per_sample = in build_wave_format_subchunk()
Dcontainer-voc.c199 uint8_t bits_per_sample; member
363 state->bytes_per_sample = block->bits_per_sample / 8; in parse_v120_format_block()
625 block->bits_per_sample = state->bytes_per_sample * 8; in write_v120_format_block()
/third_party/gstreamer/gstplugins_bad/sys/magicleap/
Dmlaudiowrapper.cpp55 ret.bits_per_sample = format->bits_per_sample; in convert_buffer_format()
/third_party/ffmpeg/tests/ref/fate/
Dmxf-probe-dv2564 bits_per_sample=16
104 bits_per_sample=16
Dmxf-probe-applehdr1082 bits_per_sample=24
122 bits_per_sample=24
Dmxf-probe-d1067 bits_per_sample=16
/third_party/alsa-utils/aplay/
Daplay.c130 static size_t significant_bits_per_sample, bits_per_sample, bits_per_frame; variable
1469 bits_per_sample = snd_pcm_format_physical_width(hwparams.format); in set_params()
1471 bits_per_frame = bits_per_sample * hwparams.channels; in set_params()
1807 switch (bits_per_sample) { in compute_max_peak()
1856 if (val & (1<<(bits_per_sample-1))) { in compute_max_peak()
1893 fprintf(stderr, _("Unsupported bit size %d.\n"), (int)bits_per_sample); in compute_max_peak()
1905 if (bits_per_sample > 16) in compute_max_peak()
2042 size_t sample_bytes = bits_per_sample / 8; in remap_data()
2151 …snd_pcm_format_set_silence(hwparams.format, data[channel] + offset * bits_per_sample / 8, remainin… in pcm_writev()
2160 bufs[channel] = data[channel] + offset * bits_per_sample / 8; in pcm_writev()
[all …]
/third_party/gstreamer/gstplugins_good/gst/avi/
Dgstavimux.c876 avipad->auds.bits_per_sample = 8; in gst_avi_mux_audsink_set_caps()
880 avipad->auds.bits_per_sample = 16; in gst_avi_mux_audsink_set_caps()
884 avipad->auds.bits_per_sample = 24; in gst_avi_mux_audsink_set_caps()
888 avipad->auds.bits_per_sample = 32; in gst_avi_mux_audsink_set_caps()
906 avipad->valid_bits_per_sample = avipad->auds.bits_per_sample; in gst_avi_mux_audsink_set_caps()
921 avipad->auds.bits_per_sample = 16; in gst_avi_mux_audsink_set_caps()
991 avipad->auds.bits_per_sample = 8; in gst_avi_mux_audsink_set_caps()
996 avipad->auds.bits_per_sample = 8; in gst_avi_mux_audsink_set_caps()
1432 hdl &= gst_byte_writer_put_uint16_le (&bw, audpad->auds.bits_per_sample); in gst_avi_mux_riff_get_avi_header()

12