mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Align assignments in encoder.c.
This commit is contained in:
parent
1dc94663c3
commit
97451ec401
|
@ -394,34 +394,34 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg) {
|
|||
encoder->pu_depth_intra.max = cfg->pu_depth_intra.max;
|
||||
|
||||
// input init (TODO: read from commandline / config)
|
||||
encoder->in.video_format = FORMAT_420;
|
||||
encoder->in.video_format = FORMAT_420;
|
||||
|
||||
// deblocking filter
|
||||
encoder->deblock_enable = (int8_t)encoder->cfg->deblock_enable;
|
||||
encoder->beta_offset_div2 = (int8_t)encoder->cfg->deblock_beta;
|
||||
encoder->tc_offset_div2 = (int8_t)encoder->cfg->deblock_tc;
|
||||
encoder->deblock_enable = (int8_t) encoder->cfg->deblock_enable;
|
||||
encoder->beta_offset_div2 = (int8_t) encoder->cfg->deblock_beta;
|
||||
encoder->tc_offset_div2 = (int8_t) encoder->cfg->deblock_tc;
|
||||
// SAO
|
||||
encoder->sao_enable = (int8_t)encoder->cfg->sao_enable;
|
||||
encoder->sao_enable = (int8_t) encoder->cfg->sao_enable;
|
||||
// RDO
|
||||
encoder->rdoq_enable = (int8_t)encoder->cfg->rdoq_enable;
|
||||
encoder->rdo = (int8_t)encoder->cfg->rdo;
|
||||
encoder->sign_hiding = encoder->cfg->signhide_enable;
|
||||
encoder->full_intra_search = (int8_t)encoder->cfg->full_intra_search;
|
||||
encoder->rdoq_enable = (int8_t) encoder->cfg->rdoq_enable;
|
||||
encoder->rdo = (int8_t) encoder->cfg->rdo;
|
||||
encoder->sign_hiding = encoder->cfg->signhide_enable;
|
||||
encoder->full_intra_search = (int8_t) encoder->cfg->full_intra_search;
|
||||
// TR SKIP
|
||||
encoder->trskip_enable = (int8_t)encoder->cfg->trskip_enable;
|
||||
encoder->tr_depth_intra = (int8_t)encoder->cfg->tr_depth_intra;
|
||||
encoder->trskip_enable = (int8_t) encoder->cfg->trskip_enable;
|
||||
encoder->tr_depth_intra = (int8_t) encoder->cfg->tr_depth_intra;
|
||||
// MOTION ESTIMATION
|
||||
encoder->fme_level = (int8_t)encoder->cfg->fme_level;
|
||||
encoder->fme_level = (int8_t) encoder->cfg->fme_level;
|
||||
// VUI
|
||||
encoder->vui.sar_width = (int16_t)encoder->cfg->vui.sar_width;
|
||||
encoder->vui.sar_height = (int16_t)encoder->cfg->vui.sar_height;
|
||||
encoder->vui.overscan = encoder->cfg->vui.overscan;
|
||||
encoder->vui.videoformat = encoder->cfg->vui.videoformat;
|
||||
encoder->vui.fullrange = encoder->cfg->vui.fullrange;
|
||||
encoder->vui.colorprim = encoder->cfg->vui.colorprim;
|
||||
encoder->vui.transfer = encoder->cfg->vui.transfer;
|
||||
encoder->vui.colormatrix = encoder->cfg->vui.colormatrix;
|
||||
encoder->vui.chroma_loc = (int8_t)encoder->cfg->vui.chroma_loc;
|
||||
encoder->vui.sar_width = (int16_t) encoder->cfg->vui.sar_width;
|
||||
encoder->vui.sar_height = (int16_t) encoder->cfg->vui.sar_height;
|
||||
encoder->vui.overscan = encoder->cfg->vui.overscan;
|
||||
encoder->vui.videoformat = encoder->cfg->vui.videoformat;
|
||||
encoder->vui.fullrange = encoder->cfg->vui.fullrange;
|
||||
encoder->vui.colorprim = encoder->cfg->vui.colorprim;
|
||||
encoder->vui.transfer = encoder->cfg->vui.transfer;
|
||||
encoder->vui.colormatrix = encoder->cfg->vui.colormatrix;
|
||||
encoder->vui.chroma_loc = (int8_t) encoder->cfg->vui.chroma_loc;
|
||||
|
||||
// If fractional framerate is set, use that instead of the floating point framerate.
|
||||
if (cfg->framerate_num != 0) {
|
||||
|
|
Loading…
Reference in a new issue