摘要 |
<p><P>PROBLEM TO BE SOLVED: To provide an image encoding apparatus in which encoding efficiency is further improved, and to provide an image decoding apparatus. <P>SOLUTION: The image encoding apparatus is provided with an in-image plane prediction unit, a coefficient number prediction unit, a VLC table selection unit, and a variable length coding unit. The coefficient number prediction unit predicts the number of non-0 coefficients of a block to be encoded in accordance with a prediction mode of the in-image plane prediction unit. The VLC table selection unit selects a VLC table in accordance with the predicted number of non-0 coefficients of the block to be encoded. By using a predetermined relationship between the prediction mode of in-image plane prediction and a block, among encoded surrounding blocks, in which the number of non-0 coefficients should be used to predict the number of non-0 coefficients of the block to be encoded, the coefficient number prediction unit can highly accurately predict the coefficients of the block to be encoded. Thus, by using a predictive value regarding the predicted number of non-0 coefficients, the VLC table is selected by the VLC table selection unit and by performing encoding due to the variable length coding unit using the selected VLC table, an image can be encoded with high coding efficiency. <P>COPYRIGHT: (C)2008,JPO&INPIT</p> |