主权项 |
1. A computer-implemented method comprising execution, by a processor, of operations including:
obtaining, from a memory, an a×b pixel macro-cell from a digital image, the a×b pixel macro-cell containing 4 non-overlapping m×n pixel cells, 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 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; applying the selected compression technique to the a×b pixel macro-cell to form a compressed representation of the a×b pixel macro cell; and storing, in the memory, the compressed representation of the a×b pixel macro-cell. |