INTRA-PREDICTION MODE DETERMINATION METHOD, INTRA-PREDICTION MODE DETERMINATION DEVICE, AND STORAGE MEDIUM FOR STORING INTRA-PREDICTION MODE DETERMINATION PROGRAM
The purpose of the present invention is to decrease the number of bins of data after coding and to prevent an increase in circuit size. An intra-prediction mode determination device is applied in a video coding device that recursively divides input video blocks into small blocks to perform coding by intra-prediction or inter-frame prediction, and includes a prediction mode selection means and a number of bins adjustment means that are provided in correspondence to only one of possible sizes of the small blocks. The prediction mode selection means evaluates, with respect to each of the small blocks, the coding cost of a plurality of prediction mode candidates on the basis of a residual corresponding to the prediction mode candidates and the number of bins allocated to the prediction mode candidates, and, on the basis of an evaluation result, selects an intra-prediction mode from the plurality of prediction mode candidates. The number of bins adjustment means, when the prediction mode selection means evaluates