1. A method for compressing color information specified by pixel data, the method comprising: receiving an input stream of data that includes color information associated with a block of pixels; processing the input stream of pixel data to generate a second stream of data, wherein, for each pixel in the block of pixels, the second stream of data indicates whether a second pixel that also is included in the block of pixels and is adjacent to the pixel in the block of pixels shares a color code with the pixel; populating a first set of buffer locations included in a first buffer based on the second stream of data, wherein each buffer location corresponds to a different pair of pixels included in the block of pixels, and wherein, once populated, each buffer location included in the first set of buffer locations indicates how many unique color codes are associated with the different pair of pixels corresponding to the buffer location; generating a second buffer that includes a second set of buffer locations, wherein each buffer location included in the second set of buffer locations corresponds to a different pair of buffer locations included in the first set of buffer locations and a different group of four pixels included in the block of pixels; and generating a compressed stream of data that includes one or more compressed codes based on the second set of buffer locations, wherein each compressed code indicates a separate color code and a number of adjacent pixels included in the block of pixels that share the separate color code.