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 plurality of pixels; processing the input stream of pixel data to generate a second stream of data, wherein, for each pixel in the plurality of pixels, the second stream of data indicates whether a second pixel that also is included in the plurality of pixels and is adjacent to the pixel shares a color code with the pixel; generating a first buffer that includes a first set of buffer locations, wherein each buffer location corresponds to a different pair of pixels included in the plurality of pixels; populating the first set of buffer locations based on the second stream of data, 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; and generating a compressed stream of data that includes one or more compressed codes based on the first set of buffer locations, wherein each compressed code indicates a different color code and a number of adjacent pixels included in the plurality of pixels that share the different color code.