Lines Matching refs:xvid_enc_create
370 xvid_enc_create_t xvid_enc_create = { 0 };
466 xvid_enc_create.version = XVID_VERSION;
469 xvid_enc_create.width = x->xsize = avctx->width;
470 xvid_enc_create.height = x->ysize = avctx->height;
473 /* xvid_enc_create.profile = XVID_PROFILE_S_L3; */
476 xvid_enc_create.zones = NULL;
477 xvid_enc_create.num_zones = 0;
479 xvid_enc_create.num_threads = avctx->thread_count;
481 xvid_enc_create.plugins = plugins;
482 xvid_enc_create.num_plugins = 0;
501 plugins[xvid_enc_create.num_plugins].func = xvid_ff_2pass;
502 plugins[xvid_enc_create.num_plugins].param = &rc2pass1;
503 xvid_enc_create.num_plugins++;
530 plugins[xvid_enc_create.num_plugins].func = xvid_plugin_2pass2;
531 plugins[xvid_enc_create.num_plugins].param = &rc2pass2;
532 xvid_enc_create.num_plugins++;
538 plugins[xvid_enc_create.num_plugins].func = xvid_plugin_single;
539 plugins[xvid_enc_create.num_plugins].param = &single;
540 xvid_enc_create.num_plugins++;
549 plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;
553 plugins[xvid_enc_create.num_plugins].param = avctx->lumi_masking ? NULL
555 xvid_enc_create.num_plugins++;
561 plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;
562 plugins[xvid_enc_create.num_plugins].param = &masking_v;
563 xvid_enc_create.num_plugins++;
573 plugins[xvid_enc_create.num_plugins].func = xvid_plugin_ssim;
578 plugins[xvid_enc_create.num_plugins].param = &ssim;
579 xvid_enc_create.num_plugins++;
584 xvid_enc_create.fincr = avctx->time_base.num;
585 xvid_enc_create.fbase = avctx->time_base.den;
587 xvid_enc_create.max_key_interval = avctx->gop_size;
589 xvid_enc_create.max_key_interval = 240; /* Xvid's best default */
595 xvid_enc_create.min_quant[0] = avctx->qmin;
596 xvid_enc_create.min_quant[1] = avctx->qmin;
597 xvid_enc_create.min_quant[2] = avctx->qmin;
598 xvid_enc_create.max_quant[0] = avctx->qmax;
599 xvid_enc_create.max_quant[1] = avctx->qmax;
600 xvid_enc_create.max_quant[2] = avctx->qmax;
629 xvid_enc_create.frame_drop_ratio = 0;
630 xvid_enc_create.global = 0;
632 xvid_enc_create.global |= XVID_GLOBAL_CLOSED_GOP;
649 xvid_enc_create.max_bframes = avctx->max_b_frames;
650 xvid_enc_create.bquant_offset = 100 * avctx->b_quant_offset;
651 xvid_enc_create.bquant_ratio = 100 * avctx->b_quant_factor;
652 if( avctx->max_b_frames > 0 && !x->quicktime_format ) xvid_enc_create.global |= XVID_GLOBAL_PACKED;
654 av_assert0(xvid_enc_create.num_plugins + (!!x->ssim) + (!!x->variance_aq) + (!!x->lumi_aq) <= FF_ARRAY_ELEMS(plugins));
657 xerr = xvid_encore(NULL, XVID_ENC_CREATE, &xvid_enc_create, NULL);
663 x->encoder_handle = xvid_enc_create.handle;