An intra prediction method may generate a prediction block after an AIS (Adaptive Intra Smoothing) filter is applied to a reference pixel according to a prediction mode. A type of an AIS filer applied to a reference pixel may be different. An intra prediction mode of a current prediction unit may be predicted from an intra prediction mode of a prediction unit around a current prediction unit to perform an intra prediction method. When a prediction mode of a current prediction unit is predicted by using mode information predicted from a peripheral prediction unit, information that a prediction mode of a current prediction unit is the same as that of a peripheral prediction unit may be transmitted by using predetermined flag information if an intra prediction mode of a current prediction unit is the same as that of a peripheral prediction unit. Prediction mode information of a current block may be encoded by performing entropy encoding if a prediction mode of a current prediction unit is different from that of a peripheral prediction unit.
In addition, a residual block including residual value information, a difference value between a prediction unit which performs prediction based on a prediction unit generated in a prediction unit 120 and 125 and an original block of a prediction unit, may be generated. A generated residual block may be input into a transform unit 130.
A transform unit 130 may transform a residual block including residual data by using a transform type such as DCT, DST, etc. In this case, a transform method may be determined based on an intra prediction mode of a prediction unit used to generate a residual block.