Patent ID: 8582901

Claim:
A method of decoding an image, the method comprising: determining coding units of a hierarchical structure, based on information about whether to divide a coding unit parsed from a received bitstream of an encoded video; determining whether a current coding unit among the determined coding units of the hierarchical structure comprises a region that deviates from a boundary of a current image; if the current coding unit is determined to not comprise the region that deviates from the boundary of the current image based on the determining whether the current coding unit comprises the region, parsing and decoding data regarding the current coding unit of the hierarchical structure; and if the current coding unit is determined to comprise the region that deviates from the boundary of the current image based on the determining whether the current coding unit comprises the region, determining sub coding units generated by dividing the current coding unit, that comprises the region that deviates from the boundary of the current image.