Mercurial > libavcodec.hg
comparison x264.c @ 2936:0c8eec04b26c libavcodec
revert incorrect change
author | mru |
---|---|
date | Wed, 09 Nov 2005 19:18:20 +0000 |
parents | 6ade4702eb97 |
children | bfabfdf9ce55 |
comparison
equal
deleted
inserted
replaced
2935:b564bb15e63c | 2936:0c8eec04b26c |
---|---|
148 x4->params.rc.f_qcompress = avctx->qcompress; /* 0.0 => cbr, 1.0 => constant qp */ | 148 x4->params.rc.f_qcompress = avctx->qcompress; /* 0.0 => cbr, 1.0 => constant qp */ |
149 x4->params.rc.f_qblur = avctx->qblur; /* temporally blur quants */ | 149 x4->params.rc.f_qblur = avctx->qblur; /* temporally blur quants */ |
150 | 150 |
151 if(avctx->flags & CODEC_FLAG_QSCALE && avctx->global_quality > 0) | 151 if(avctx->flags & CODEC_FLAG_QSCALE && avctx->global_quality > 0) |
152 x4->params.rc.i_qp_constant = | 152 x4->params.rc.i_qp_constant = |
153 12 + 6 * av_log2((double) avctx->global_quality / FF_QP2LAMBDA); | 153 12 + 6 * log2((double) avctx->global_quality / FF_QP2LAMBDA); |
154 | 154 |
155 x4->params.i_width = avctx->width; | 155 x4->params.i_width = avctx->width; |
156 x4->params.i_height = avctx->height; | 156 x4->params.i_height = avctx->height; |
157 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; | 157 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; |
158 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; | 158 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; |