Abstract:
There are disclosed various methods, apparatuses and computer program products for video encoding/decoding. In some embodiments the method comprises decoding a coding unit being coded with palette coding, wherein an indication of a scan order of the palette mode is decoded for said coding unit. Mode information for at least one pixel within the coding unit is decoded. Depending on the mode information, a decoded pixel value is set based on indicated scan order; or an indication to determine the number of the pixels sharing the value and indication for a reconstruction value of number of pixels are decoded; or an indication for a reconstruction value of a pixel is decoded.