| 742 | } |
| 743 | |
| 744 | void transform_all(Encoder &enc) { |
| 745 | if (enc.m_levels <= 0) |
| 746 | return; |
| 747 | |
| 748 | int32_t subBandCount = 1; |
| 749 | int32_t sampleCount = enc.m_samplesPerBlock; |
| 750 | for (int i = 0; i < enc.m_levels; ++i) { |
| 751 | float *levelDataEBX = enc.m_levelSlots[i]; |
| 752 | float *levelDataEBP = enc.m_levelSlots[i + 1]; |
| 753 | |
| 754 | for (int sbc = 0; sbc < subBandCount; ++sbc) { |
| 755 | transform_subband(enc, levelDataEBX++, levelDataEBP++, subBandCount, sampleCount); |
| 756 | } |
| 757 | |
| 758 | subBandCount += subBandCount; |
| 759 | sampleCount >>= 1; |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | int32_t calc_bits(Encoder &enc, int32_t val) { |
| 764 | static uint32_t calc_bits_data[] = {0x00, 0x13, 0x16, 0x03, 0x1D, 0x00}; |
no test coverage detected