7.1.5. skecg.cs.codec_b.decode#

skecg.cs.codec_b.decode(bits: bitarray.bitarray, block_size=32)[source]#

Decodes an encoded bitstream

This function:

  • reads the stream header

  • reads the frame headers and frame payloads one by one

  • decode each frame

  • combine them together to form the decoded bitstream

The input is a bitarray. The only parameter is the block size for the BSBL reconstruction algorithm.