1. A data compression method comprising: accessing image data and depth information for pixels of an image; determining a distance from a region of focus for pixels of the image by calculations that use the depth information; and controlling a bit rate for compression of the image data in accordance with the distance from the region of focus, such that more bits are used for pixels closer to the region of focus and fewer bits are used for pixels farther from the region of focus.