MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / transform_all

Function transform_all

AudioEncode/aencode.cpp:744–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744void 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
763int32_t calc_bits(Encoder &enc, int32_t val) {
764 static uint32_t calc_bits_data[] = {0x00, 0x13, 0x16, 0x03, 0x1D, 0x00};

Callers 1

ProcessBlockFunction · 0.85

Calls 1

transform_subbandFunction · 0.85

Tested by

no test coverage detected