Data rate or code amount at the encoder output by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer