if the entropy coding circuit 8 receives a stop signal, it stops the coding and generates an output added with an eob.
The circuit 8 outputs an amount of codes generated in the block to an amount-of-codes calculator 14.