Searched refs:blk (Results 1 – 6 of 6) sorted by relevance
/btstack/test/sbc/ |
H A D | sbc_decoder.py | 110 for blk in range(frame.nr_blocks): 113 frame.audio_sample[blk][ch][sb] = get_bits(fin, frame.bits[ch][sb]) 127 for blk in range(frame.nr_blocks): 131 AS = frame.audio_sample[blk][ch][sb] 134 frame.sb_sample[blk][ch][sb] = SF * ((AS*2.0+1.0) / L -1.0 ) 136 frame.sb_sample[blk][ch][sb] = 0 140 for blk in range(frame.nr_blocks): 143 ch_a = frame.sb_sample[blk][0][sb] + frame.sb_sample[blk][1][sb] 144 ch_b = frame.sb_sample[blk][0][sb] - frame.sb_sample[blk][1][sb] 145 frame.sb_sample[blk][0][sb] = ch_a [all …]
|
H A D | sbc_encoder_test.py | 16 for blk in range(actual_frame.nr_blocks): 18 M = mse(actual_frame.sb_sample[blk][ch], expected_frame.sb_sample[blk][ch]) 23 … print ("Frame %d: sb_sample error %f (ch %d, blk %d)" % (frame_count, max_error, ch, blk)) 24 print (actual_frame.sb_sample[blk]) 25 print (expected_frame.sb_sample[blk]) 32 for blk in range(actual_frame.nr_blocks): 34 M = mse(actual_frame.audio_sample[blk][ch], expected_frame.audio_sample[blk][ch]) 40 print (actual_frame.audio_sample[blk]) 41 print (expected_frame.audio_sample[blk])
|
H A D | sbc_encoder.py | 27 def sbc_frame_analysis_sig(frame, ch, blk, C): argument 57 frame.sb_sample[blk][ch][sb] = S[sb] 60 def sbc_frame_analysis(frame, ch, blk, proto_table): argument 65 sbc_frame_analysis_sig(frame, ch, blk, proto_table) 85 for blk in range(frame.nr_blocks): 89 sbc_frame_analysis(frame, ch, blk, C) 117 for blk in range(frame.nr_blocks): 121 SB = frame.sb_sample[blk][ch][sb] 124 frame.audio_sample[blk][ch][sb] = np.uint16(((SB * L / SF + L) - 1.0)/2.0) 126 frame.audio_sample[blk][ch][sb] = 0
|
H A D | sbc.py | 143 for blk in range(nr_blocks): 146 m = abs(sb_sample[blk][ch][sb]) 175 for blk in range(frame.nr_blocks): 177 sb_sample[blk][0][sb] = (frame.sb_sample[blk][0][sb] + frame.sb_sample[blk][1][sb])/2 178 sb_sample[blk][1][sb] = (frame.sb_sample[blk][0][sb] - frame.sb_sample[blk][1][sb])/2 195 for blk in range(frame.nr_blocks): 196 frame.sb_sample[blk][0][sb] = sb_sample[blk][0][sb] 197 frame.sb_sample[blk][1][sb] = sb_sample[blk][1][sb] 246 def dump_audio_samples(self, blk, ch): argument 247 print(self.audio_sample[blk][ch]) [all …]
|
H A D | sbc_synthesis_v1.py | 58 def sbc_frame_synthesis_v1_4subbands(frame, ch, blk): argument 62 def sbc_frame_synthesis_v1_8subbands(frame, ch, blk): argument
|
/btstack/3rd-party/bluedroid/decoder/srce/ |
H A D | synthesis-sbc.c | 262 OI_UINT blk; in OI_SBC_SynthFrame_80() local 270 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_80() 294 OI_UINT blk; in OI_SBC_SynthFrame_4SB() local 302 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_4SB() 328 OI_UINT blk; in OI_SBC_SynthFrame_Enhanced() local 336 for (blk = blkstart; blk < blkstop; blk++) { in OI_SBC_SynthFrame_Enhanced()
|