1. A method for handling image data with an electronic device comprising: performing an image coding operation on a first frame of image data comprising: partitioning the image data into a plurality of blocks of data; and transforming the plurality of blocks of data into a frequency domain representation; obtaining color component statistics from at least one of the plurality of blocks of data; and performing an image-quality processing operation on at least one second frame of image data using the obtained color component statistics.