diff options
author | Aayush Soni <aayush.soni@ittiam.com> | 2021-02-23 13:12:33 +0530 |
---|---|---|
committer | Aayush Soni <aayush.soni@ittiam.com> | 2021-03-15 20:44:10 +0530 |
commit | 2c273564b9e95664ae2294e548361d1c6d165e70 (patch) | |
tree | 438bcf711de081e8762abfff6f82ba6a3c5f6f61 | |
parent | 4f7d67c12231363596e28b1a2255409ebbd875c4 (diff) | |
download | libhevc-2c273564b9e95664ae2294e548361d1c6d165e70.tar.gz |
encoder: Fix entropy sync mode for height <= 64
Test: POC in bug descriptions
Test: hevcenc -c vid_enc_cfg.txt --enable_entropy_sync 1
Bug: 177750322
Change-Id: I761e3e5e375d02e804f46b63ac308483f44bd976
-rw-r--r-- | encoder/ihevce_plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/encoder/ihevce_plugin.c b/encoder/ihevce_plugin.c index df7cee0..9dbf376 100644 --- a/encoder/ihevce_plugin.c +++ b/encoder/ihevce_plugin.c @@ -735,6 +735,13 @@ IHEVCE_PLUGIN_STATUS_T ihevce_init(ihevce_static_cfg_params_t *ps_params, void * MIN(MAX_NUM_FRM_IN_GOP, ps_ctxt->ps_static_cfg_prms->s_coding_tools_prms.i4_max_i_open_gop_period); + /* entropy sync is disabled if there is only one CTB row */ + if(ps_ctxt->ps_static_cfg_prms->s_src_prms.i4_height <= + (1 << ps_ctxt->ps_static_cfg_prms->s_config_prms.i4_max_log2_cu_size)) + { + ps_ctxt->ps_static_cfg_prms->s_coding_tools_prms.i4_enable_entropy_sync = 0; + } + /* --------------------------------------------------------------------- */ /* High Level Encoder context init */ /* --------------------------------------------------------------------- */ |