FreeCalypso > hg > gsm-codec-lib
comparison miscutil/efr2amr.c @ 107:41f1ae68d253
amr2efr & efr2amr cosmetic: cleaner approach to bit reshuffling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 27 Nov 2022 21:02:07 +0000 |
parents | e7c8d739c4c8 |
children |
comparison
equal
deleted
inserted
replaced
106:e7c8d739c4c8 | 107:41f1ae68d253 |
---|---|
72 if (bfi) { | 72 if (bfi) { |
73 frm_out[0] = 0x78; | 73 frm_out[0] = 0x78; |
74 outlen = 1; | 74 outlen = 1; |
75 } else { | 75 } else { |
76 frm_out[0] = 0x3C; | 76 frm_out[0] = 0x3C; |
77 bzero(frm_out + 1, 31); | 77 frm_out[31] = 0; |
78 for (bit_a = 0; bit_a < 244; bit_a++) { | 78 for (bit_a = 0; bit_a < 244; bit_a++) { |
79 if (wrong_flag) | 79 if (wrong_flag) |
80 bit_n = bit_a; | 80 bit_n = bit_a; |
81 else | 81 else |
82 bit_n = amr_122_bit_order[bit_a]; | 82 bit_n = amr_122_bit_order[bit_a]; |