/btstack/test/sbc/ |
H A D | sbc_decoder_test.py | 51 if actual_frame.bitpool != expected_frame.bitpool: 52 print("bitpool wrong (E: %d, D: %d)" % (actual_frame.bitpool, expected_frame.bitpool)) 69 …e(fin_expected, nr_blocks, nr_subbands, nr_channels, sampling_frequency, bitpool, allocation_metho… argument 70 …expected_frame = SBCFrame(nr_blocks, nr_subbands, nr_channels, sampling_frequency, bitpool, alloca… 118 actual_frame.bitpool, sampling_frequency,
|
H A D | sbc_encoder_test.py | 75 if actual_frame.bitpool != expected_frame.bitpool: 76 print ("bitpool wrong (E: %d, D: %d)" % (actual_frame.bitpool, expected_frame.bitpool)) 103 def get_actual_frame(fin, nr_blocks, nr_subbands, nr_channels, sampling_frequency, bitpool, allocat… argument 104 …actual_frame = SBCFrame(nr_blocks, nr_subbands, nr_channels, sampling_frequency, bitpool, allocati… 129 bitpool = int(sys.argv[4]) variable 161 …actual_frame = get_actual_frame(fin, nr_blocks, nr_subbands, nr_channels, bitpool, sampling_freque…
|
H A D | sbc.py | 208 bitpool = 0 variable in SBCFrame 224 …def __init__(self, nr_blocks=16, nr_subbands=4, nr_channels=1, bitpool=31, sampling_frequency=4410… argument 229 self.bitpool = bitpool 275 res += "\n - bitpool %d" % self.bitpool 329 if bitcount + slicecount >= frame.bitpool: 332 if bitcount + slicecount == frame.bitpool: 346 while bitcount < frame.bitpool and sb < frame.nr_subbands: 350 elif (bitneed[ch][sb] == bitslice+1) and (frame.bitpool > bitcount+1): 362 while bitcount < frame.bitpool and sb < frame.nr_subbands: 373 if bits.sum() != frame.bitpool: [all …]
|
H A D | sbc_encoder.py | 161 bitpool = int(sys.argv[4]) variable 173 bitpool = 26 variable 190 …sbc_encoder_frame = SBCFrame(nr_blocks, nr_subbands, nr_channels, bitpool, sampling_frequency, all…
|
H A D | sbc_decoder.py | 58 frame.bitpool = 26 66 frame.bitpool = get_bits(fin,8)
|
/btstack/3rd-party/bluedroid/decoder/srce/ |
H A D | bitalloc.c | 63 OI_UINT16 nbits = frame->nrof_blocks * frame->bitpool; in internal_CalculateFramelen() 248 OI_INT adjustToFitBitpool(const OI_UINT bitpool, in adjustToFitBitpool() argument 255 OI_INT bitadjust = (bitcount > bitpool) ? -8 : 8; in adjustToFitBitpool() 261 while ((bitcount != bitpool) && chop) { in adjustToFitBitpool() 287 if (count > bitpool) { in adjustToFitBitpool() 296 *excess = bitpool - bitcount; in adjustToFitBitpool() 358 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, nrof_subbands, bitcoun… in oneChannelBitAllocation()
|
H A D | decoder-sbc.c | 194 OI_UINT8 bitpool, in internal_DecodeRaw() argument 209 context->common.frameInfo.bitpool = bitpool; in internal_DecodeRaw() 338 …if ((context->common.frameInfo.bitpool < SBC_MIN_BITPOOL) && !context->common.frameInfo.enhanced) { in OI_CODEC_SBC_DecodeFrame() 339 ERROR(("Bitpool too small: %d (must be >= 2)", context->common.frameInfo.bitpool)); in OI_CODEC_SBC_DecodeFrame() 342 if (context->common.frameInfo.bitpool > OI_SBC_MaxBitpool(&context->common.frameInfo)) { in OI_CODEC_SBC_DecodeFrame() 343 …ERROR(("Bitpool too large: %d (must be <= %ld)", context->common.frameInfo.bitpool, OI_SBC_MaxBitp… in OI_CODEC_SBC_DecodeFrame()
|
H A D | decoder-oina.c | 88 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw() 102 OI_UINT8 bitpool, in OI_CODEC_SBC_DecodeRaw() argument 109 bitpool, in OI_CODEC_SBC_DecodeRaw()
|
H A D | bitalloc-sbc.c | 65 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation() 100 OI_ASSERT(common->frameInfo.bitpool <= OI_SBC_MaxBitpool(&common->frameInfo)); in OI_SBC_ComputeBitAllocation()
|
H A D | framing-sbc.c | 51 printf(" bitpool: %d\n", frameInfo->bitpool); in OI_CODEC_SBC_DumpConfig()
|
H A D | decoder-private.c | 117 frame->bitpool = 26; in OI_SBC_ReadHeader_mSBC() 161 frame->bitpool = data[2]; in OI_SBC_ReadHeader()
|
/btstack/src/classic/ |
H A D | btstack_sbc.h | 105 … uint16_t sample_rate, uint8_t bitpool, btstack_sbc_channel_mode_t channel_mode); 215 int sample_rate, int bitpool, btstack_sbc_channel_mode_t channel_mode);
|
H A D | btstack_sbc_encoder_bluedroid.c | 77 int sample_rate, int bitpool, btstack_sbc_channel_mode_t channel_mode){ in btstack_sbc_encoder_init() argument 96 bd_encoder_state.context.s16BitPool = bitpool; in btstack_sbc_encoder_init()
|
H A D | btstack_sbc_bluedroid.c | 55 … uint16_t sample_rate, uint8_t bitpool, btstack_sbc_channel_mode_t channel_mode){ in btstack_sbc_encoder_bluedroid_configure() argument 66 instance->params.s16BitPool = bitpool; in btstack_sbc_encoder_bluedroid_configure()
|
/btstack/3rd-party/bluedroid/decoder/include/ |
H A D | oi_codec_sbc.h | 143 …OI_UINT8 bitpool; /**< Size of the bit allocation pool used to encode the stream. Input para… member 340 OI_UINT8 bitpool,
|
H A D | oi_codec_sbc_private.h | 147 OI_INT adjustToFitBitpool(const OI_UINT bitpool, 169 OI_UINT8 bitpool,
|