Abstract:
Provided are a method and apparatus for encoding and decoding a video. A method of decoding a video according to an embodiment includes: determining an intra-prediction method of at least one neighboring block adjacent to a current block that uses an intra-skip mode; determining priority levels of candidate intra-prediction methods of the intra-skip mode for the current block according to the intra-prediction method of the at least one neighboring block and aligning the candidate intra-prediction methods according to the priority levels; obtaining, from a bitstream, index information indicating one of the candidate intra-prediction methods; determining a candidate intra-prediction method indicated by the obtained index information from among the aligned candidate intra-prediction methods as an intra-prediction method of the current block; and decoding the current block by using the determined intra-prediction method.
Abstract:
The present disclosure provides a method of processing pixels in video encoding and decoding, the method including determining a current sample offset processing region and performing classification and offset operations on pixels of the current sample offset processing region, wherein the determining of the current sample offset processing region includes performing a spatial position movement operation on a predetermined coding processing unit and determining a region after the spatial position movement operation as the current sample offset processing region. By using the present disclosure, the sample offset processing regions may be flexibly acquired and the encoding performance may be improved.