decoder.py
def init_stream(self):
        """read entroy-encoded data between SOS and the next marker to the stream,
        remove byte padding 0x00, which follows a 0xff"""
        stream = Stream()
        while True:
            x = self.read_1b()
            if x != 0xff:
                stream.write_byte(x)
            else:
                y = self.read_1b()
                if y == 0x00: # remove byte padding 0x00
                    stream.write_byte(x)
                else: # x is the first byte of the next marker
                    self.pos -= 2
                    break
        self.stream = stream
read entroy-encoded data between SOS and the next marker to the stream,
        remove byte padding 0x00, which follows a 0xff
read entroy-encoded data between SOS and the next marker to the stream,
remove byte padding 0x00, which follows a 0xff
read entroy - encoded data between SOS and the next marker to the stream remove byte padding 0x00 which follows a 0xff
def init_stream(self):
        stream = Stream()
        while True:
            x = self.read_1b()
            if x != 0xff:
                stream.write_byte(x)
            else:
                y = self.read_1b()
                if y == 0x00: 
                    stream.write_byte(x)
                else: 
                    self.pos -= 2
                    break
        self.stream = stream
def init_stream ( self ) : stream = Stream ( ) while True : x = self . read_1b ( ) if x != 0xff : stream . write_byte ( x ) else : y = self . read_1b ( ) if y == 0x00 : stream . write_byte ( x ) else : self . pos -= 2 break self . stream = stream
read entroy-encoded data between SOS and the next marker to the stream,
remove byte padding 0x00, which follows a 0xff
read entroy - encoded data between SOS and the next marker to the stream remove byte padding 0x00 which follows a 0xff
"""read entroy-encoded data between SOS and the next marker to the stream,
        remove byte padding 0x00, which follows a 0xff""" # remove byte padding 0x00
 # x is the first byte of the next marker

self