Abstract:
The disclosure is directed to a method of color palette coding and an electronic device using the same method. The proposed method would include not limited to encoding, by using a processor, a bit stream to represent a color of a coding unit and storing the bit stream in a storage medium or transmitting the bit stream. The bit stream would include not limited to a binary bit representing a run flag, a N binary bit sequence representing up to 2N major colors in a coding unit with each of the possible values of the N binary bit sequence representing an unique major color index of N major color indices, and a M binary bit sequence representing up to 2M extended colors with each of the possible values of the M binary bit sequence representing an unique extended color index of M extended color indices.
Abstract:
An encoding method and a decoding method, and a codec system, an encoder and a decoder using the methods are provided. The encoding method includes receiving a first coding unit of a frame, and selecting a first index pixel and a second index pixel from pixels of the frame and setting index values corresponding to the two index pixels, where a color of the first index pixel is different to a color of the second index pixel. The encoding method includes indexing each pixel in the first coding unit to generate an index map. The encoding method includes generating a coding value corresponding to the first coding unit according to the index map, and transmitting the coding value to a decoder, wherein only an index value corresponding to a 1st scanned pixel in the pixels of the first coding unit in the index map is recorded in the coding value.