Patent ID: 8571104

Claim:
A method of coding coefficients of video blocks, the method comprising: storing statistics associated with coefficient values of the video blocks for each of a plurality of prediction modes; counting the video blocks associated with each of the prediction modes; scanning the coefficient values of the video blocks based on scan orders defined for each of the prediction modes; evaluating a given scan order associated with a given one of the prediction modes based on the statistics of the given one of the prediction modes when a count value indicative of a plurality of blocks counted for the given one of the prediction modes satisfies a threshold of the given one of the prediction modes; determining a new scan order associated with the given one of the prediction modes based on the statistics of the given one of the prediction modes when the count value indicative of the plurality of blocks counted for the given one of the prediction modes satisfies the threshold of the given one of the prediction modes; adjusting the threshold of the given one of the prediction modes upon adjusting the given scan order of the given one of the prediction modes; and entropy coding the coefficient values.