Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Dg722_decode.c163 s->bits_per_sample = 6; in WebRtc_g722_decode_init()
165 s->bits_per_sample = 7; in WebRtc_g722_decode_init()
167 s->bits_per_sample = 8; in WebRtc_g722_decode_init()
170 if ((options & G722_PACKED) && s->bits_per_sample != 8) in WebRtc_g722_decode_init()
268 if (s->in_bits < s->bits_per_sample) in WebRtc_g722_decode()
273 code = s->in_buffer & ((1 << s->bits_per_sample) - 1); in WebRtc_g722_decode()
274 s->in_buffer >>= s->bits_per_sample; in WebRtc_g722_decode()
275 s->in_bits -= s->bits_per_sample; in WebRtc_g722_decode()
282 switch (s->bits_per_sample) in WebRtc_g722_decode()
Dg722_encode.c164 s->bits_per_sample = 6; in WebRtc_g722_encode_init()
166 s->bits_per_sample = 7; in WebRtc_g722_encode_init()
168 s->bits_per_sample = 8; in WebRtc_g722_encode_init()
171 if ((options & G722_PACKED) && s->bits_per_sample != 8) in WebRtc_g722_encode_init()
378 code = (0xC0 | ilow) >> (8 - s->bits_per_sample); in WebRtc_g722_encode()
411 code = ((ihigh << 6) | ilow) >> (8 - s->bits_per_sample); in WebRtc_g722_encode()
418 s->out_bits += s->bits_per_sample; in WebRtc_g722_encode()
Dg722_enc_dec.h68 int bits_per_sample; member
106 int bits_per_sample; member
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc49 char bits_per_sample[2]; member
193 core::EncodeFixed16(format_chunk->bits_per_sample, kBitsPerSample); in EncodeAudioAsS16LEWav()
243 uint16 bits_per_sample; in DecodeLin16WaveAsFloatVector() local
244 TF_RETURN_IF_ERROR(ReadValue<uint16>(wav_string, &bits_per_sample, &offset)); in DecodeLin16WaveAsFloatVector()
245 if (bits_per_sample != 16) { in DecodeLin16WaveAsFloatVector()
247 "Can only read 16-bit WAV files, but received ", bits_per_sample); in DecodeLin16WaveAsFloatVector()
250 ((bits_per_sample * *channel_count) + 7) / 8; in DecodeLin16WaveAsFloatVector()
/external/webrtc/webrtc/modules/audio_device/include/
Daudio_device_defines.h104 int bits_per_sample, in OnData() argument
117 int bits_per_sample, in PushCaptureData() argument
126 virtual void PullRenderData(int bits_per_sample, in PullRenderData() argument
163 size_t bits_per_sample() const { return kBitsPerSample; } in bits_per_sample() function
/external/tinyalsa/
Dtinycap.c55 uint16_t bits_per_sample; member
165 header.bits_per_sample = pcm_format_to_bits(format); in main()
166 header.byte_rate = (header.bits_per_sample / 8) * channels * rate; in main()
167 header.block_align = channels * (header.bits_per_sample / 8); in main()
Dtinyplay.c58 uint16_t bits_per_sample; member
156 chunk_fmt.bits_per_sample, period_size, period_count); in main()
/external/webrtc/webrtc/voice_engine/
Dvoe_base_impl.h87 int bits_per_sample,
93 int bits_per_sample,
97 void PullRenderData(int bits_per_sample,
Dvoe_base_impl.cc143 int bits_per_sample, int sample_rate, in OnData() argument
145 PushCaptureData(voe_channel, audio_data, bits_per_sample, sample_rate, in OnData()
150 int bits_per_sample, int sample_rate, in PushCaptureData() argument
165 void VoEBaseImpl::PullRenderData(int bits_per_sample, in PullRenderData() argument
171 assert(bits_per_sample == 16); in PullRenderData()
/external/ImageMagick/coders/
Dtiff.c866 static int32 TIFFReadPixels(TIFF *tiff,size_t bits_per_sample, in TIFFReadPixels() argument
872 (void) bits_per_sample; in TIFFReadPixels()
920 uint16 bits_per_sample,uint16 samples_per_pixel) in GetJPEGMethod() argument
948 if ((photometric != PHOTOMETRIC_SEPARATED) || (bits_per_sample != 8) || in GetJPEGMethod()
1119 bits_per_sample, in ReadTIFFImage() local
1209 (TIFFGetFieldDefaulted(tiff,TIFFTAG_BITSPERSAMPLE,&bits_per_sample) != 1) || in ReadTIFFImage()
1291 "Bits per sample: %u",bits_per_sample); in ReadTIFFImage()
1302 image->depth=(size_t) bits_per_sample; in ReadTIFFImage()
1492 (pow(2.0,1.0*bits_per_sample) <= MaxColormapSize)) in ReadTIFFImage()
1497 colors=(size_t) GetQuantumRange(bits_per_sample)+1; in ReadTIFFImage()
[all …]
/external/flac/libFLAC/
Dstream_encoder_framing.c95 FLAC__ASSERT(metadata->data.stream_info.bits_per_sample > 0); in FLAC__add_metadata_block()
96 …FLAC__ASSERT(metadata->data.stream_info.bits_per_sample <= (1u << FLAC__STREAM_METADATA_STREAMINFO… in FLAC__add_metadata_block()
97 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.stream_info.bits_per_sample-1, FLAC__STREA… in FLAC__add_metadata_block()
315 …FLAC__ASSERT(header->bits_per_sample > 0 && header->bits_per_sample <= (1u << FLAC__STREAM_METADAT… in FLAC__frame_add_header()
316 switch(header->bits_per_sample) { in FLAC__frame_add_header()
Dstream_encoder.c652 if(encoder->protected_->bits_per_sample >= 32) in init_stream_internal_()
655 …if(encoder->protected_->bits_per_sample < FLAC__MIN_BITS_PER_SAMPLE || encoder->protected_->bits_p… in init_stream_internal_()
678 if(encoder->protected_->bits_per_sample < 16) { in init_stream_internal_()
681 …_precision = flac_max(FLAC__MIN_QLP_COEFF_PRECISION, 2 + encoder->protected_->bits_per_sample / 2); in init_stream_internal_()
683 else if(encoder->protected_->bits_per_sample == 16) { in init_stream_internal_()
718 encoder->protected_->bits_per_sample != 8 && in init_stream_internal_()
719 encoder->protected_->bits_per_sample != 12 && in init_stream_internal_()
720 encoder->protected_->bits_per_sample != 16 && in init_stream_internal_()
721 encoder->protected_->bits_per_sample != 20 && in init_stream_internal_()
722 encoder->protected_->bits_per_sample != 24 in init_stream_internal_()
[all …]
Dstream_decoder.c881 return decoder->protected_->bits_per_sample; in FLAC__stream_decoder_get_bits_per_sample()
1621 decoder->private_->stream_info.data.stream_info.bits_per_sample = x+1; in read_metadata_streaminfo_()
2041 unsigned bps = decoder->private_->frame.header.bits_per_sample; in read_frame_()
2143 decoder->protected_->bits_per_sample = decoder->private_->frame.header.bits_per_sample; in read_frame_()
2329 …decoder->private_->frame.header.bits_per_sample = decoder->private_->stream_info.data.stream_info. in read_frame_header_()
2334 decoder->private_->frame.header.bits_per_sample = 8; in read_frame_header_()
2337 decoder->private_->frame.header.bits_per_sample = 12; in read_frame_header_()
2340 decoder->private_->frame.header.bits_per_sample = 16; in read_frame_header_()
2343 decoder->private_->frame.header.bits_per_sample = 20; in read_frame_header_()
2346 decoder->private_->frame.header.bits_per_sample = 24; in read_frame_header_()
[all …]
/external/python/cpython2/Doc/library/
Dsndhdr.rst20 sampling_rate, channels, frames, bits_per_sample)``. The value for *type*
27 of frames or ``-1``. The last item in the tuple, *bits_per_sample*, will either
/external/webrtc/webrtc/modules/audio_device/android/
Dopensles_player.cc57 audio_parameters_.bits_per_sample()); in OpenSLESPlayer()
192 size_t bits_per_sample) { in CreatePCMConfiguration() argument
194 RTC_CHECK_EQ(bits_per_sample, SL_PCMSAMPLEFORMAT_FIXED_16); in CreatePCMConfiguration()
Dopensles_player.h99 size_t bits_per_sample);
/external/flac/libFLAC/include/protected/
Dstream_decoder.h46 unsigned bits_per_sample; member
Dstream_encoder.h94 unsigned bits_per_sample; member
/external/webrtc/talk/media/base/
Daudiorenderer.h42 int bits_per_sample,
Dfakemediaengine.h369 int bits_per_sample, in OnData() argument
/external/webrtc/talk/app/webrtc/
Drtpsender.cc45 int bits_per_sample, in OnData() argument
51 sink_->OnData(audio_data, bits_per_sample, sample_rate, number_of_channels, in OnData()
Drtpsender.h58 int bits_per_sample,
Dmediastreaminterface.h152 int bits_per_sample,
/external/flac/include/FLAC/
Dformat.h424 unsigned bits_per_sample; member
534 unsigned bits_per_sample; member
/external/python/cpython3/Doc/library/
Dsndhdr.rst29 of frames or ``-1``. The last item in the tuple, *bits_per_sample*, will either

12