aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ratecontrol.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-29 12:02:54 +0200
committerDiego Biurrun <diego@biurrun.de>2012-06-19 10:42:46 +0200
commit4cc2920dd2c0ce4e64e709da4f78508e1ec9871e (patch)
tree6bddba9a9004b804dec4831e4d847365424f9db9 /libavcodec/ratecontrol.c
parentbe1a839ca638e308748831fdc6fa0b7a7c8e94cf (diff)
downloadffmpeg-4cc2920dd2c0ce4e64e709da4f78508e1ec9871e.tar.gz
flvdec: remove incomplete, disabled seeking code
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r--libavcodec/ratecontrol.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 5e4b49adf3..9065f8e416 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -508,14 +508,6 @@ static double predict_size(Predictor *p, double q, double var)
return p->coeff*var / (q*p->count);
}
-/*
-static double predict_qp(Predictor *p, double size, double var)
-{
-//printf("coeff:%f, count:%f, var:%f, size:%f//\n", p->coeff, p->count, var, size);
- return p->coeff*var / (size*p->count);
-}
-*/
-
static void update_predictor(Predictor *p, double q, double var, double size)
{
double new_coeff= size*q / (var + 1);
@@ -555,10 +547,6 @@ static void adaptive_quantization(MpegEncContext *s, double q){
int mb_y = mb_xy / s->mb_stride;
int mb_distance;
float mb_factor = 0.0;
-#if 0
- if(spat_cplx < q/3) spat_cplx= q/3; //FIXME finetune
- if(temp_cplx < q/3) temp_cplx= q/3; //FIXME finetune
-#endif
if(spat_cplx < 4) spat_cplx= 4; //FIXME finetune
if(temp_cplx < 4) temp_cplx= 4; //FIXME finetune