Method of color palette coding applicable to electronic device and electronic device using the same
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 2 N 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 2 M 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.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method of color palette for implementing a binary representation of a color applicable to an electronic device, the method comprising:
encoding, by using a processor, a bit stream to represent a color of a coding unit, wherein the bit stream comprises:
a binary bit representing a run flag;
a N binary bit sequence representing up to 2 N 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 2 M extended colors which are not the major colors and appears less frequently than the major colors in the coding unit with each of the possible values of the M binary bit sequence representing an unique extended color index of M extended color indices;
encoding, by using the processor, a second bit stream to represent a color of a second coding unit, wherein the second bit stream comprises:
a second binary bit representing a second run flag;
a pixel level alternative escape flag;
a second M binary bit sequence representing up to 2 M extended colors; and
a second original color value to represent an escape color of the second coding unit; and storing the bit stream and the second bit stream in a storage medium to be decoded and displayed or transmitting the bit stream and the second bit stream to a video driver to be decoded and displayed.
2 . The method of claim 1 , wherein when the pixel level alternative escape flag is a first value, the color of the second coding unit is represented by the N major color indices, and when the pixel level alternative escape flag is a second value, the color of the second coding unit is represented by the M extended color indices.
3 . The method of claim 2 , wherein only when the pixel level alternative escape flag is active, the run flag indicates the copy above mode, the pixel level alternative escape flag indicates the first value.
4 . The method of claim 3 further comprising:
encoding, by using the processor, a third bit stream to represent a color of a third coding unit, and wherein if the color of the third coding unit is a third escape color, the third bit stream comprises:
a third binary bit indicating the copy above mode;
a pixel level alternative escape flag set to active; and
a third original color value to represent the third escape color.
5 . The method of claim 4 , wherein if the color of the third coding unit is not the third escape color, claim 5 further comprising:
the third binary bit indicating the copy above mode;
the pixel level alternative escape flag set to inactive; and
a copy above run value associated with the copy above mode.
6 . The method of claim 1 further comprising:
encoding, by using the processor, a fifth bit stream to represent a color of a fifth coding unit and comprises a pixel level alternative escape flag, wherein if the pixel level alternative escape flag is set as inactive, the fifth bit stream further comprises a third N binary bit sequence representing up to 2 N 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 except for a last index indicating an escape color.
7 . The method of claim 6 , wherein if the pixel level alternative escape flag is set as active, the last index indicates one of the major colors.
8 . The method of claim 7 , wherein if the pixel level alternative escape flag is set as active, the last index refers to one of the extended colors.Join the waitlist — get patent alerts
Track US2018054623A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.