Patent ID: 8369634

Claim:
An image processor comprising: a decoding unit decoding first data of first frequency component and second data of second frequency component, the second data including a plurality of second data sets; a sorting unit sorting the plurality of second data sets having been processed by the decoding unit, selectively employing one of a first table indicating frequency of appearance of nonzero data corresponding to a first orientation of prediction and a second table indicating frequency of appearance of nonzero data corresponding to a second orientation of prediction in accordance with an orientation of prediction of the second data; and an inverse prediction unit performing inverse prediction on the first and second data having been processed by the sorting unit, wherein obtaining the orientation of prediction of the second data requires the first data after inverse prediction, the sorting unit including: a first processing unit performing inverse prediction on the first data inputted from the decoding unit; a second processing unit obtaining the orientation of prediction of the second data, based on the first data after inverse prediction by the first processing unit; and a third processing unit selecting one of the first and second tables, based on the orientation of prediction of the second data obtained by the second processing unit.