• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:enccfg

263     struct vpx_codec_enc_cfg enccfg;
274 if ((res = vpx_codec_enc_config_default(iface, &enccfg, 0)) != VPX_CODEC_OK) {
286 dump_enc_cfg(avctx, &enccfg);
288 enccfg.g_w = avctx->width;
289 enccfg.g_h = avctx->height;
290 enccfg.g_timebase.num = avctx->time_base.num;
291 enccfg.g_timebase.den = avctx->time_base.den;
292 enccfg.g_threads = avctx->thread_count;
293 enccfg.g_lag_in_frames= ctx->lag_in_frames;
296 enccfg.g_pass = VPX_RC_FIRST_PASS;
298 enccfg.g_pass = VPX_RC_LAST_PASS;
300 enccfg.g_pass = VPX_RC_ONE_PASS;
304 enccfg.rc_end_usage = VPX_CBR;
306 enccfg.rc_end_usage = VPX_CQ;
309 enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000,
312 if (enccfg.rc_end_usage == VPX_CQ) {
313 enccfg.rc_target_bitrate = 1000000;
315 avctx->bit_rate = enccfg.rc_target_bitrate * 1000;
318 enccfg.rc_target_bitrate);
323 enccfg.rc_min_quantizer = avctx->qmin;
325 enccfg.rc_max_quantizer = avctx->qmax;
327 if (enccfg.rc_end_usage == VPX_CQ) {
328 if (ctx->crf < enccfg.rc_min_quantizer || ctx->crf > enccfg.rc_max_quantizer) {
331 enccfg.rc_min_quantizer, enccfg.rc_max_quantizer);
336 enccfg.rc_dropframe_thresh = avctx->frame_skip_threshold;
339 enccfg.rc_2pass_vbr_bias_pct = round(avctx->qcompress * 100);
341 enccfg.rc_2pass_vbr_minsection_pct =
344 enccfg.rc_2pass_vbr_maxsection_pct =
348 enccfg.rc_buf_sz =
351 enccfg.rc_buf_initial_sz =
353 enccfg.rc_buf_optimal_sz = enccfg.rc_buf_sz * 5 / 6;
354 enccfg.rc_undershoot_pct = round(avctx->rc_buffer_aggressivity * 100);
358 enccfg.kf_min_dist = avctx->keyint_min;
360 enccfg.kf_max_dist = avctx->gop_size;
362 if (enccfg.g_pass == VPX_RC_FIRST_PASS)
363 enccfg.g_lag_in_frames = 0;
364 else if (enccfg.g_pass == VPX_RC_LAST_PASS) {
388 enccfg.rc_twopass_stats_in = ctx->twopass_stats;
395 enccfg.g_profile = avctx->profile;
397 enccfg.g_error_resilient = ctx->error_resilient || ctx->flags & VP8F_ERROR_RESILIENT;
399 dump_enc_cfg(avctx, &enccfg);
401 res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, flags);
408 enccfg_alpha = enccfg;