1. A method comprising: receiving or generating, by a processing unit, image segmentation data for a plurality of pixels, and wherein the image segmentation data includes one or more image segmentation values for each pixel of the plurality of pixels; converting, by the processing unit, the one or more image segmentation values into one or more image component values; and sending, by the processing unit, the one or more image component values corresponding to the one or more image segmentation values to a video encoder.