1. An apparatus for selecting a coding mode of intra prediction in video compression, comprising: an input port for receiving data including a current coding block, boundary pixels surrounding the current coding block, a quantization parameter, and modes of neighboring blocks; a microprocessor for determining at least one of an optimal mode and a minimum cost used for the video compression based on the received data; and an output port for outputting the at least one of the optimal mode and the minimum cost.