主权项 |
1. A method comprising:
obtaining, by a computing device, an a×b pixel macro-cell from an input image, wherein the a×b pixel macro-cell contains 4 non-overlapping m×n pixel cells, and wherein the a×b pixels in the a×b pixel macro-cell have respective color values and are associated with respective object type tags; based on the respective color values and the respective object type tags, selecting, by the computing device, a compression technique to either (i) compress the a×b pixel macro-cell as a whole, or (ii) compress the a×b pixel macro-cell by compressing each of the 4 non-overlapping m×n pixel cells separately; compressing, by the computing device, the a×b pixel macro-cell according to the selected compression technique; and writing, by the computing device, a representation of the compressed a×b pixel macro-cell to a computer-readable output medium. |