Flux rss

RLE Compression

Pixel packing

Pixel packing is a method which allows pixels to be stored in an optimal way: for a monochrome image there are, by definition, only two colours, a point of the image can thus be coded in only one bit to gain memory space.

RLE Compression

The RLE compression method (Run Length Encoding, sometimes written as RLC for Run Length Coding) is used by many image formats (BMP, PCX, TIFF). It is based on the repetition of consecutive elements.

The basic principle consists in coding a first element by giving the number of repetitions of a value and then the value to be repeated. Thus, according to this principle, chain “AAAAAHHHHHHHHHHHHHH” when compressed yields “5A14H”. The compression gain is thus (19-5) /19, that is, approximately 73.7% On the other hand, for the chain “CORRECTLY”, where there is little character repetition, the result of the compression is “1C1O2R1E1C1T1L1Y”, thus compression proves to be very expensive here, with a negative compression gain of (9-16)/9 that is, -78%!

Actually, RLE compression is governed by particular rules which allow compression to be carried out when necessary and the chain to be left as it is when compression causes a waste. These rules are the following:

  • If three or more elements are repeated consecutively, the RLE compression method is used
  • If not, a control character (00) is inserted, followed by the number of elements of the non-compressed chain and then the latter
  • • If the number of elements of the chain is odd, the control character (00) is added on the end
  • • Finally, specific control characters were defined in order to code:
    • an end of line (00 01)
    • the end of the image (00 00)
    • a pointer displacement over the image of XX columns and YY rows in the reading direction (00 02 XX YY).

Thus, RLE compression makes no sense except for data with many consecutive repeated elements, in particular images with large uniform areas. This method however has the advantage of not being very difficult to implement. There are alternatives in which the image is encoded by blocks of pixels, in rows, or even in zigzag.

RLE Compression

Last update on Thursday October 16, 2008 02:43:16 PM.

This document entitled « RLE Compression  » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for RLE Compression

Video and digital imaging - The TIF format The TIF format (Tagged Image File Format) is a bitmap (raster) graphic file format. It was developed in 1987 by Aldus (now belonging to Adobe). The latest specifications (Revision 6.0) were published in 1992. The TIFF format is an old graphic... en.kioskea.net/video/format-tif.php3
Download FLV Encoder Format FLV is a common format for the broadcasting of video on Internet. It is the format of compression used by Youtube, DailyMotion and many other sites of video distribution. Normally, to acquire a video file in format FLV; it is necessary to pass... en.kioskea.net/telecharger/telecharger-789-flv-encoder
Download The JPEG Wizard JPEG is certainly the best compression type for presenting scanned and captured images on the Web. However, even experts find that with a little help they can make their Web pictures even smaller without sacrificing quality. JPEG is a loss of... en.kioskea.net/telecharger/telecharger-236-the-jpeg-wizard

Results for RLE Compression

Create and Open a RAR fileCreate and Open a RAR file How to create a RAR file How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by the... en.kioskea.net/faq/sujet-143-create-and-open-a-rar-file
What is an MKV file and how to read itWhat is an MKV file and how to read it What is an MKV file? An MKV file is an audio and video container that can support various audio, video and subtitle compression formats. MKV files usually have a menu system slightly similar to a DVD menu,... en.kioskea.net/faq/sujet-286-what-is-an-mkv-file-and-how-to-read-it
How to read a .DAA fileHow to open a .DAA file DAA is the acronym for Direct Access Archive and is used mainly for data compression and file splitting. Like .bin/.cue files, the .daa extension is an archive file format that can be used to divide a movie file into... en.kioskea.net/faq/sujet-302-how-to-read-a-daa-file

Results for RLE Compression

JakeHello, i have a cd r but my copmputer reads it but wont let me burdd anyy sollutionnsss plaess i rlei need help en.kioskea.net/forum/affich-44212-jake
High CompressionHello, How to compress an installation of 4gb and make it become at least 700mb? en.kioskea.net/forum/affich-45868-high-compression
Black screen after loading barHey Hey. OK Basically one day after fixing my hald.ll error i were then faced by a big black screen problem. When i boot up it shows the windows lgo and the loading bar, Also after about 7 secs of ladoing the pc freezes for about 1 2/4 secs and then... en.kioskea.net/forum/affich-20572-black-screen-after-loading-bar

Results for RLE Compression

Download 7-Zip7Z also known as 7Zip archive utility is available as open source and is free to use. 7Z is fast, efficient and free. Features: High compression ratio in new 7z format with LZMA compression 7-Zip is free software distributed under the... en.kioskea.net/telecharger/telecharger-605-7-zip
Download Any FLV PlayerIn general videos on Internet are in format FLV. A version of video compression appropriated for Websites for his lightness. Numerous readers are available to be able to read this type of format on a computer except connection.But these programs limit... en.kioskea.net/telecharger/telecharger-681-any-flv-player
Download MP3-CheckFormat MP3 is audio format par excellence for audio compression. But it is really possible that there are errors in formats, notably graffiti there. MP3-Check is an application which allows to prove your music collection for quality and possible... en.kioskea.net/telecharger/telecharger-696-mp3-check

Results for RLE Compression

MP3 MP3 ("MPEG Audio layer 3") is a lossy audio data compression format, developed by the International Organization for Standardization (ISO). This format is used to compress normal audio formats (WAV or CD audio) at a rate of 1:12. As mp3 files, the... en.kioskea.net/audio/mp3.php3
Audio - DTS (Digital Theater Sound) DTS (Digital Theater Sound) is a digital sound coding standard created by Universal. Compared with the Dolby Digital standard, DTS uses four times less compression and digitises sound at 20 bits instead of 16. Therefore, DTS's sound quality is... en.kioskea.net/audio/dts-digital-theater-sound.php3
Video and digital imaging - The GIF format The GIF format (Graphic Interchange Format) is a bitmap (raster) graphic file format developed by Compuserve. There are two versions of this file format developed respectively in 1987 and 1989: GIF 87a supporting LZW compression, interlacing... en.kioskea.net/video/format-gif.php3