摘要 |
A method and apparatus for predictive palette coding of image and video data are disclosed. Reuse flags are used to indicate whether individual palette values in the current palette table are used in the palette predictor table. The present invention applies run-length coding to the run-lengths to improve coding efficiency. According to one embodiment, a reuse flag is assigned a first value if a corresponding current palette value in the current palette table is not used in the palette predictor table, and the reuse flag is assigned a second value if the corresponding current palette value in the current palette table is used in the palette predictor table. For example, the first value corresponds to "0" and the second value corresponds to "1". The run-lengths correspond to the number of consecutive reuse flags having the first value. |