Patent ID: 8189673

Claim:
A method of predicting a direct current (DC) coefficient of a video data unit, the method comprising: selecting at least one reference data unit for prediction of a DC coefficient of a current data unit from at least one previous data unit that is scanned according to region of interest-oriented scanning and then transformed before the current data unit, wherein in the region of interest-oriented scanning, scanning starts with a data unit located in a predetermined location of a region of interest and continues in the form of a plurality of square rings in which the remaining data units included in the region of interest surround the data unit located in the predetermined location of the region of interest; and determining, using a processor, a predicted value of the DC coefficient of the current data unit using a DC coefficient of the at least one reference data unit, wherein in the selecting of the at least one reference data unit, among previous data units included in a current square ring including the current data unit and previous data units included in a previous square ring, a previous data unit that is adjacent to the current data unit is selected as the at least one reference data unit, wherein for every current data unit, if one of the previous data units included in the current square ring is horizontally or vertically adjacent to the current data unit, one of the previous data units included in the previous square ring is diagonally adjacent to the current data unit, and there exists no previous data unit in the previous square ring which is horizontally or vertically adjacent to the current data unit, only the previous data unit in the current square ring is selected as the at least one reference data unit.