All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Run-length coding?

Definition 6.6 High School Computer Science · Chapter 6 — Digital Images, Sound and Compression

Run-length coding replaces each run, a maximal stretch of equal consecutive values, by the pair (length of the run, value).

One row of 55 pixels of a map, white and black, and its five runs. Ten numbers describe 55 pixels.
One row of 5555 pixels of a map, white and black, and its five runs. Ten numbers describe 5555 pixels.
Read in context →