diff options
author | Aayush Soni <aayush.soni@ittiam.com> | 2021-02-23 13:12:33 +0530 |
---|---|---|
committer | Ray Essick <essick@google.com> | 2021-05-03 18:29:36 -0700 |
commit | b394bd34a63550b349effe13082fe17c1ae63d55 (patch) | |
tree | 2741f6368077e78575aa24cbaca308745f15f63a | |
parent | 7b059c588600e4bece07c42d8b0ab4a8f0608293 (diff) | |
download | libhevc-b394bd34a63550b349effe13082fe17c1ae63d55.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 cb597d0..3d780bc 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 */ /* --------------------------------------------------------------------- */ |