Lines Matching refs:blk
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
146 frame.sb_sample[blk][1][sb] = ch_b
151 def sbc_frame_synthesis_sig(frame, ch, blk, proto_table): argument
164 S[i] = frame.sb_sample[blk][ch][i]
184 offset = blk*M
191 def sbc_frame_synthesis_v1(frame, ch, blk, proto_table): argument
205 S[i] = frame.sb_sample[blk][ch][i]
220 offset = blk*M
227 def sbc_frame_synthesis(frame, ch, blk, proto_table, implementation = "SIG"): argument
232 sbc_frame_synthesis_sig(frame, ch, blk, proto_table)
234 sbc_frame_synthesis_v1(frame, ch, blk, proto_table)
272 for blk in range(frame.nr_blocks):
273 sbc_frame_synthesis(frame, ch, blk, proto_table, implementation)