摘要 |
Encoding input data to generate corresponding encoded data wherein a palette indicated and/or included in the encoded data is used to define the symbols used in the encoded data to represent input data. Single or multi-channel palette data is compressed either: (i) in an interleaved format; (ii) in a planar format; and/or (iii) in a format that indicates different index values, for example as a 1-dimensional look-up-table (1D LUT), for the mutually different channels, together with availability information indicative of combinations of index values used in the palette. The compression may dynamically change depending on the data content or structure. In one embodiment, the palette is considered in an interleaved format as a string comprising the first entry of each channel, followed by the second entry of each channel and so on, and the string is encoded using variable length coding. In a second embodiment, each channel of palette data is encoded separately and the first channel may be coded using delta or difference coding. In the third embodiment, each channel is re-indexed to a separate 1D look-up table, all combinations or tuples of indexes from each channel are enumerated and availability data indicating which combinations are present in the original palette is encoded. Corresponding decoding claims are included. |