Frequency transform coefficient prediction method and apparatus in video codec, and video encoder and decoder therewith

This method of predicting the frequency transform coefficients in a video codec and an apparatus and a coding and decoding apparatus and method using the same are disclosed. According to the present invention, there is provided a method of predicting the transform coefficients in a frequency transform domain, it calculates a cost by using the (a) frequency conversion of the DC coefficient of the block and the horizontal, vertical, and the frequency adjacent diagonally transform block to be predicted the method comprising; And (b) characterized by including the step of selecting the calculated cost is the smallest adjacent block, the predicted DC coefficient and the AC coefficient of the block to be predicted by using the coefficients of the selected adjacent block. This makes it possible to increase the compression efficiency, and efficiently encoding an image by reflecting the characteristics of the various patterns by calculating a predictive value for a number of patterns.