This DVB-S2 code is from https://github.com/G4GUO/