comparison libvpxenc.c @ 11852:24a6c651c3f3 libavcodec

libvpx: Set the libvpx frame dropping threshold to frame_skip_threshold The default for frame_skip_threshold is 0, which thus disables the libvpx frame dropping.
author mstorsjo
date Tue, 08 Jun 2010 09:01:14 +0000
parents 3e97c4c25ec3
children 3d186eff2224
comparison
equal deleted inserted replaced
11851:3e97c4c25ec3 11852:24a6c651c3f3
238 AV_ROUND_NEAR_INF); 238 AV_ROUND_NEAR_INF);
239 239
240 //convert [1,51] -> [0,63] 240 //convert [1,51] -> [0,63]
241 enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1; 241 enccfg.rc_min_quantizer = ((avctx->qmin * 5 + 1) >> 2) - 1;
242 enccfg.rc_max_quantizer = ((avctx->qmax * 5 + 1) >> 2) - 1; 242 enccfg.rc_max_quantizer = ((avctx->qmax * 5 + 1) >> 2) - 1;
243 enccfg.rc_dropframe_thresh = avctx->frame_skip_threshold;
243 244
244 //_enc_init() will balk if kf_min_dist differs from max w/VPX_KF_AUTO 245 //_enc_init() will balk if kf_min_dist differs from max w/VPX_KF_AUTO
245 if (avctx->keyint_min == avctx->gop_size) 246 if (avctx->keyint_min == avctx->gop_size)
246 enccfg.kf_min_dist = avctx->keyint_min; 247 enccfg.kf_min_dist = avctx->keyint_min;
247 enccfg.kf_max_dist = avctx->gop_size; 248 enccfg.kf_max_dist = avctx->gop_size;