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 configured to determine at least one of an optimal mode or a minimum cost used for the video compression based on the received data, wherein the microprocessor further comprises a calculator configured to calculate the sum of the current coding block, the sum of the current coding block SUMC being calculated by the following equation: 
 SUMC=ΣΣ C ( i,j ), wherein C(i, j) is a pixel intensity at coordinate (i, j) of the current coding block C; and an output port for outputting the at least one of the optimal mode and the minimum cost.