3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Rate Controler module - |
* - Rate Controler module - |
5 |
* |
* |
6 |
* Copyright(C) 2002 Michael Militzer |
* Copyright(C) 2002 Benjamin Lambert <foxer@hotmail.com> |
7 |
* |
* |
8 |
* This program is an implementation of a part of one or more MPEG-4 |
* This program is an implementation of a part of one or more MPEG-4 |
9 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
132 |
(double) rate_control->framerate) * |
(double) rate_control->framerate) * |
133 |
(double) rate_control->frames)); |
(double) rate_control->frames)); |
134 |
|
|
135 |
DEBUGCBR((int32_t) (rate_control->frames - 1), rate_control->rtn_quant, |
DPRINTF(DPRINTF_DEBUG, "CBR: frame: %i, quant: %i, deviation: %i\n", |
136 |
|
(int32_t) (rate_control->frames - 1), rate_control->rtn_quant, |
137 |
(int32_t) deviation); |
(int32_t) deviation); |
138 |
|
|
139 |
if (rate_control->rtn_quant >= 2) { |
if (rate_control->rtn_quant >= 2) { |