摘要 |
<p>Packet size calculator 32 obtains coded data amount N1 storable in a single packet. Comparison judging section 33 obtains the rest of coded data amount storable in the packet from the coded data amount N1 and coded data amount P already stored in the packet. The section 33 variably controls a slice length in coding section 2, corresponding to whether or not coded data amount M of a macroblock calculated in coding amount calculator 35 exceeds the rest of coded data amount storable in the packet. Since it is thus possible to perform coding with the maximum slice length storable in the packet, it is possible to complete the slice in a single packet and to decrease the number of stuffing bits.</p> |