Home
last modified time | relevance | path

Searched refs:bitdepth (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/audio/asrc/
Dasrc_resampler_test.py29 def __init__(self, lib, channels, bitdepth): argument
33 self.bitdepth = bitdepth
44 bitdepth = self.bitdepth
46 xs_min = -(2**(bitdepth - 1))
47 xs_max = (2**(bitdepth - 1) - 1)
48 xs_int = np.rint(np.clip(np.ldexp(xs, bitdepth-1), xs_min, xs_max)).\
49 astype([np.int16, np.int32][bitdepth > 16], 'C')
53 if bitdepth <= 16:
54 …lib.resample_i16(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int16_…
57 …lib.resample_i32(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int32_…
[all …]
Dasrc_resampler_test.cc36 SourceAudioHalAsrcTest(int channels, int bitdepth) in SourceAudioHalAsrcTest() argument
37 : SourceAudioHalAsrc(&message_loop_thread, channels, 48000, bitdepth, in SourceAudioHalAsrcTest()
54 extern "C" void resample_i16(int channels, int bitdepth, double ratio, in resample_i16() argument
59 SourceAudioHalAsrcTest(channels, bitdepth) in resample_i16()
70 extern "C" void resample_i32(int channels, int bitdepth, double ratio, in resample_i32() argument
75 SourceAudioHalAsrcTest(channels, bitdepth) in resample_i32()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Da2dp_encoding_aidl.cc803 static btav_a2dp_codec_bits_per_sample_t convert_bitdepth(int bitdepth) { in convert_bitdepth() argument
804 switch (bitdepth) { in convert_bitdepth()
812 log::error("unknown bit depth {}", bitdepth); in convert_bitdepth()
923 codecParameters.bitdepth = 16; in get_a2dp_configuration()
926 codecParameters.bitdepth = 24; in get_a2dp_configuration()
929 codecParameters.bitdepth = 32; in get_a2dp_configuration()
974 convert_bitdepth(result->parameters.bitdepth); in get_a2dp_configuration()
1020 convert_bitdepth(codec_parameters_aidl.bitdepth); in parse_a2dp_configuration()
Da2dp_provider_info.cc453 for (auto const& bitdepth : transport.bitdepth) { in CodecCapabilities() local
454 switch (bitdepth) { in CodecCapabilities()
Da2dp_provider_info_unittest.cc132 std::vector<int32_t> bitdepth, bool lossless) { in CreateTestA2dpCodecInfo() argument
141 a2dpInfo.bitdepth = bitdepth; in CreateTestA2dpCodecInfo()
/packages/services/Car/cpp/evs/manager/1.1/emul/
DVideoCapture.cpp104 png_uint_32 bitdepth = png_get_bit_depth(pngPtr, infoPtr); in fillBufferFromPng() local
114 bitdepth = 8; in fillBufferFromPng()
145 LOG(DEBUG) << "width = " << width << ", height = " << height << ", bitdepth = " << bitdepth in fillBufferFromPng()