A method of processing video data, the method comprising: determining a first palette for a first block of video data that is the initial block located in a first row of blocks, wherein the first palette comprises one or more palette entries each including a palette index that is associated with a color value for coding the block of video data; generating a predictor palette for constructing a plurality of second palettes of a plurality of second blocks of video data in the first row of blocks coded after the first block, wherein the predictor palette includes at least one palette entry from one or more blocks of the first row other than the first block, said one or more blocks being coded between the first block and the second block for which the predictor palette is constructed; reinitializing, based on a third block of video data being located in a second row of blocks, the predictor palette for determining a third palette of the third block of video data that is located in the second row of blocks, wherein reinitializing the predictor palette comprises removing all entries of the predictor palette and including at least one of the one or more palette entries of the first palette or an initial predictor palette generated after coding the first block, wherein the first row of blocks is positioned above the second row of blocks in a picture, and wherein the first block is positioned above the third block and one block to the right of the third block; determining the third palette of the third block based on the reinitialized predictor palette; and coding the third block using the third palette, wherein coding comprises encoding or decoding. determining a first palette for a first block of video data that is the initial block located in a first row of blocks, wherein the first palette comprises one or more palette entries each including a palette index that is associated with a color value for coding the block of video data; generating a predictor palette for constructing a plurality of second palettes of a plurality of second blocks of video data in the first row of blocks coded after the first block, wherein the predictor palette includes at least one palette entry from one or more blocks of the first row other than the first block, said one or more blocks being coded between the first block and the second block for which the predictor palette is constructed; reinitializing, based on a third block of video data being located in a second row of blocks, the predictor palette for determining a third palette of the third block of video data that is located in the second row of blocks, wherein reinitializing the predictor palette comprises removing all entries of the predictor palette and including at least one of the one or more palette entries of the first palette or an initial predictor palette generated after coding the first block, wherein the first row of blocks is positioned above the second row of blocks in a picture, and wherein the first block is positioned above the third block and one block to the right of the third block; determining the third palette of the third block based on the reinitialized predictor palette; and coding the third block using the third palette, wherein coding comprises encoding or decoding.