Lines Matching refs:lambda
178 static inline int get_penalty_factor(int lambda, int lambda2, int type){
182 return lambda>>FF_LAMBDA_SHIFT;
184 return (3*lambda)>>(FF_LAMBDA_SHIFT+1);
186 return (4*lambda)>>(FF_LAMBDA_SHIFT);
188 return (2*lambda)>>(FF_LAMBDA_SHIFT);
191 return (2*lambda)>>FF_LAMBDA_SHIFT;
284 c->penalty_factor = get_penalty_factor(s->lambda, s->lambda2, c->avctx->me_cmp);
285 c->sub_penalty_factor= get_penalty_factor(s->lambda, s->lambda2, c->avctx->me_sub_cmp);
286 c->mb_penalty_factor = get_penalty_factor(s->lambda, s->lambda2, c->avctx->mb_cmp);
585 return 2*(1 + av_log2(2*FFABS(dmx)) //FIXME kill the 2* can be merged in lambda
609 const int penalty_factor= get_penalty_factor(s->lambda, s->lambda2, s->avctx->me_cmp);
711 const int penalty_factor= get_penalty_factor(s->lambda, s->lambda2, s->avctx->me_cmp);
1514 s->lambda= pict->quality * 3/2;
1598 s->lambda = pic->quality * 3/2;
1602 s->lambda = 0;
1640 s->m.lambda = s->lambda;
1641 s->m.qscale= (s->m.lambda*139 + FF_LAMBDA_SCALE*64) >> (FF_LAMBDA_SHIFT + 7);
1642 s->lambda2= s->m.lambda2= (s->m.lambda*s->m.lambda + FF_LAMBDA_SCALE/2) >> FF_LAMBDA_SHIFT;