Patent ID: 9558567
Date: 2017-01-31
CPC Classifications: G06T,H04N

Claim:
1. A method of coding video data, the method comprising: generating, by one or more processors, a predictive palette including palette entries that indicate pixel values, the predictive palette including one or more palette entries from one or more previously coded blocks, the one or more previously coded blocks comprising one or more neighboring blocks of the current block, the one or more neighboring blocks comprising at least one spatially neighboring block or at least one neighboring block of the current block in a scan order for scanning the at least one neighboring block and the current block; determining, by the one or more processors, which of the palette entries in the predictive palette are to be copied to a current palette for a current block of the video data stored to a memory, wherein determining the palette entries that are to be copied comprises coding one or more syntax elements indicating whether each of the palette entries in the predictive palette is to be copied to the current palette; coding, by the one or more processors, one or more syntax elements indicating a number of new palette entries that are to be included in the current palette for the current block, wherein the new palette entries are not in the predictive palette; coding, by the one or more processors, one or more syntax elements indicating a pixel value for each of the new palette entries to be included in the current palette; calculating, by the one or more processors, a size of the current palette equal to the sum of a number of the copied palette entries and the number of the new palette entries; generating, by the one or more processors, the current palette having the calculated size including the copied palette entries and the new palette entries; and determining, by the one or more processors, index values for one or more pixel values of the current block that identify the palette entries in the current palette used to represent the pixel values of the current block.