摘要 |
Disclosed are a method and a device for intra prediction of a video. The method for intra prediction of a video: determines the availability of a predetermined number of peripheral pixels which are used for intra prediction of a current block; searches for an available second peripheral pixel by searching for the predetermined number of the peripheral pixels in a predetermined direction on the basis of an unavailable first peripheral pixel, if the unavailable first peripheral pixel exists; and replaces a pixel value of the first peripheral pixel with a pixel value of the searched second peripheral pixel. The invention performs a replacement step using peripheral pixels which are immediately adjacent in the predetermined direction relative to an unavailable third peripheral pixel at a different position, except for the first peripheral pixel at the predetermined position. |