摘要:
The invention relates to a method for encoding and decoding a data stream (1, 3) according to a run length encoding scheme characterized in that repeatedly at most a first number of symbols is transferred from an input stream (1, 3) into an input packet buffer (2.1) and/or at most a second number of symbols is transferred from an output packet buffer (4.1) to an output stream (3, 5) and further characterized in that a status buffer (2.2, 4.2) is updated with every transfer operation. The invention further relates to an encoder (2) and an decoder (4) according to a run length encoding scheme, the encoder (2) and the decoder (4) comprising an input packet buffer (2.1) and an output packet buffer (4.1) of a predetermined capacity and further comprising a status buffer (2.2, 4.2).