1. A method, comprising: assigning a class from a plurality of classes to a foreground object from a video frame having a plurality of pixels, each class from among the plurality of classes having associated therewith a quantization parameter value; producing a plurality of discrete cosine transform (DCT) coefficients for pixels from the plurality of pixels of the video frame associated with the foreground object; quantizing the plurality of DCT coefficients associated with the foreground object based on the quantization parameter value associated with the class assigned to the foreground object; and coding the quantized DCT coefficients associated with the foreground object.