Patent ID: 8897558

Claim:
A method of compressing a block based binary image comprising: determining whether each of a plurality of pixels included in each of a plurality of blocks has one of existing patterns included in an existing block, by an application processor; in each of the plurality of blocks, counting a number of pixels that have one of the existing patterns, by an application processor; selecting a compressing process based on a result of the counting the number of pixels that have one of the existing patterns, by an application processor; and compressing said each of the plurality of blocks by the selected compressing process, by an application processor; and determining whether the counted number of pixels that have one of the existing patterns in each of the plurality of blocks is equal to or more than a predetermined value, wherein, if the counted number of pixels that have one of the existing patterns is equal to or more than the predetermined value, said each of the plurality of blocks is compressed into a binary bit stream, wherein the binary bit stream includes information on the number of pixels that have one of the existing patterns, and wherein the binary bit stream further includes mode information indicating whether the binary bit stream includes compressed binary image information, sub-mode information indicating whether the binary bit stream uses the existing patterns, pattern information indicating whether each of the pixels has the existing patterns, pixel pattern-type information indicating which pattern each of the pixels has, and a plurality of color information for the pixels that do not have the existing patterns, each of the plurality of color information containing an R (Red) value, a G (Green) value or a B (Blue) value, respectively.